Page 1 of 1

VLC streaming of mythtv recordings

Posted: 04 Nov 2005 13:08
by aebrett
Recently I've been trying to use vlc to stream programs recorded using mythtv (from a Nova-T dvb card), but without a whole lot of success. v0.8.1 of vlc is the version with which I've got closest to success, but even in that case I can get video, but no audio. With more recent versions of vlc I just get a whole load of "late picture skipped" warnings, and no video or audio, so I've been sticking with 0.8.1 for my testing. The command I'm running is:

Code: Select all

vlc -vvv -I http --http-host=:8002 --sout-transcode-fps=25 --sout-transcode-deinterlace --programs=0,3 /var/video/recordings/1030_20051029005500_20051029020000.nuv ':sout=#transcode{vcodec=DIV3,acodec=mp3,vb=192,ab=128,scale=.25}:std{access=http{user=,pwd=,mime=video/x-ms-asf},mux=asf,url=:8001}'
which gives me the following output (apologies for the verbosity):

Code: Select all

VLC media player 0.8.1 Janus [00000001] main vlc debug: opening config file /root/.vlc/vlcrc [00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet [00000001] main vlc debug: checking builtin modules [00000001] main vlc debug: checking plugin modules [00000001] main vlc debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat [00000001] main vlc debug: recursively browsing `modules' [00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc' [00000001] main vlc debug: recursively browsing `plugins' [00000001] main vlc debug: module bank initialized, found 332 modules [00000001] main vlc debug: opening config file /root/.vlc/vlcrc [00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet [00000000] main root debug: VLC media player - version 0.8.1 Janus - (c) 1996-2004 VideoLAN [00000000] main root debug: libvlc was configured with ./configure --enable-x11 --enable-xvideo --enable-ncurses --disable-gtk --disable-sdl --enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-zlib --enable-mad --enable-libdvbpsi --enable-a52 --disable-dvdplay --enable-dvdnav --enable-vorbis --enable-ogg --enable-theora --enable-mkv --enable-freetype --disable-cddax --disable-vcdx --enable-speex --enable-flac --enable-goom --enable-livedotcom --enable-caca --disable-skins2 --enable-modplug --enable-debug --enable-gpl --enable-mp3lame --enable-pp --enable-pvr --enable-dvb --disable-x264 --with-ffmpeg-tree=/usr/local/src/ffmpeg-0.4.9-pre1 --with-libmpeg2-tree=/usr/local/src/mpeg2dec-0.4.0 [00000001] main vlc debug: translation test: code is "en_GB" [00000001] main vlc debug: opening config file /root/.vlc/vlcrc [00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet [00000001] main vlc debug: checking builtin modules [00000001] main vlc debug: checking plugin modules [00000001] main vlc debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat [00000001] main vlc debug: recursively browsing `modules' [00000001] main vlc debug: recursively browsing `/usr/local/lib/vlc' [00000001] main vlc debug: recursively browsing `plugins' [00000001] main vlc debug: module bank initialized, found 332 modules [00000001] main vlc debug: opening config file /root/.vlc/vlcrc [00000001] main vlc warning: config file /root/.vlc/vlcrc does not exist yet [00000001] main vlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main vlc debug: looking for memcpy module [00000001] main vlc debug: probing 4 candidates [00000010] main module debug: using memcpy module "memcpymmxext" [00000415] main playlist debug: creating group Normal with id 1 at position 0 [00000415] main playlist debug: waiting for thread completion [00000415] main playlist debug: thread -1213580368 (playlist) created at priority 0 (src/playlist/playlist.c:107) [00000416] main interface debug: looking for interface module [00000416] main interface debug: probing 2 candidates [00000087] main module debug: using interface module "hotkeys" [00000416] main interface debug: interface initialized [00000416] main interface debug: thread -1221993552 (interface) created at priority 0 (src/interface/interface.c:209) [00000415] main playlist debug: adding playlist item `/var/video/recordings/1030_20051029005500_20051029020000.nuv' ( /var/video/recordings/1030_20051029005500_20051029020000.nuv ) [00000418] main interface debug: looking for interface module [00000418] main interface debug: probing 6 candidates [00000418] http interface debug: base :8002 [00000418] main interface: creating httpd [00000421] main private debug: thread -1230443600 (httpd host thread) created at priority 0 (src/misc/httpd.c:1170) [00000418] http interface debug: dir=share/http [00000418] http interface debug: file=share/http/index.html (url=/) [00000418] http interface debug: redir= -> / [00000418] http interface debug: dir=share/http/vlm [00000418] http interface debug: file=share/http/vlm/index.html (url=/vlm/) [00000418] http interface debug: redir=/vlm -> /vlm/ [00000418] http interface debug: file=share/http/vlm/edit.html (url=/vlm/edit.html) [00000418] http interface debug: file=share/http/vlm/new.html (url=/vlm/new.html) [00000418] http interface debug: file=share/http/info.html (url=/info.html) [00000418] http interface debug: dir=share/http/admin [00000418] http interface debug: find .access in dir=share/http/admin [00000418] http interface debug: using user=admin password=admin (read=11) [00000418] http interface debug: file=share/http/admin/dboxfiles.html (url=/admin/dboxfiles.html) [00000418] http interface debug: file=share/http/admin/index.html (url=/admin/) [00000418] http interface debug: redir=/admin -> /admin/ [00000418] http interface debug: file=share/http/admin/browse.html (url=/admin/browse.html) [00000418] http interface debug: file=share/http/style.css (url=/style.css) [00000084] main module debug: using interface module "http" [00000418] main interface debug: interface initialized [00000415] main playlist debug: creating new input thread [00000422] main input debug: set input option: sout to #transcode{vcodec=DIV3,acodec=mp3,vb=192,ab=128,scale=.25}:std{access=http{user=,pwd=,mime=video/x-ms-asf},mux=asf,url=:8001} [00000422] main input debug: waiting for thread completion [00000422] main input debug: thread -1238836304 (input) created at priority 0 (src/input/input.c:228) [00000418] main interface debug: thread -1247229008 (manager) created at priority 0 (src/interface/interface.c:194) [00000423] main stream output debug: stream=`transcode' [00000424] main private debug: looking for sout stream module [00000424] main private debug: probing 2 candidates [00000423] main stream output debug: stream=`std' [00000427] main private debug: looking for sout stream module [00000427] main private debug: probing 2 candidates [00000427] main private debug: set sout option: sout-standard-access to http{user=,pwd=,mime=video/x-ms-asf} [00000427] main private debug: set sout option: sout-standard-mux to asf [00000427] main private debug: set sout option: sout-standard-url to :8001 [00000427] stream_out_standard private debug: creating `http{user=,pwd=,mime=video/x-ms-asf}/asf://:8001' [00000427] stream_out_standard private debug: using `http{user=,pwd=,mime=video/x-ms-asf}/asf://:8001' [00000429] main private debug: looking for sout access module [00000429] main private debug: probing 2 candidates [00000429] main private warning: missing value for option user [00000429] main private warning: missing value for option pwd [00000429] main private debug: set sout option: sout-http-mime to video/x-ms-asf [00000431] main private debug: thread -1255654480 (httpd host thread) created at priority 0 (src/misc/httpd.c:1170) [00000068] main module debug: using sout access module "access_output_http" [00000427] stream_out_standard private debug: access opened [00000432] main private debug: looking for sout mux module [00000432] main private debug: probing 2 candidates [00000432] mux_asf private debug: Asf muxer opened [00000432] mux_asf private debug: meta data: title='' author='' copyright='' comment='' rating='' [00000079] main module debug: using sout mux module "mux_asf" [00000427] stream_out_standard private debug: mux opened [00000053] main module debug: using sout stream module "stream_out_standard" [00000424] main private debug: set sout option: sout-transcode-vcodec to DIV3 [00000424] main private debug: set sout option: sout-transcode-acodec to mp3 [00000424] main private debug: set sout option: sout-transcode-vb to 192 [00000424] main private debug: set sout option: sout-transcode-ab to 128 [00000424] main private debug: set sout option: sout-transcode-scale to .25 [00000424] stream_out_transcode private debug: codec audio=mp3 0Hz 0 channels 128Kb/s [00000424] stream_out_transcode private debug: codec video=DIV3 0x0 scaling: 0.250000 192kb/s [00000054] main module debug: using sout stream module "stream_out_transcode" [00000422] main input debug: `/var/video/recordings/1030_20051029005500_20051029020000.nuv' gives access `' demux `' path `/var/video/recordings/1030_20051029005500_20051029020000.nuv' [00000422] main input debug: demux2_New: access='' demux='' path='/var/video/recordings/1030_20051029005500_20051029020000.nuv' [00000434] main demuxer debug: looking for access_demux module [00000434] main demuxer debug: probing 0 candidates [00000434] main demuxer warning: no access_demux module matched "any" [00000422] main input debug: access2_New: access='' path='/var/video/recordings/1030_20051029005500_20051029020000.nuv' [00000435] main access debug: looking for access2 module [00000435] main access debug: probing 8 candidates [00000435] vcd access debug: trying .cue file: /var/video/recordings/1030_20051029005500_20051029020000.cue [00000435] vcd access warning: could not open /var/video/recordings/1030_20051029005500_20051029020000.nuv [00000435] vcd access debug: trying .cue file: /var/video/recordings/1030_20051029005500_20051029020000.cue [00000435] vcd access warning: could not open /var/video/recordings/1030_20051029005500_20051029020000.nuv [00000435] access_file access debug: opening file `/var/video/recordings/1030_20051029005500_20051029020000.nuv' [00000097] main module debug: using access2 module "access_file" [00000443] main private debug: pre buffering [00000443] main private debug: received first data for our buffer [00000443] main private debug: prebuffering done 1408981 bytes in 0s - 13612 kbytes/s [00000422] main input debug: demux2_New: access='' demux='' path='/var/video/recordings/1030_20051029005500_20051029020000.nuv' [00000444] main demuxer debug: looking for demux2 module [00000444] main demuxer debug: probing 59 candidates [00000444] mp4 demuxer warning: MP4 plugin discarded (not a valid file) [00000444] mp4 demuxer warning: MP4 plugin discarded (not a valid file) [00000444] avi demuxer warning: avi module discarded (invalid header) [00000444] avi demuxer warning: avi module discarded (invalid header) [00000444] asf demuxer warning: ASF plugin discarded (not a valid file) [00000444] asf demuxer warning: ASF plugin discarded (not a valid file) [00000444] flac demuxer warning: flac module discarded (no startcode) [00000444] flac demuxer warning: flac module discarded (no startcode) [00000444] main demuxer debug: looking for id3 module [00000444] main demuxer debug: probing 2 candidates [00000444] id3 demuxer debug: checking for ID3 tag [00000150] main module debug: using id3 module "id3" [00000150] main module debug: unlocking module "id3" [00000444] mpgv demuxer warning: ES module discarded (system startcode) [00000444] aac demuxer warning: AAC module discarded [00000444] mpgv demuxer warning: ES module discarded (system startcode) [00000444] main demuxer debug: looking for id3 module [00000444] main demuxer debug: probing 2 candidates [00000444] id3 demuxer debug: checking for ID3 tag [00000150] main module debug: using id3 module "id3" [00000150] main module debug: unlocking module "id3" [00000444] aac demuxer warning: AAC module discarded [00000444] sap demuxer warning: SDP (UDP) module discarded [00000444] sap demuxer warning: SDP (UDP) module discarded [00000444] ogg demuxer warning: ogg module discarded (invalid header) [00000444] ogg demuxer warning: ogg module discarded (invalid header) [00000444] real demuxer warning: Real module discarded [00000444] real demuxer warning: Real module discarded [00000444] playlist demuxer warning: old import module discarded: invalid file [00000444] playlist demuxer warning: pls import module discarded [00000444] au demuxer warning: AU module discarded [00000444] nsv demuxer warning: NSV module discarded [00000444] ts demuxer warning: TS module discarded (lost sync) [00000444] pva demuxer warning: PVA module discarded [00000444] aiff demuxer warning: AIFF module discarded [00000444] ts demuxer warning: TS module discarded (lost sync) [00000444] playlist demuxer warning: old import module discarded: invalid file [00000444] playlist demuxer warning: pls import module discarded [00000444] au demuxer warning: AU module discarded [00000444] nsv demuxer warning: NSV module discarded [00000444] aiff demuxer warning: AIFF module discarded [00000444] pva demuxer warning: PVA module discarded [00000168] main module debug: using demux2 module "ps" [00000422] main input debug: looking for a subtitle file in /var/video/recordings/ [00000422] main input debug: starting in synch mode [00000422] main input debug: `/var/video/recordings/1030_20051029005500_20051029020000.nuv' sucessfully opened [00000422] main input debug: Selecting program id=0 [00000498] main packetizer debug: looking for packetizer module [00000498] main packetizer debug: probing 33 candidates [00000061] main module debug: using packetizer module "packetizer_mpegvideo" [00000422] main input debug: stream out mode -> no decoder thread [00000498] packetizer_mpegvideo packetizer debug: Size 544x576 fps=25.000 [00000422] main input debug: control type=1 [00000526] main packetizer debug: looking for packetizer module [00000526] main packetizer debug: probing 33 candidates [00000135] main module debug: using packetizer module "mpeg_audio" [00000422] main input debug: stream out mode -> no decoder thread [00000552] main packetizer debug: looking for packetizer module [00000552] main packetizer debug: probing 33 candidates [00000135] main module debug: using packetizer module "mpeg_audio" [00000422] main input debug: stream out mode -> no decoder thread [00000498] packetizer_mpegvideo packetizer debug: need a starting pts/dts [00000423] main stream output debug: adding a new input [00000424] stream_out_transcode private debug: creating video transcoding from fcc=`mpgv' to fcc=`DIV3' [00000553] main decoder debug: looking for decoder module [00000553] main decoder debug: probing 38 candidates [00000136] main module debug: using decoder module "libmpeg2" [00000554] main encoder debug: looking for encoder module [00000554] main encoder debug: probing 12 candidates [00000554] ffmpeg encoder debug: libavcodec initialized (interface 4718 ) [00000554] ffmpeg encoder debug: found encoder MS MPEG-4 Video v3 [00000014] main module debug: using encoder module "ffmpeg" [00000014] main module debug: unlocking module "ffmpeg" [00000423] main stream output warning: trying to send non-dated packet to stream output! [00000553] libmpeg2 decoder debug: 544x576, aspect 768000, 25.000 fps [00000560] main private warning: dts != current_pts (1131105432034955) [00000560] main private warning: vout synchro warning: pts != current_date (-40000) [00000554] main encoder debug: looking for encoder module [00000554] main encoder debug: probing 12 candidates [00000554] ffmpeg encoder debug: libavcodec already initialized [msmpeg4 @ 0x835b1d0]removing common factors from framerate [00000554] ffmpeg encoder debug: found encoder MS MPEG-4 Video v3 [00000014] main module debug: using encoder module "ffmpeg" [00000432] main private debug: adding a new input [00000432] mux_asf private debug: adding input [00000561] main private debug: looking for video filter2 module [00000561] main private debug: probing 4 candidates [00000561] ffmpeg private debug: deinterlacing [00000561] ffmpeg private debug: libavcodec already initialized [00000017] main module debug: using video filter2 module "ffmpeg" [00000562] main private debug: looking for video filter2 module [00000562] main private debug: probing 3 candidates [00000562] ffmpeg private debug: input: 544x576 I420 -> 136x144 I420 [00000562] ffmpeg private debug: libavcodec already initialized [00000016] main module debug: using video filter2 module "ffmpeg" [msmpeg4 @ 0x835b1d0]warning, cliping 1 dct coefficents to -127..127 [00000560] main private debug: stream periodicity changed from B[1] to B[2] [msmpeg4 @ 0x835b1d0]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x835b1d0]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x835b1d0]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x835b1d0]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x835b1d0]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x835b1d0]warning, cliping 1 dct coefficents to -127..127 [msmpeg4 @ 0x835b1d0]warning, cliping 1 dct coefficents to -127..127 [00000560] main private debug: stream periodicity changed from P[5] to P[3] [00000432] mux_asf private debug: Asf muxer creating header [00000432] mux_asf private debug: pixel aspect-ratio: 32/17 [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000431] main private debug: new connection (<snip/>) peek=GET received new request=GET / HTTP/1.1^M X-ICAP-Version: 1.0^M Host: <snip/>:8001^M Connection: keep-alive^M User-Agent: MPlayer/dev-CVS-050928-16:38-3.4.2^M Icy-MetaData: 1^M X-Forwarded-For: <snip/>^M Via: <snip/>^M ^M received new request - proto=HTTP - version=1 - msg=3 - url=/ - option name='X-ICAP-Version' value='1.0' - option name='Host' value='<snip/>:8001' - option name='Connection' value='keep-alive' - option name='User-Agent' value='MPlayer/dev-CVS-050928-16:38-3.4.2' - option name='Icy-MetaData' value='1' - option name='X-Forwarded-For' value='<snip/>' - option name='Via' value='<snip/>' sending answer HTTP/1.0 200 OK^M Content-type: video/x-ms-asf^M Cache-Control: no-cache^M ^M [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures [00000560] main private debug: decoded 108/108 pictures etc.
Any help, advice or pointers to get audio working would be greatly appreciated - I've lost count of the number of source compiles I've done to try and sort this problem, and I'm pretty much out of ideas at the moment.

Thanks.