Streaming MP4 with AAC via HTTP

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
angryjack
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2009 17:10

Streaming MP4 with AAC via HTTP

Postby angryjack » 14 Mar 2009 17:33

Hello,

i am using VLC player 0.96 under Windows and having a problem with streaming MP4 Videos with h.264 and AAC codec via HTTP.

VLC plays the videos without probs if i open them directely from Harddisk or with direct network access like \\IP_Adress\nw_share\video.mp4.

If i try to open it as http stream like [url]http://ip_Adress/Videos/video.mp4[/url], i get the following message in the Messages window:

Code: Select all

avformat error: av_open_input_stream failed
I don't get any error message and the slider in VLC is moving. MP4 videos with mp4a audio codec can be streamed fine across http but unfortunately i have ripped all my DVD's to AAC :(

Any suggestions ?

angryjack

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Streaming MP4 with AAC via HTTP

Postby VLC_help » 15 Mar 2009 10:02

Messasges (Tools -> Messages... with Verbosity 2) should tell us little more about the error.

angryjack
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2009 17:10

Re: Streaming MP4 with AAC via HTTP

Postby angryjack » 15 Mar 2009 11:42

Thanks for the reply :)

Here the content of the VLC log with verbosity level 2:

Code: Select all

main info: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. qt4 debug: Enter Key pressed qt4 debug: New item: http://192.168.178.55/Videos/video.mp4 main debug: adding item `http://192.168.178.55/Videos/video.mp4' ( http://192.168.178.55/Videos/video.mp4 ) main debug: rebuilding array of current - root Playlist main debug: rebuild done - 1 items, index -1 main debug: starting new item main debug: processing request item http://192.168.178.55/Videos/video.mp4 node null skip 0 main debug: resyncing on http://192.168.178.55/Videos/video.mp4 main debug: http://192.168.178.55/Videos/video.mp4 is at 0 main debug: creating new input thread main debug: Creating an input for 'http://192.168.178.55/Videos/video.mp4' main debug: thread started main debug: waiting for thread initialization main debug: `http://192.168.178.55/Videos/video.mp4' gives access `http' demux `' path `192.168.178.55/Videos/video.mp4' main debug: creating demux: access='http' demux='' path='192.168.178.55/Videos/video.mp4' main debug: looking for access_demux module: 0 candidates main warning: no access_demux module matched "http" main debug: TIMER module_Need() : 0.157 ms - Total 0.157 ms / 1 intvls (Avg 0.157 ms) main debug: creating access 'http' path='192.168.178.55/Videos/video.mp4' main debug: looking for access module: 2 candidates access_http debug: http: server='192.168.178.55' port=80 file='/Videos/video.mp4 main debug: thread 5292 (input) created at priority 1 (input/input.c:370) qt4 debug: Updating the stream status: 3 main debug: net: connecting to 192.168.178.55 port 80 main debug: connection: Resource temporarily unavailable main debug: connection succeeded (socket = 5324) access_http debug: protocol 'HTTP' answer code 200 access_http debug: Server: Power-Sockets access_http debug: Content-Type: text/html access_http debug: this frame size=1087721598 main debug: using access module "access_http" main debug: TIMER module_Need() : 63.217 ms - Total 63.217 ms / 1 intvls (Avg 63.217 ms) main debug: Using AStream*Stream main debug: pre-buffering... qt4 debug: New Event: type 1103 qt4 debug: Updating the stream status: 2 main debug: received first data for our buffer main debug: pre-buffering done 206192 bytes in 0s - 1823 kbytes/s main debug: creating demux: access='http' demux='' path='192.168.178.55/Videos/video.mp4' main debug: looking for demux module: 59 candidates mp4 warning: MP4 plugin discarded (unseekable) ts warning: TS module discarded (lost sync) avformat debug: detected format: mov,mp4,m4a,3gp,3g2,mj2 main debug: AStreamSeekStream: can't seek avformat warning: we were not allowed to seek, or EOF main debug: AStreamSeekStream: can't seek avformat warning: we were not allowed to seek, or EOF avformat error: av_open_input_stream failed lua debug: Trying Lua scripts in C:\Dokumente und Einstellungen\Vertrieb\Anwendungsdaten\vlc\lua\playlist lua debug: Trying Lua scripts in C:\Programme\VideoLAN\VLC\\lua\playlist lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\appletrailers.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\break.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\canalplus.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\dailymotion.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\france2.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\googlevideo.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\joox.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\lelombrik.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\megavideo.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\metacafe.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\youtube.lua lua debug: Trying Lua playlist script C:\Programme\VideoLAN\VLC\\lua\playlist\youtube_homepage.lua lua debug: Trying Lua scripts in C:\Programme\VideoLAN\VLC\\share\lua\playlist ps warning: this does not look like an MPEG PS stream, continuing anyway main debug: using demux module "ps" main debug: TIMER module_Need() : 30.228 ms - Total 30.228 ms / 1 intvls (Avg 30.228 ms) main debug: looking for a subtitle file in C:\Programme\VideoLAN\VLC\ main debug: `http://192.168.178.55/Videos/video.mp4' successfully opened ps warning: garbage at input, trying to resync... main debug: control type=1 qt4 debug: New Event: type 1103 qt4 debug: Updating the stream status: 3 ps warning: found sync code ps debug: es id=0xfd format unknown ps warning: garbage at input, trying to resync... ps warning: found sync code ps debug: es id=0xfb format unknown ps warning: garbage at input, trying to resync...
EDIT:

i found something very interesting. I uploaded a small MP4 video sequence to my Apache based website and i could stream it w/o problems :?

So it seems that it has nothing to do with the codecs but my question is what can be the reason for this ?

I have to explain, that the unit where i want to stream from is a Windows-CE based settop box where a tiny webserver is running at. Streaming AVI's from the box with VLC works, but not with MP4.

Cause the log of the successful stream is much bigger, i have uploaded it to my website http://www.angryjack.de/eb/vlclog2.txt

angryjack

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Streaming MP4 with AAC via HTTP

Postby VLC_help » 16 Mar 2009 11:43

mp4 warning: MP4 plugin discarded (unseekable)
Server doesn't allow free seeking of files which is required for certain file types.

angryjack
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2009 17:10

Re: Streaming MP4 with AAC via HTTP

Postby angryjack » 16 Mar 2009 16:12

What is meant with "free seeking of files", the length of the file or the list of files ?

Can you please explain it a little more in detail ?

The settop box we are working with, is extendend with self written software called SOT (Streams on TV) and the webserver is part of it. If i'm able to explain what is needed, i'm sure that we can realize it.

Greetings from Germany
angryjack

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Streaming MP4 with AAC via HTTP

Postby VLC_help » 17 Mar 2009 13:54

Your webserver must allow data requests access any part of the file. Basic servers usually only allow transfers to start from beginning of the file.

angryjack
New Cone
New Cone
Posts: 4
Joined: 14 Mar 2009 17:10

Re: Streaming MP4 with AAC via HTTP

Postby angryjack » 21 Mar 2009 09:00

Hello,

seems to be that this more complicated as expected. It seems that i can have a different solution but again i need help.

I found an UPNP server called Mediatomb and installed it on the attached hard disk of my router. The movies are listed in a webinterface. If i click on a movie link, my Opera browser is downloading the movie but if i insert the link in VLC under "Open Network", it is streaming it :)

My question: How do i get my Opera browser to stream those videos ? Do i have to modify something in the mime type settings for MP4 format ?

Greetings
angryjack

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Streaming MP4 with AAC via HTTP

Postby VLC_help » 21 Mar 2009 17:41

I would guess so. You might get better answer from opera forum.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 9 guests