HTTP Streaming H264 MKV No Video, pulling my hair out

About encoding, codec settings, muxers and filter usage
thedude
New Cone
New Cone
Posts: 3
Joined: 07 Feb 2009 00:21

HTTP Streaming H264 MKV No Video, pulling my hair out

Postby thedude » 07 Feb 2009 00:41

So I have compiled and set up VLC so that I can hopefully stream some video over the internet and I have hit a road block any time I try to stream an MKV file with H264 encoded video and ac3 audio. The problem is no video is sent at all, but audio works fine. I have tried files from different sources with no success, however avi files seem to play fine, leaving me to believe that the problem is has to do with the packetizer_h264.

The following stream has no audio on purpose because i wanted to see if the server would send anything at all when there was no audio to send, and it didnt send a thing...

output from the server

Code: Select all

$ cvlc -vvvv ../storage/shows/The\ Venture\ Bros./Season\ 3/05-The\ Buddy\ System.mkv --no-sout-audio --sout '#standard{access=http,mux=ts,dst=192.168.2.200:9000/movie}' VLC media player 0.9.8a Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--disable-wxwidgets' '--disable-skins2' '--with-ffmpeg-mp3lame' '--enable-sout' '--enable-live555' '--disable-hal' '--disable-dbus' '--disable-glx' '--disable-qt4' '--enable-ffmpeg' '--enable-real' '--enable-realrtsp' '--disable-remoteosd' '--enable-avcodec' '--enable-avformat' '--enable-swscale' '--enable-mad' '--enable-libdvbpsi' '--enable-a52' '--enable-libmpeg2' '--enable-pic' '--enable-libx264' [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc debug: checking builtin modules [00000001] main libvlc debug: checking plugin modules [00000001] main libvlc debug: loading plugins cache file /home/me/.cache/vlc/plugins-04081e.dat [00000001] main libvlc debug: recursively browsing `/usr/local/lib/vlc' [00000001] main libvlc debug: module bank initialized, found 226 modules [00000001] main libvlc debug: opening config file (/home/me/.config/vlc/vlcrc) [00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main libvlc debug: looking for memcpy module: 3 candidates [00000001] main libvlc debug: using memcpy module "memcpymmxext" [00000304] main interaction debug: thread 1106540880 (Interaction control) created at priority 0 (interface/interaction.c:382) [00000304] main interaction debug: thread started [00000306] main input debug: Creating an input for 'Media Library' [00000306] main input debug: Input is a meta file: disabling unneeded options [00000306] main input debug: `file/xspf-open:///home/me/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/me/.local/share/vlc/ml.xspf' [00000306] main input debug: creating access 'file' path='/home/me/.local/share/vlc/ml.xspf' [00000307] main access debug: looking for access module: 3 candidates [00000307] access_file access debug: opening file `/home/me/.local/share/vlc/ml.xspf' [00000307] main access debug: using access module "access_file" [00000307] main access debug: TIMER module_Need() : 0.508 ms - Total 0.508 ms / 1 intvls (Avg 0.508 ms) [00000312] main stream debug: Using AStream*Stream [00000312] main stream debug: pre-buffering... [00000312] main stream debug: received first data for our buffer [00000306] main input debug: creating demux: access='file' demux='xspf-open' path='/home/thedude/.local/share/vlc/ml.xspf' [00000313] main demux debug: looking for demux module: 1 candidate [00000313] playlist demux debug: using XSPF playlist reader [00000313] main demux debug: using demux module "playlist" [00000313] main demux debug: TIMER module_Need() : 0.297 ms - Total 0.297 ms / 1 intvls (Avg 0.297 ms) [00000306] main input debug: `file/xspf-open:///home/me/.local/share/vlc/ml.xspf' successfully opened [00000328] main xml debug: looking for xml module: 1 candidate [00000328] main xml debug: using xml module "xtag" [00000328] main xml debug: TIMER module_Need() : 0.144 ms - Total 0.144 ms / 1 intvls (Avg 0.144 ms) [00000313] playlist demux debug: parsed 0 tracks successfully [00000328] main xml debug: removing module "xtag" [00000306] main input debug: EOF reached [00000306] main input debug: control type=1 [00000313] main demux debug: removing module "playlist" [00000307] main access debug: removing module "access_file" [00000306] main input debug: TIMER input launching for 'Media Library' : 2.998 ms - Total 2.998 ms / 1 intvls (Avg 2.998 ms) [00000330] main preparser debug: waiting for thread initialization [00000330] main preparser debug: thread started [00000330] main preparser debug: thread 1114933584 (preparser) created at priority 0 (playlist/thread.c:79) [00000331] main fetcher debug: waiting for thread initialization [00000331] main fetcher debug: thread started [00000331] main fetcher debug: thread 1123326288 (fetcher) created at priority 0 (playlist/thread.c:108) [00000305] main playlist debug: waiting for thread initialization [00000305] main playlist debug: thread started [00000305] main playlist debug: rebuilding array of current - root Playlist [00000305] main playlist debug: rebuild done - 0 items, index -1 [00000305] main playlist debug: thread 1131718992 (playlist) created at priority 0 (playlist/thread.c:117) [00000332] main interface debug: looking for interface module: 1 candidate [00000332] main interface debug: using interface module "hotkeys" [00000332] main interface debug: TIMER module_Need() : 0.173 ms - Total 0.173 ms / 1 intvls (Avg 0.173 ms) [00000332] main interface debug: thread 1140111696 (interface) created at priority 0 (interface/interface.c:168) [00000332] main interface debug: thread started [00000305] main playlist debug: adding item `05-The Buddy System.mkv' ( ../storage/shows/The Venture Bros./Season 3/05-The Buddy System.mkv ) [00000334] main interface debug: looking for interface module: 13 candidates [00000334] main interface debug: using interface module "signals" [00000334] main interface debug: TIMER module_Need() : 0.292 ms - Total 0.292 ms / 1 intvls (Avg 0.292 ms) [00000334] main interface debug: thread 1156897104 (interface) created at priority 0 (interface/interface.c:168) [00000334] main interface debug: thread started [00000336] main interface debug: looking for interface module: 13 candidates [00000336] dummy interface: using the dummy interface module... [00000336] main interface debug: using interface module "dummy" [00000336] main interface debug: TIMER module_Need() : 0.540 ms - Total 0.540 ms / 1 intvls (Avg 0.540 ms) [00000336] main interface debug: thread 1165289808 (interface) created at priority 0 (interface/interface.c:168) [00000336] main interface debug: thread started [00000305] main playlist debug: starting new item [00000305] main playlist debug: processing request item null node Playlist skip 0 [00000305] main playlist debug: rebuilding array of current - root Playlist [00000305] main playlist debug: rebuild done - 1 items, index -1 [00000305] main playlist debug: creating new input thread [00000345] main input debug: Creating an input for '05-The Buddy System.mkv' [00000345] main input debug: waiting for thread initialization [00000345] main input debug: thread started [00000345] main input debug: thread 1173682512 (input) created at priority 10 (input/input.c:370) [00000346] main stream output debug: stream=`standard' [00000347] main stream out debug: looking for sout stream module: 1 candidate [00000347] main stream out debug: set config option: sout-standard-access to http [00000347] main stream out debug: set config option: sout-standard-mux to ts [00000347] main stream out debug: set config option: sout-standard-dst to 192.168.2.200:9000/movie [00000347] stream_out_standard stream out debug: creating `http/ts://192.168.2.200:9000/movie' [00000347] stream_out_standard stream out debug: extension is 200:9090/movie [00000347] stream_out_standard stream out debug: extension -> mux=(null) [00000347] stream_out_standard stream out debug: using `http/ts://192.168.2.200:9000/movie' [00000349] main access out debug: looking for sout access module: 1 candidate [00000349] main access out: creating httpd [00000349] main access out debug: net: listening to 192.168.2.200 port 9000 [00000352] main http server debug: thread 1092106576 (httpd host thread) created at priority 0 (network/httpd.c:1107) [00000352] main http server debug: thread started [00000349] main access out debug: using sout access module "access_output_http" [00000349] main access out debug: TIMER module_Need() : 1.366 ms - Total 1.366 ms / 1 intvls (Avg 1.366 ms) [00000347] stream_out_standard stream out debug: access opened [00000353] main mux debug: looking for sout mux module: 1 candidate [00000353] mux_ts mux debug: shaping=200000 pcr=70000 dts_delay=400000 [00000353] main mux debug: using sout mux module "mux_ts" [00000353] main mux debug: TIMER module_Need() : 2.850 ms - Total 2.850 ms / 1 intvls (Avg 2.850 ms) [00000346] main stream output debug: muxer support adding stream at any time [00000347] stream_out_standard stream out debug: mux opened [00000347] main stream out debug: using sout stream module "stream_out_standard" [00000347] main stream out debug: TIMER module_Need() : 8.556 ms - Total 8.556 ms / 1 intvls (Avg 8.556 ms) [00000345] main input debug: `../storage/shows/The Venture Bros./Season 3/05-The Buddy System.mkv' gives access `' demux `' path `../storage/shows/The Venture Bros./Season 3/05-The Buddy System.mkv' [00000345] main input debug: creating demux: access='' demux='' path='../storage/shows/The Venture Bros./Season 3/05-The Buddy System.mkv' [00000355] main demux debug: looking for access_demux module: 1 candidate [00000355] main demux debug: TIMER module_Need() : 0.286 ms - Total 0.286 ms / 1 intvls (Avg 0.286 ms) [00000345] main input debug: creating access '' path='../storage/shows/The Venture Bros./Season 3/05-The Buddy System.mkv' [00000358] main access debug: looking for access module: 6 candidates [00000358] vcd access debug: trying .cue file: ../storage/shows/The Venture Bros./Season 3/05-The Buddy System.cue [00000358] vcd access debug: could not find .cue file [00000358] access_file access debug: opening file `../storage/shows/The Venture Bros./Season 3/05-The Buddy System.mkv' [00000358] main access debug: using access module "access_file" [00000358] main access debug: TIMER module_Need() : 0.367 ms - Total 0.367 ms / 1 intvls (Avg 0.367 ms) [00000360] main stream debug: Using AStream*Stream [00000360] main stream debug: pre-buffering... [00000360] main stream debug: received first data for our buffer [00000360] main stream debug: pre-buffering done 1408981 bytes in 0s - 833913 kbytes/s [00000345] main input debug: creating demux: access='' demux='' path='../storage/shows/The Venture Bros./Season 3/05-The Buddy System.mkv' [00000361] main demux debug: looking for demux module: 54 candidates [00000361] avformat demux debug: detected format: matroska [00000345] main input debug: selecting program id=0 [00000361] avformat demux debug: adding es: video codec = h264 [00000361] avformat demux debug: adding es: audio codec = a52 [00000361] avformat demux debug: AVFormat supported stream [00000361] avformat demux debug: - format = matroska (Matroska file format) [00000361] avformat demux debug: - start time = 0 [00000361] avformat demux debug: - duration = 1368160000 [00000361] main demux debug: using demux module "avformat" [00000361] main demux debug: TIMER module_Need() : 12.461 ms - Total 12.461 ms / 1 intvls (Avg 12.461 ms) [00000345] main input debug: looking for a subtitle file in ../storage/shows/The Venture Bros./Season 3/ [00000396] main packetizer debug: looking for packetizer module: 16 candidates [00000396] main packetizer debug: using packetizer module "packetizer_h264" [00000396] main packetizer debug: TIMER module_Need() : 1.808 ms - Total 1.808 ms / 1 intvls (Avg 1.808 ms) [00000345] main input debug: stream out mode -> no decoder thread [00000345] main input debug: audio is disabled, not selecting ES 0x1 [00000345] main input debug: starting in async mode [00000345] main input debug: `../storage/shows/The Venture Bros./Season 3/05-The Buddy System.mkv' successfully opened [00000345] main input debug: control type=1 [00000396] packetizer_h264 packetizer debug: found NAL_SPS (sps_id=4) [00000396] packetizer_h264 packetizer warning: waiting for SPS/PPS [00000396] packetizer_h264 packetizer warning: waiting for SPS/PPS [00000396] packetizer_h264 packetizer warning: waiting for SPS/PPS [00000396] packetizer_h264 packetizer warning: waiting for SPS/PPS [00000396] packetizer_h264 packetizer warning: waiting for SPS/PPS [00000361] avformat demux debug: Trying to seek too far : EOF? [00000345] main input debug: EOF reached [00000305] main playlist debug: finished input [00000305] main playlist debug: dying input [00000305] main playlist debug: dying input [00000305] main playlist debug: dying input [00000361] main demux debug: removing module "avformat" [00000358] main access debug: removing module "access_file" [00000396] main packetizer debug: removing module "packetizer_h264" [00000396] main packetizer debug: killing decoder fourcc `h264', 0 PES in FIFO [00000345] main input debug: thread ended [00000305] main playlist debug: dead input [00000345] main input debug: thread 1173682512 joined (playlist/engine.c:244) [00000345] main input debug: TIMER input launching for '05-The Buddy System.mkv' : 66.847 ms - Total 66.847 ms / 1 intvls (Avg 66.847 ms) [00000347] main stream out debug: destroying chain... (name=standard) [00000353] main mux debug: removing module "mux_ts" [00000352] main http server warning: force closing connections [00000352] main http server debug: waitpipe: object killed [00000352] main http server debug: thread ended [00000352] main http server debug: thread 1092106576 joined (network/httpd.c:1164) [00000352] main http server debug: HTTP host removed [00000351] main http server debug: no host left, stopping httpd [00000349] access_output_http access out debug: Close [00000349] main access out debug: removing module "access_output_http" [00000347] main stream out debug: removing module "stream_out_standard" [00000347] main stream out debug: destroying chain done [00000305] main playlist debug: starting new item [00000305] main playlist debug: changing item without a request (current 0/1) [00000305] main playlist debug: nothing to play
x264 was configured as so:

Code: Select all

# ./configure --enable-pic --enable-shared --enable-debug --enable-asm --enable-pthread --enable-mp4-output --extra-cflags=-fPIC fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree. Use '--' to separate paths from revisions Platform: X86_64 System: LINUX asm: yes avis input: no mp4 output: yes pthread: yes debug: yes gprof: no PIC: yes shared: yes visualize: no
any help would be greatly appreciated as I can't seem to find any solution right now
Thanks
James

thedude
New Cone
New Cone
Posts: 3
Joined: 07 Feb 2009 00:21

Re: HTTP Streaming H264 MKV No Video, pulling my hair out

Postby thedude » 07 Feb 2009 04:04

Also I have tried to play movies on my home network and the result is the same

Heres the output from mplayer

Code: Select all

$ mplayer http://192.168.1.200:9000 MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ (Family: 15, Model: 107, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. Playing http://192.168.1.200:9000. Connecting to server 192.168.1.200[192.168.1.200]: 9000... Cache size set to 320 KBytes Cache fill: 17.50% (57344 bytes) TS file format detected. NO VIDEO! AUDIO A52(pid=68) NO SUBS (yet)! PROGRAM N. 1 ========================================================================== Opening audio decoder: [liba52] AC3 decoding with liba52 Using SSE optimized IMDCT transform Using MMX optimized resampler AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000) Selected audio codec: [a52] afm: liba52 (AC3-liba52) ========================================================================== AO: [oss] 48000Hz 2ch s16le (2 bytes per sample) Video: no video Starting playback...
all i get is sound

songoo
Blank Cone
Blank Cone
Posts: 18
Joined: 17 Jan 2009 03:41

Re: HTTP Streaming H264 MKV No Video, pulling my hair out

Postby songoo » 10 Feb 2009 03:31


thedude
New Cone
New Cone
Posts: 3
Joined: 07 Feb 2009 00:21

Re: HTTP Streaming H264 MKV No Video, pulling my hair out

Postby thedude » 12 Feb 2009 05:39

so it looks like mkv is a no go...


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 4 guests