PVR streaming on 350 buffers forever

*nix specific usage questions
Makenai
New Cone
New Cone
Posts: 7
Joined: 30 Jul 2005 12:15

PVR streaming on 350 buffers forever

Postby Makenai » 30 Jul 2005 12:40

Hi all,

I'm using VLC to stream video over the internet. I can record to mpeg using the standard ivtv tools and then stream the resulting mpeg over - and it works beautifully. I just can't seem to do it directly from /dev/video0 - it gets to the part about 'main private debug: pre buffering' and then sits there forever. I have tried both 0.8.2 and the snapshot from 20050729 with the same results.

It works great when I do something like this:

Code: Select all

/usr/local/bin/record-v4l2.pl --inputname 'Tuner 0' --channel 1 --freqtable ntsc-bcast-jp --duration 3600 --directory /home/makenai/ --directory-format '' --output tv.mpg
..and then in another console a second or so later..

Code: Select all

vlc -vvv --color /home/makenai/tv.mpg --cr-average 1000 --sout '#transcode{vcodec=DIV3,vb=600,width=352,height=288,acodec=mp3,ab=96,deinterlace}:std{access=mmsh,mux=asfh,url=:8080}'
This is almost ideal except for creating a huge tv.mpg that I would have to erase and reset every once in a while, and being a little bit behind (however long it takes me to switch consoles and type the vlc command).

Below is the command that fails and the output - does anyon have any idea why it is stopping at the prebuffering message?

Code: Select all

vlc -vvv --color pvr:/dev/video0:norm=ntsc:size=720x576:frequency=91250:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout '#transcode{vcodec=DIV3,vb=600,width=352,height=288,acodec=mp3,ab=96,deinterlace}:std{access=mmsh,mux=asfh,url=:8080}' VLC media player 0.8.2 Janus [00000001] main vlc debug: opening config file /home/makenai/.vlc/vlcrc [00000001] main vlc warning: config file /home/makenai/.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 /home/makenai/.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 197 modules [00000001] main vlc debug: opening config file /home/makenai/.vlc/vlcrc [00000001] main vlc warning: config file /home/makenai/.vlc/vlcrc does not exist yet [00000000] main root debug: VLC media player - version 0.8.2 Janus - (c) 1996-2005 VideoLAN [00000000] main root debug: libvlc was configured with ./configure --enable-release --enable-sout --enable-httpd --enable-livedotcom --enable-dvbpsi --enable-v4l --enable-pvr --enable-ogg --enable-mod --enable-mad --enable-ffmpeg --enable-faad --enable-twolame --enable-a52 --enable-flac --enable-libmpeg2 --enable-vorbis --enable-speex --enable-theora --enable-png --enable-x264 --disable-x11 --disable-xvideo --disable-glx --disable-opengl --disable-sdl --enable-freetype --enable-fribidi --enable-libxml2 --enable-aa --enable-portaudio --disable-wxwindows --with-livedotcom-tree=/home/makenai/install/vlc/libs/ex/live/ --with-dvbpsi-tree=/home/makenai/install/vlc/libs/ex/libdvbpsi-20041028/ --with-mad-tree=/home/makenai/install/vlc/libs/ex/libmad-0.15.1b/ --with-ffmpeg-mp3lame --with-ffmpeg-faac --with-ffmpeg-zlib --with-ffmpeg-tree=/home/makenai/install/vlc/libs/ex/ffmpeg-20041113/ --with-faad-tree=/home/makenai/install/vlc/libs/ex/faad2-20040923/ --with-twolame-tree=/home/makenai/install/vlc/libs/twolame-0.3.3/ --with-a52-tree=/home/makenai/install/vlc/libs/ex/a52dec-0.7.4/ --with-libmpeg2-tree=/home/makenai/install/vlc/libs/ex/mpeg2dec-0.4.0/ --with-x264-tree=/home/makenai/install/vlc/libs/ex/x264-20041029/ [00000001] main vlc debug: translation test: code is "C" [00000001] main vlc debug: opening config file /home/makenai/.vlc/vlcrc [00000001] main vlc warning: config file /home/makenai/.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 /home/makenai/.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 197 modules [00000001] main vlc debug: opening config file /home/makenai/.vlc/vlcrc [00000001] main vlc warning: config file /home/makenai/.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: 3 candidates [00000010] main module debug: using memcpy module "memcpymmxext" [00000257] main playlist debug: waiting for thread completion [00000257] main playlist debug: thread 3078081456 (playlist) created at priority 0 (src/playlist/playlist.c:152) [00000258] main private debug: waiting for thread completion [00000258] main private debug: thread 3069688752 (preparser) created at priority 0 (src/playlist/playlist.c:174) [00000259] main interface debug: looking for interface module: 1 candidate [00000136] main module debug: using interface module "hotkeys" [00000259] main interface debug: interface initialized [00000259] main interface debug: thread 3061275568 (interface) created at priority 0 (src/interface/interface.c:211) [00000257] main playlist debug: adding playlist item `pvr:/dev/video0:norm=ntsc:size=720x576:frequency=91250:bitrate=3000000:maxbitrate=4000000' ( pvr:/dev/video0:norm=ntsc:size=720x576:frequency=91250:bitrate=3000000:maxbitrate=4000000 ) [00000261] main interface debug: looking for interface module: 2 candidates [00000261] skins2 interface error: Cannot open display [00000261] skins2 interface error: Cannot initialize OSFactory [00000134] main module debug: using interface module "rc" [00000261] main interface debug: interface initialized [00000261] main interface debug: thread 3050740656 (manager) created at priority 0 (src/interface/interface.c:196) [00000257] main playlist debug: creating new input thread [00000265] main input debug: waiting for thread completion [00000266] main stream output debug: stream=`transcode' [00000267] main private debug: looking for sout stream module: 1 candidate [00000266] main stream output debug: stream=`std' [00000270] main private debug: looking for sout stream module: 1 candidate [00000270] main private debug: set sout option: sout-standard-access to mmsh [00000270] main private debug: set sout option: sout-standard-mux to asfh [00000270] main private debug: set sout option: sout-standard-url to :8080 [00000270] stream_out_standard private debug: creating `mmsh/asfh://:8080' [00000270] stream_out_standard private debug: using `mmsh/asfh://:8080' [00000272] main private debug: looking for sout access module: 1 candidate [00000265] main input debug: thread 3042347952 (input) created at priority 0 (src/input/input.c:230) [00000272] main private: creating httpd [00000275] main private debug: thread 3033885616 (httpd host thread) created at priority 0 (src/misc/httpd.c:1163) [00000056] main module debug: using sout access module "access_output_http" [00000270] stream_out_standard private debug: access opened [00000276] main private debug: looking for sout mux module: 1 candidate [00000276] mux_asf private debug: Asf muxer opened [00000276] mux_asf private debug: creating asf stream to be used with mmsh [00000276] mux_asf private debug: Packet size 4096 [00000276] mux_asf private debug: meta data: title='' author='' copyright='' comment='' rating='' [00000202] main module debug: using sout mux module "mux_asf" [00000266] main stream output debug: muxer support adding stream at any time [00000266] main stream output debug: muxer prefers waiting for all ES before starting muxing [00000270] stream_out_standard private debug: mux opened [00000216] main module debug: using sout stream module "stream_out_standard" [00000267] main private debug: set sout option: sout-transcode-vcodec to DIV3 [00000267] main private debug: set sout option: sout-transcode-vb to 600 [00000267] main private debug: set sout option: sout-transcode-width to 352 [00000267] main private debug: set sout option: sout-transcode-height to 288 [00000267] main private debug: set sout option: sout-transcode-acodec to mp3 [00000267] main private debug: set sout option: sout-transcode-ab to 96 [00000267] main private debug: set sout option: sout-transcode-deinterlace to (null) [00000267] stream_out_transcode private debug: codec audio=mp3 0Hz 0 channels 96Kb/s [00000267] stream_out_transcode private debug: codec video=DIV3 352x288 scaling: 1.000000 600kb/s [00000223] main module debug: using sout stream module "stream_out_transcode" [00000265] main input debug: `pvr:/dev/video0:norm=ntsc:size=720x576:frequency=91250:bitrate=3000000:maxbitrate=4000000' gives access `pvr' demux `' path `/dev/video0:norm=ntsc:size=720x576:frequency=91250:bitrate=3000000:maxbitrate=4000000' [00000265] main input debug: creating demux: access='pvr' demux='' path='/dev/video0:norm=ntsc:size=720x576:frequency=91250:bitrate=3000000:maxbitrate=4000000' [00000278] main demuxer debug: looking for access_demux module: 0 candidates [00000278] main demuxer warning: no access_demux module matched "pvr" [00000265] main input debug: creating access 'pvr' path='/dev/video0:norm=ntsc:size=720x576:frequency=91250:bitrate=3000000:maxbitrate=4000000' [00000279] main access debug: looking for access2 module: 5 candidates [00000279] pvr access debug: using video device: /dev/video0 [00000279] pvr access debug: video standard set to:3000 [00000279] pvr access debug: picture size set to:720x576 [00000279] pvr access debug: Tuner frequency set to:91250 [00000279] pvr access debug: Setting codec parameters to: framerate: 0, bitrate: 3000000/4000000/0 [00000045] main module debug: using access2 module "pvr" [00000281] main private debug: pre buffering
..and then it just sits there until I hit ^C repeatedly.

I am running this on Ubuntu with a 2.6 kernel and whatever the latest ivtv drivers were a week and a half ago. I compiled VLC and all of its required libraries except for zlib and libxml2 from sources. Capturing using the perl tools works fine. Streaming the captured mpegs works fine as shown above. The tuner frequency is the correct one for channel 1 used in the perl script. If I try to record a channel at a bad frequency, I can actually stream the snow live to myself without the buffering problem.

I've noticed that it says 0 for the framerate above - not sure why.

Anyone have any idea how to fix my problem? Any help will be very much appreciated as I have been hacking on this (well, and a few other problems I have already overcome) for days. Once I can get this part working, I can start the fun programming parts for my web interface.

Thanks in advance!

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 30 Jul 2005 18:42

VLC isn't receiving any data from it's input. so the input settings you have specified don't do the trick. Reason unknown. You should try to get local playback running before doing things like streaming, transcoding etc. (1 step at a time approach)
Don't use PMs for support questions.

Makenai
New Cone
New Cone
Posts: 7
Joined: 30 Jul 2005 12:15

Postby Makenai » 30 Jul 2005 23:11

VLC isn't receiving any data from it's input. so the input settings you have specified don't do the trick. Reason unknown. You should try to get local playback running before doing things like streaming, transcoding etc. (1 step at a time approach)
Sounds logical and that's certainly what it looks like is happening with the 0fps etc. At the moment though the box is several thousands of miles away and we are parted for a good year or so yet. I'll try messing around with libcaca or aalib a bit to see if I can get something useful over the console. I'm still not sure what to look for - in theory, the instructions here should work with the current versions right? I read a couple posts to the effect that there were problems with the pvr access module 0.8.1.

By the way, I'm not sure if it will help, but this is what happens when I try to tune to and stream a dead channel (97250/ch2 instead of 91250/ch1):

Code: Select all

VLC media player 0.8.2 Janus [00000001] main vlc debug: opening config file /home/makenai/.vlc/vlcrc [00000001] main vlc warning: config file /home/makenai/.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 /home/makenai/.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 197 modules [00000001] main vlc debug: opening config file /home/makenai/.vlc/vlcrc [00000001] main vlc warning: config file /home/makenai/.vlc/vlcrc does not exist yet [00000000] main root debug: VLC media player - version 0.8.2 Janus - (c) 1996-2005 VideoLAN [00000000] main root debug: libvlc was configured with ./configure --enable-release --enable-sout --enable-httpd --enable-livedotcom --enable-dvbpsi --enable-v4l --enable-pvr --enable-ogg --enable-mod --enable-mad --enable-ffmpeg --enable-faad --enable-twolame --enable-a52 --enable-flac --enable-libmpeg2 --enable-vorbis --enable-speex --enable-theora --enable-png --enable-x264 --disable-x11 --disable-xvideo --disable-glx --disable-opengl --disable-sdl --enable-freetype --enable-fribidi --enable-libxml2 --enable-aa --enable-portaudio --disable-wxwindows --with-livedotcom-tree=/home/makenai/install/vlc/libs/ex/live/ --with-dvbpsi-tree=/home/makenai/install/vlc/libs/ex/libdvbpsi-20041028/ --with-mad-tree=/home/makenai/install/vlc/libs/ex/libmad-0.15.1b/ --with-ffmpeg-mp3lame --with-ffmpeg-faac --with-ffmpeg-zlib --with-ffmpeg-tree=/home/makenai/install/vlc/libs/ex/ffmpeg-20041113/ --with-faad-tree=/home/makenai/install/vlc/libs/ex/faad2-20040923/ --with-twolame-tree=/home/makenai/install/vlc/libs/twolame-0.3.3/ --with-a52-tree=/home/makenai/install/vlc/libs/ex/a52dec-0.7.4/ --with-libmpeg2-tree=/home/makenai/install/vlc/libs/ex/mpeg2dec-0.4.0/ --with-x264-tree=/home/makenai/install/vlc/libs/ex/x264-20041029/ [00000001] main vlc debug: translation test: code is "C" [00000001] main vlc debug: opening config file /home/makenai/.vlc/vlcrc [00000001] main vlc warning: config file /home/makenai/.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 /home/makenai/.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 197 modules [00000001] main vlc debug: opening config file /home/makenai/.vlc/vlcrc [00000001] main vlc warning: config file /home/makenai/.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: 3 candidates [00000010] main module debug: using memcpy module "memcpymmxext" [00000257] main playlist debug: waiting for thread completion [00000257] main playlist debug: thread 3078081456 (playlist) created at priority 0 (src/playlist/playlist.c:152) [00000258] main private debug: waiting for thread completion [00000258] main private debug: thread 3069688752 (preparser) created at priority 0 (src/playlist/playlist.c:174) [00000259] main interface debug: looking for interface module: 1 candidate [00000136] main module debug: using interface module "hotkeys" [00000259] main interface debug: interface initialized [00000259] main interface debug: thread 3061275568 (interface) created at priority 0 (src/interface/interface.c:211) [00000257] main playlist debug: adding playlist item `pvr:/dev/video0:norm=ntsc:size=720x576:frequency=97250:bitrate=3000000:maxbitrate=4000000' ( pvr:/dev/video0:norm=ntsc:size=720x576:frequency=97250:bitrate=3000000:maxbitrate=4000000 ) [00000261] main interface debug: looking for interface module: 2 candidates [00000261] skins2 interface error: Cannot open display [00000261] skins2 interface error: Cannot initialize OSFactory [00000134] main module debug: using interface module "rc" [00000261] main interface debug: interface initialized [00000261] main interface debug: thread 3050740656 (manager) created at priority 0 (src/interface/interface.c:196) [00000257] main playlist debug: creating new input thread [00000265] main input debug: waiting for thread completion [00000266] main stream output debug: stream=`transcode' [00000267] main private debug: looking for sout stream module: 1 candidate [00000266] main stream output debug: stream=`std' [00000270] main private debug: looking for sout stream module: 1 candidate [00000270] main private debug: set sout option: sout-standard-access to mmsh [00000270] main private debug: set sout option: sout-standard-mux to asfh [00000270] main private debug: set sout option: sout-standard-url to :8080 [00000270] stream_out_standard private debug: creating `mmsh/asfh://:8080' [00000270] stream_out_standard private debug: using `mmsh/asfh://:8080' [00000272] main private debug: looking for sout access module: 1 candidate [00000272] main private: creating httpd [00000275] main private debug: thread 3033885616 (httpd host thread) created at priority 0 (src/misc/httpd.c:1163) [00000056] main module debug: using sout access module "access_output_http" [00000270] stream_out_standard private debug: access opened [00000276] main private debug: looking for sout mux module: 1 candidate [00000276] mux_asf private debug: Asf muxer opened [00000265] main input debug: thread 3042347952 (input) created at priority 0 (src/input/input.c:230) [00000276] mux_asf private debug: creating asf stream to be used with mmsh [00000276] mux_asf private debug: Packet size 4096 [00000276] mux_asf private debug: meta data: title='' author='' copyright='' comment='' rating='' [00000202] main module debug: using sout mux module "mux_asf" [00000266] main stream output debug: muxer support adding stream at any time [00000266] main stream output debug: muxer prefers waiting for all ES before starting muxing [00000270] stream_out_standard private debug: mux opened [00000216] main module debug: using sout stream module "stream_out_standard" [00000267] main private debug: set sout option: sout-transcode-vcodec to DIV3 [00000267] main private debug: set sout option: sout-transcode-vb to 600 [00000267] main private debug: set sout option: sout-transcode-width to 352 [00000267] main private debug: set sout option: sout-transcode-height to 288 [00000267] main private debug: set sout option: sout-transcode-acodec to mp3 [00000267] main private debug: set sout option: sout-transcode-ab to 96 [00000267] main private debug: set sout option: sout-transcode-deinterlace to (null) [00000267] stream_out_transcode private debug: codec audio=mp3 0Hz 0 channels 96Kb/s [00000267] stream_out_transcode private debug: codec video=DIV3 352x288 scaling: 1.000000 600kb/s [00000223] main module debug: using sout stream module "stream_out_transcode" [00000265] main input debug: `pvr:/dev/video0:norm=ntsc:size=720x576:frequency=97250:bitrate=3000000:maxbitrate=4000000' gives access `pvr' demux `' path `/dev/video0:norm=ntsc:size=720x576:frequency=97250:bitrate=3000000:maxbitrate=4000000' [00000265] main input debug: creating demux: access='pvr' demux='' path='/dev/video0:norm=ntsc:size=720x576:frequency=97250:bitrate=3000000:maxbitrate=4000000' [00000278] main demuxer debug: looking for access_demux module: 0 candidates [00000278] main demuxer warning: no access_demux module matched "pvr" [00000265] main input debug: creating access 'pvr' path='/dev/video0:norm=ntsc:size=720x576:frequency=97250:bitrate=3000000:maxbitrate=4000000' [00000279] main access debug: looking for access2 module: 5 candidates [00000279] pvr access debug: using video device: /dev/video0 [00000279] pvr access debug: video standard set to:3000 [00000279] pvr access debug: picture size set to:720x576 [00000279] pvr access debug: Tuner frequency set to:97250 [00000279] pvr access debug: Setting codec parameters to: framerate: 0, bitrate: 3000000/4000000/0 [00000045] main module debug: using access2 module "pvr" [00000281] main private debug: pre buffering [00000281] main private debug: received first data for our buffer [00000281] main private debug: prebuffering done 145344 bytes in 0s - 146 kbytes/s [00000265] main input debug: creating demux: access='pvr' demux='' path='/dev/video0:norm=ntsc:size=720x576:frequency=97250:bitrate=3000000:maxbitrate=4000000' [00000282] main demuxer debug: looking for demux2 module: 40 candidates [00000146] main module debug: using demux2 module "ps" [00000265] main input debug: starting in synch mode [00000279] pvr access warning: unimplemented query in control [00000265] main input debug: `pvr:/dev/video0:norm=ntsc:size=720x576:frequency=97250:bitrate=3000000:maxbitrate=4000000' successfully opened [00000265] main input debug: selecting program id=0 [00000313] main packetizer debug: looking for packetizer module: 16 candidates [00000207] main module debug: using packetizer module "packetizer_mpegvideo" [00000313] main packetizer debug: thread 3006516144 (decoder) created at priority 0 (src/input/decoder.c:159) [00000331] main packetizer debug: looking for packetizer module: 16 candidates [00000105] main module debug: using packetizer module "mpeg_audio" [00000331] main packetizer debug: thread 2998057904 (decoder) created at priority 0 (src/input/decoder.c:159) [00000313] packetizer_mpegvideo packetizer debug: Size 720x576 fps=29.970 [00000331] mpeg_audio packetizer debug: MPGA channels:2 samplerate:48000 bitrate:384 [00000266] main stream output debug: adding a new input [00000267] stream_out_transcode private debug: creating audio transcoding from fcc=`mpga' to fcc=`mp3 ' [00000337] main decoder debug: looking for decoder module: 22 candidates [00000337] main decoder warning: cannot load module `/usr/local/lib/vlc/codec/liblibmpeg2_plugin.so' (libmpeg2.so.0: cannot open shared object file: No such file or directory) [00000104] main module debug: using decoder module "mpeg_audio" [00000338] main encoder debug: looking for encoder module: 9 candidates [00000338] ffmpeg encoder debug: libavcodec initialized (interface 4731 ) [00000338] ffmpeg encoder debug: found encoder MPEG Audio layer 1/2/3 [00000021] main module debug: using encoder module "ffmpeg" [00000341] main private debug: looking for audio filter2 module: 7 candidates [00000341] mpgatofixed32 private debug: mpga->fl32, bits per sample: 0 [00000018] main module debug: using audio filter2 module "mpgatofixed32" [00000342] main private debug: looking for audio filter2 module: 7 candidates [00000342] main private warning: cannot load module `/usr/local/lib/vlc/audio_filter/liba52tofloat32_plugin.so' (liba52-0.7.4.so: cannot open shared object file: No such file or directory) [00000342] audio_format private debug: fl32->s16l, bits per sample: 32 [00000081] main module debug: using audio filter2 module "audio_format" [00000276] main private debug: adding a new input [00000276] mux_asf private debug: adding input [00000276] mux_asf private debug: adding mp3 header [00000266] main stream output debug: adding a new input [00000267] stream_out_transcode private debug: creating video transcoding from fcc=`mpgv' to fcc=`DIV3' [00000350] main decoder debug: looking for decoder module: 22 candidates [00000030] main module debug: using decoder module "libmpeg2" [00000351] main encoder debug: looking for encoder module: 9 candidates [00000351] ffmpeg encoder debug: libavcodec already initialized [00000351] ffmpeg encoder debug: found encoder MS MPEG-4 Video v3 [00000021] main module debug: using encoder module "ffmpeg" [00000021] main module debug: unlocking module "ffmpeg" [00000266] main stream output warning: trying to send non-dated packet to stream output! [00000337] mpeg_audio decoder debug: MPGA channels:2 samplerate:48000 bitrate:384 [00000276] main private warning: late buffer for mux input (133876) [00000276] main private warning: late buffer for mux input (251191) [00000276] main private warning: late buffer for mux input (226968) [00000350] libmpeg2 decoder debug: 720x576, aspect 576000, 29.971 fps [00000352] main private warning: dts != current_pts (56619) [00000276] main private warning: late buffer for mux input (240408) [00000276] main private warning: late buffer for mux input (218280) [00000352] main private warning: vout synchro warning: pts != current_date (-40545) [00000351] main encoder debug: looking for encoder module: 9 candidates [00000351] ffmpeg encoder debug: libavcodec already initialized [00000351] ffmpeg encoder debug: found encoder MS MPEG-4 Video v3 [00000021] main module debug: using encoder module "ffmpeg" [00000276] main private debug: adding a new input [00000276] mux_asf private debug: adding input [00000353] main private debug: looking for video filter2 module: 4 candidates [00000356] deinterlace private debug: using blend deinterlace mode [00000356] deinterlace private debug: using blend deinterlace method [00000353] deinterlace private debug: deinterlacing [00000234] main module debug: using video filter2 module "deinterlace" [00000357] main private debug: looking for video filter2 module: 3 candidates [00000357] ffmpeg private debug: input: 720x576 I420 -> 352x288 I420 [00000357] ffmpeg private debug: libavcodec already initialized [00000023] main module debug: using video filter2 module "ffmpeg" [00000352] main private warning: vout synchro warning: pts != current_date (-40967) [00000352] main private warning: backward_pts != dts (9911) [00000276] main private warning: late buffer for mux input (345335) [00000276] main private warning: late buffer for mux input (323190) [00000352] main private warning: vout synchro warning: pts != current_date (-13101) [00000276] main private warning: late buffer for mux input (328720) [00000352] main private warning: vout synchro warning: pts != current_date (-42323) [00000352] main private warning: vout synchro warning: pts != current_date (-10656) [00000276] main private warning: late buffer for mux input (365256) [00000276] main private warning: late buffer for mux input (337259) [00000352] main private warning: vout synchro warning: pts != current_date (-42123) [00000352] main private warning: vout synchro warning: pts != current_date (-11679) [00000352] main private warning: vout synchro warning: pts != current_date (-42012) [00000276] main private warning: late buffer for mux input (492893) [00000276] main private warning: late buffer for mux input (470754) [00000276] main private warning: late buffer for mux input (443336) [00000276] main private warning: late buffer for mux input (421188) [00000352] main private warning: backward_pts != dts (9144) [00000352] main private warning: vout synchro warning: pts != current_date (-13245) [00000276] main private warning: late buffer for mux input (531878)
And then it just keeps going with the late and synchro warnings forever. When I load the mmsh stream in a local VLC, I get the snow, plus a little bar of video at the bottom - though not live video - it's about 2 seconds that plays a couple frames then goes back. At least it gets past the buffering part, though I'm still seeing 0fps in the output I guess.

Anyhow, thanks for the tip. I will certainly try to tweak the settings some more on a local output device without sout first. I'm also open to other suggestions if anyone can find a clue in either of the two outputs.

Thanks!

Makenai
New Cone
New Cone
Posts: 7
Joined: 30 Jul 2005 12:15

Postby Makenai » 30 Jul 2005 23:23

By the way, should I be worried about the warnings like this?:

[00000342] main decoder warning: cannot load module `/usr/local/lib/vlc/codec/liblibmpeg2_plugin.so' (libmpeg2.so.0: cannot open shared object file: No such file or directory)
...
[00000347] main private warning: cannot load module `/usr/local/lib/vlc/audio_filter/liba52tofloat32_plugin.so' (liba52-0.7.4.so: cannot open shared object file: No such file or directory)

They seem to still come up when I stream a regular mpeg file and seem to be harmless, I can stream the file over the network just fine. I don't want to spam the forums any more than I already have, so the output of playing a regular mpeg file successfully over the stream is located here: http://maetel.makenai.net/out3.txt. Thanks again!

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 30 Jul 2005 23:50

Well these are errors from 2 decoder plugins of VLC. Basically you are unable to decode mpeg video and a52 (dolby) audio. But since you are streaming it, you don't decode, so it won't matter.
Don't use PMs for support questions.

Makenai
New Cone
New Cone
Posts: 7
Joined: 30 Jul 2005 12:15

Postby Makenai » 31 Jul 2005 02:11

Well these are errors from 2 decoder plugins of VLC. Basically you are unable to decode mpeg video and a52 (dolby) audio. But since you are streaming it, you don't decode, so it won't matter.
I know I'm getting a little bit off of my own topic now but.. I've recompiled both libmpeg2 and a52 with --enable-shared. In the case of mpeg2, I'm no longer getting the error - however in the case of a52:

[00000323] main private warning: cannot load module `/usr/local/lib/vlc/audio_filter/liba52tofloat32_plugin.so' (liba52-0.7.4.so: cannot open shared object file: No such file or directory)

Why is it looking for liba52-0.7.4.so anyway? Shouldn't it just be liba52.so?

<EDIT> Making the link manuall fixed the error message. (sudo ln -s liba52.so.0.0.0 liba52-0.7.4.so liba52-0.7.4.so.0). I still wish I knew why it was looking for the one with the version in it.</EDIT>

Also, I am getting a skins2 error even though I am compiling with skins2 support specifically disabled:

[00000262] skins2 interface error: Cannot open display
[00000262] skins2 interface error: Cannot initialize OSFactory

Finally, I updated mpeg2 and libdvbpsi to the newest versions (were a little outdated last time). I am now trying to play directory to aalib with the same problem - an infinite delay at 'pre buffering'. Please feel free to thwack me hard in the head with a cluestick if you have one available for any of the issues above.

Thanks again! :)
Last edited by Makenai on 31 Jul 2005 03:19, edited 2 times in total.

Makenai
New Cone
New Cone
Posts: 7
Joined: 30 Jul 2005 12:15

Postby Makenai » 31 Jul 2005 02:13

Oops - I also meant to ask.. since I am transcoding the video on the fly prior to streaming, rather than streaming the input directly, don't I need to be able to decode?

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 31 Jul 2005 11:23

well to transcode a video you first need to decode it. Else you won't have anything to encode ... which might be a problem.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Makenai
New Cone
New Cone
Posts: 7
Joined: 30 Jul 2005 12:15

Postby Makenai » 31 Jul 2005 11:31

well to transcode a video you first need to decode it. Else you won't have anything to encode ... which might be a problem.
Ok. I thought so - was just making sure as I might have misunderstood. At any rate - I've fixed those .so errors now, but still can't seem to play things from /dev/video0 yet. The only other suspicious looking thing I see now is this:

[00000283] main demuxer warning: no access_demux module matched "pvr"

Is this something that could be causing a problem? I think I've seen it in other peoples' dumps before who could stream video but were having other problems (with a 3 second delay or something), so I'm not sure.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 31 Jul 2005 11:32

it looks like you might need to compile VLC yourself with the pvr module (i don't know if its compiled in the default builds).
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

Makenai
New Cone
New Cone
Posts: 7
Joined: 30 Jul 2005 12:15

Problem solved!

Postby Makenai » 31 Jul 2005 12:12

it looks like you might need to compile VLC yourself with the pvr module (i don't know if its compiled in the default builds).
I was compiling stuff for most of the day yesterday after I decided I couldn't rely on the default builds. I did make sure to include --enable-pvr.

To sort of answer my own question - it looks like that message isn't important as I am now able to stream from the PVR just fine.

As some nice guys on the #videolan irc channel pointed out to me, I was trying to access the wrong resolution to NTSC (copied line from the howto and forgot to adjust the resolution to NTSC).

This line buffers forever:

Code: Select all

vlc -vvv --color pvr:/dev/video0:norm=ntsc:size=720x576:frequency=91250:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout '#transcode{vcodec=DIV3,vb=600,width=352,height=288,acodec=mp3,ab=96,deinterlace}:std{access=mmsh,mux=asfh,url=:8080}'
..this line works fine:

Code: Select all

vlc -vvv --color pvr:/dev/video0:norm=ntsc:size=720x480:frequency=91250:bitrate=3000000:maxbitrate=4000000 --cr-average 1000 --sout '#transcode{vcodec=DIV3,vb=600,width=352,height=288,acodec=mp3,ab=96,deinterlace}:std{access=mmsh,mux=asfh,url=:8080}'
Thanks E-bola and Trax - also everyone here who helped!

If you are not getting past 'pre buffering', you might be setting the wrong resolutions!


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests