[vlc] trying to read from a pipe
Jerry Scharf
scharf at vix.com
Wed Sep 10 17:30:53 CEST 2003
In my last post, I said I would try reading from a pipe as an alternative
to a new access module to handle the pcHDTV card.
. Something didn't work here either. If it matters, I'm on RH8.0 with
errata. Any suggestions on how to get this to work. I didn't see any
options I could add to make things happier.
I have a program called getatsc which sends the mpeg2 ts to stdout. I run
the that into tee to get a file copy and then on to the fifo. After a while
I kill the program to close the file. Then I read the file into vlc and the
video work fine (not worried about audio yet): (look for DEBUG2 to see next
run.)
DEBUG1
$ vlc -vvv /tmp/kqed2.ts
VideoLAN Client 0.6.2 Trevelyan
[00000000] main root debug: VLC media player - version 0.6.2 Trevelyan -
(c) 1996-2003 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --enable-release
--enable-dvdread --enable-dvdplay --enable-dvbpsi --enable-v4l --enable-vcd
--enable-mad --enable-ffmpeg --with-ffmpeg=/usr --enable-faad --enable-xvid
--enable-dv --enable-flac --enable-theora --enable-x11 --enable-xvideo
--disable-qte --disable-directx --enable-fb --enable-aa --without-wingdi
--enable-oss --enable-esd --enable-arts --enable-alsa --disable-waveout
--enable-gtk --disable-familiar --enable-gnome --enable-qt --enable-kde
--disable-opie --disable-macosx --disable-qnx --disable-intfwin
--enable-ncurses --enable-xosd --enable-lirc --enable-pth --disable-st
--enable-mozilla --disable-testsuite --enable-plugins
[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: opening config file /home/scharf/.vlc/vlcrc
[00000000] main root debug: checking builtin modules
[00000000] main root debug: checking plugin modules
[00000000] main root debug: recursively browsing `modules'
[00000000] main root debug: recursively browsing `/usr/lib/vlc'
[00000000] main root warning: cannot open
`/usr/lib/vlc/gui/libkde_plugin.so' (/usr/lib/vlc/gui/libkde_plugin.so:
undefined symbol: _ZN11QMainWindow4hideEv)
[00000000] main root warning: cannot open
`/usr/lib/vlc/gui/libqt_plugin.so' (/usr/lib/vlc/gui/libqt_plugin.so:
undefined symbol: static_QUType_int)
[00000000] main root debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 155 modules
[00000001] main vlc debug: opening config file /home/scharf/.vlc/vlcrc
[00000001] main vlc debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT
SSE FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 4 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000174] main playlist debug: waiting for thread completion
[00000174] main playlist debug: thread 16386 (playlist) created at priority
0 (src/playlist/playlist.c:80)
[00000174] main playlist debug: adding playlist item « /tmp/kqed2.ts » (
/tmp/kqed2.ts )
[00000174] main playlist debug: creating new input thread
[00000175] main input: playlist item `/tmp/kqed2.ts'
[00000175] main input debug: waiting for thread completion
[00000175] main input debug: thread 32771 (input) created at priority 0
(src/input/input.c:180)
[00000175] main input debug: playing at normal rate
[00000176] main interface debug: looking for interface module
[00000176] main interface debug: probing 6 candidates
[00000116] main module debug: using interface module "wxwindows"
[00000176] main interface debug: interface initialized
[00000175] main input debug: access `', demux `', name `/tmp/kqed2.ts'
[00000175] main input debug: looking for access module
[00000175] main input debug: probing 8 candidates
[00000175] dvdplay input debug: plugin discarded (not a valid source)
[00000175] dvdread input warning: dvdread module discarded (not a valid
source)
[00000175] dvd input warning: dvd module discarded (not a valid block
device)
[00000175] vcd input debug: trying .cue file: /tmp/kqed2.cue
[00000175] vcd input warning: could not open /tmp/kqed2.ts
[00000175] cdda input debug: trying .cue file: /tmp/kqed2.cue
[00000175] cdda input warning: could not open /tmp/kqed2.ts
[00000175] access_file input debug: opening file `/tmp/kqed2.ts'
[00000016] main module debug: using access module "access_file"
[00000175] main input debug: looking for demux module
[00000175] main input debug: probing 19 candidates
[00000175] mp4 input warning: MP4 plugin discarded (not a valid file)
[00000175] avi input warning: avi module discarded (invalid header)
[00000175] v4l input warning: v4l plugin discarded (not a valid stream)
[00000175] v4l input warning: v4l plugin discarded (not a valid stream)
[00000175] asf input warning: ASF v1.0 plugin discarded (not a valid file)
[00000175] main input debug: looking for mpeg-system module
[00000175] main input debug: probing 1 candidate
[00000096] main module debug: using mpeg-system module "mpeg_system"
[00000106] main module debug: using demux module "ts_dvbpsi"
[00000175] mpeg_system input warning: first packet for PID 0 received by TS
demux
libdvbpsi error (PSI decoder): TS discontinuity (received 2, expected 0)
[00000175] mpeg_system input warning: duplicate packet received for PID 16
(counter 15)
[00000175] mpeg_system input warning: first packet for PID 32 received by
TS demux
libdvbpsi error (PSI decoder): TS discontinuity (received 11, expected 0)
[00000175] ts_dvbpsi input debug: Processing PMT for program 2 version 23
[00000175] main input debug: ES 20 has unknown type
[00000175] main input debug: selecting ES 21
[00000175] main input debug: selecting ES 0x21
[00000177] main decoder debug: looking for decoder module
[00000177] main decoder debug: probing 17 candidates
[00000078] main module debug: using decoder module "libmpeg2"
[00000176] main interface debug: thread 49156 (manager) created at priority
0 (src/interface/interface.c:118)
[00000177] main decoder debug: thread 65541 (decoder) created at priority 0
(src/input/input_dec.c:112)
[00000175] main input debug: selecting ES 24
[00000175] main input debug: selecting ES 0x24
[00000178] main decoder debug: looking for decoder module
[00000178] main decoder debug: probing 17 candidates
[00000071] main module debug: using decoder module "a52"
[00000178] main decoder debug: thread 81926 (decoder) created at priority 0
(src/input/input_dec.c:112)
[00000175] mpeg_system input warning: first packet for PID 36 received by
TS demux
[00000175] mpeg_system input warning: first packet for PID 48 received by
TS demux
libdvbpsi error (PSI decoder): TS discontinuity (received 3, expected 0)
[00000175] ts_dvbpsi input debug: Processing PMT for program 3 version 13
[00000175] mpeg_system input warning: first packet for PID 49 received by
TS demux
[00000175] ts_dvbpsi input debug: Processing PMT for program 1 version 13
[00000175] mpeg_system input warning: first packet for PID 17 received by
TS demux
[00000175] mpeg_system input warning: first packet for PID 64 received by
TS demux
libdvbpsi error (PSI decoder): TS discontinuity (received 13, expected 0)
[00000175] ts_dvbpsi input debug: Processing PMT for program 4 version 19
[00000175] mpeg_system input warning: first packet for PID 65 received by
TS demux
[00000175] mpeg_system input warning: first packet for PID 80 received by
TS demux
libdvbpsi error (PSI decoder): TS discontinuity (received 9, expected 0)
[00000175] ts_dvbpsi input debug: Processing PMT for program 5 version 6
[00000175] mpeg_system input warning: first packet for PID 81 received by
TS demux
[00000178] main decoder debug: no aout present, spawning one
[00000179] main audio output debug: looking for audio output module
[00000179] main audio output debug: probing 7 candidates
ALSA lib pcm.c:1787:(snd_pcm_open_conf) Invalid type for PCM
iec958:AES0=0x2,AES1=0x82,AES2=0x0,AES3=0x2 definition (id: iec958, value:
cards.pcm.iec958)
[00000179] main audio output debug: thread 98311 (aout) created at priority
0 (oss.c:517)
[00000069] main module debug: using audio output module "oss"
[00000179] main audio output debug: output 's16l' 48000 Hz Stereo frame=1
samples/4 bytes
[00000179] main audio output debug: mixer 's16l' 48000 Hz Stereo frame=1
samples/4 bytes
[00000179] main audio output debug: filter(s) 'fl32'->'s16l' 48000
Hz->48000 Hz
Stereo->Stereo
[00000180] main private debug: looking for audio filter module
[00000180] main private debug: probing 21 candidates
[00000046] main module debug: using audio filter module "float32tos16"
[00000179] main audio output debug: found a filter for the whole conversion
[00000179] main audio output debug: looking for audio mixer module
[00000179] main audio output debug: probing 3 candidates
[00000063] main module debug: using audio mixer module "trivial_mixer"
[00000179] main audio output debug: input 'a52 ' 48000 Hz Stereo frame=1536
samples/1536 bytes
[00000179] main audio output debug: filter(s) 'a52 '->'fl32' 48000
Hz->48000 Hz
Stereo->Stereo
[00000181] main private debug: looking for audio filter module
[00000181] main private debug: probing 21 candidates
No accelerated IMDCT transform found
[00000040] main module debug: using audio filter module "a52tofloat32"
[00000179] main audio output debug: found a filter for the whole conversion
[00000179] main audio output debug: filter(s) 'fl32'->'fl32' 52800
Hz->48000 Hz
Stereo->Stereo
[00000182] main private debug: looking for audio filter module
[00000182] main private debug: probing 21 candidates
[00000039] main module debug: using audio filter module
"bandlimited_resampler"
[00000179] main audio output debug: found a filter for the whole conversion
[00000177] main decoder debug: no usable vout present, spawning one
[00000183] main video output debug: looking for video output module
[00000183] main video output debug: probing 7 candidates
[00000183] xvideo video output debug: adaptor 0, port 77, format 0x32315659
(YV12) planar
[00000183] xvideo video output debug: Window manager supports NetWM
[00000183] xvideo video output debug: Window manager supports
_NET_WM_STATE_FULLSCREEN
[00000172] main module debug: using video output module "xvideo"
[00000183] main video output debug: looking for text renderer module
[00000183] main video output debug: probing 3 candidates
[00000183] freetype video output error: user didn't specify a font
[00000125] main module debug: using text renderer module "dummy"
[00000183] main video output debug: waiting for thread completion
[00000183] main video output debug: got 8 direct buffer(s)
[00000183] main video output debug: picture in 704x480, chroma 0x32315659
(YV12), aspect ratio 4:3
[00000183] main video output debug: picture out 704x480, chroma 0x32315659
(YV12), aspect ratio 4:3
[00000183] main video output debug: direct render, mapping render pictures
0-6 to system pictures 1-7
[00000183] main video output debug: thread 114696 (video output) created at
priority 0 (src/video_output/video_output.c:453)
[00000177] libmpeg2 decoder debug: 704x480, aspect 576000, 29.971 fps
[00000183] main video output warning: late picture skipped
(1063206383333752)
[00000184] main private warning: vout synchro warning: pts != current_date
(-375368)
[00000184] main private debug: stream periodicity changed from B[1] to B[2]
[00000184] main private debug: stream periodicity changed from P[5] to P[4]
[00000184] main private debug: decoded 103/105 pictures
[00000175] main input: EOF reached
[00000175] main input debug: 469 loops consuming user: 0, system: 0
[00000175] main input debug: dumping stream ID 0x0 [OK:0/D:82065]
[00000175] main input debug: seekable stream, position: 17620992/17620992
(-:--:--/-:--:--)
[00000175] main input debug: dumping program 0x1, version 0 (partial)
[00000175] main input debug: ES 0x10, stream 0x13, fourcc `pmt ', not
selected [OK:68/ERR:0]
[00000175] main input debug: ES 0x11, stream 0x0, fourcc `mpgv', not
selected [OK:5380/ERR:0]
[00000175] main input debug: ES 0x14, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: dumping program 0x2, version 0 (partial)
[00000175] main input debug: ES 0x20, stream 0x13, fourcc `pmt ', not
selected [OK:68/ERR:0]
[00000175] main input debug: ES 0x21, stream 0x0, fourcc `mpgv', selected
[OK:9452/ERR:0]
[00000175] main input debug: ES 0x24, stream 0xbd, fourcc `a52 ', selected
[OK:1928/ERR:0]
[00000175] main input debug: ES 0x25, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: ES 0x26, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: dumping program 0x3, version 0 (partial)
[00000175] main input debug: ES 0x30, stream 0x13, fourcc `pmt ', not
selected [OK:68/ERR:0]
[00000175] main input debug: ES 0x31, stream 0x0, fourcc `mpgv', not
selected [OK:14904/ERR:0]
[00000175] main input debug: ES 0x34, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: ES 0x35, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: ES 0x36, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: dumping program 0x4, version 0 (partial)
[00000175] main input debug: ES 0x40, stream 0x13, fourcc `pmt ', not
selected [OK:34/ERR:0]
[00000175] main input debug: ES 0x41, stream 0x0, fourcc `mpgv', not
selected [OK:9169/ERR:0]
[00000175] main input debug: ES 0x44, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: ES 0x45, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: ES 0x46, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: dumping program 0x5, version 0 (partial)
[00000175] main input debug: ES 0x50, stream 0x0, fourcc `pmt ', not
selected [OK:33/ERR:0]
[00000175] main input debug: ES 0x51, stream 0x0, fourcc `mpgv', not
selected [OK:16144/ERR:0]
[00000175] main input debug: ES 0x54, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: ES 0x55, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: ES 0x56, stream 0xbd, fourcc `a52 ', not
selected [OK:0/ERR:0]
[00000175] main input debug: unselecting ES 0x21
[00000177] main decoder debug: thread 65541 joined
(src/input/input_dec.c:151)
[00000177] main decoder debug: killing decoder for 0x21, fourcc `mpgv', 14
PES in FIFO
[00000078] main module debug: unlocking module "libmpeg2"
[00000175] main input debug: unselecting ES 0x24
[00000040] main module debug: unlocking module "a52tofloat32"
[00000039] main module debug: unlocking module "bandlimited_resampler"
[00000179] main audio output debug: thread 98311 joined (oss.c:544)
[00000069] main module debug: unlocking module "oss"
[00000046] main module debug: unlocking module "float32tos16"
[00000063] main module debug: unlocking module "trivial_mixer"
[00000178] main decoder debug: thread 81926 joined
(src/input/input_dec.c:151)
[00000178] main decoder debug: killing decoder for 0x24, fourcc `a52 ', 0
PES in FIFO
[00000071] main module debug: unlocking module "a52"
[00000175] main input debug: no more selected ES
[00000096] main module debug: unlocking module "mpeg_system"
[00000106] main module debug: unlocking module "ts_dvbpsi"
[00000175] access_file input: closing `/:///tmp/kqed2.ts'
[00000016] main module debug: unlocking module "access_file"
[00000175] main input debug: pes: 26 packets
[00000175] main input debug: data: 1000 packets
[00000175] main input debug: buffers: 30 packets
[00000175] main input debug: freeing info structures...
[00000125] main module debug: unlocking module "dummy"
[00000172] main module debug: unlocking module "xvideo"
[00000183] main video output debug: thread 114696 joined
(src/video_output/video_output.c:478)
[00000175] main input debug: thread 32771 joined (src/input/input.c:214)
[00000001] main vlc debug: removing all interfaces
[00000176] main interface debug: thread 49156 joined
(src/interface/interface.c:158)
[00000116] main module debug: unlocking module "wxwindows"
[00000001] main vlc debug: removing all playlists
[00000174] main playlist debug: thread 16386 joined
(src/playlist/playlist.c:102)
[00000001] main vlc debug: removing all video outputs
[00000001] main vlc debug: removing all audio outputs
[00000010] main module debug: unlocking module "memcpymmxext"
$
This is what happens when I tell vlc to read from the fifo:
DEBUG2
$ vlc -vvv /tmp/fifos/dtv
VideoLAN Client 0.6.2 Trevelyan
[00000000] main root debug: VLC media player - version 0.6.2 Trevelyan -
(c) 1996-2003 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu
--target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/share/info --enable-release
--enable-dvdread --enable-dvdplay --enable-dvbpsi --enable-v4l --enable-vcd
--enable-mad --enable-ffmpeg --with-ffmpeg=/usr --enable-faad --enable-xvid
--enable-dv --enable-flac --enable-theora --enable-x11 --enable-xvideo
--disable-qte --disable-directx --enable-fb --enable-aa --without-wingdi
--enable-oss --enable-esd --enable-arts --enable-alsa --disable-waveout
--enable-gtk --disable-familiar --enable-gnome --enable-qt --enable-kde
--disable-opie --disable-macosx --disable-qnx --disable-intfwin
--enable-ncurses --enable-xosd --enable-lirc --enable-pth --disable-st
--enable-mozilla --disable-testsuite --enable-plugins
[00000001] main vlc debug: translation test: code is "C"
[00000001] main vlc debug: opening config file /home/scharf/.vlc/vlcrc
[00000000] main root debug: checking builtin modules
[00000000] main root debug: checking plugin modules
[00000000] main root debug: recursively browsing `modules'
[00000000] main root debug: recursively browsing `/usr/lib/vlc'
[00000000] main root warning: cannot open
`/usr/lib/vlc/gui/libkde_plugin.so' (/usr/lib/vlc/gui/libkde_plugin.so:
undefined symbol: _ZN11QMainWindow4hideEv)
[00000000] main root warning: cannot open
`/usr/lib/vlc/gui/libqt_plugin.so' (/usr/lib/vlc/gui/libqt_plugin.so:
undefined symbol: static_QUType_int)
[00000000] main root debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 155 modules
[00000001] main vlc debug: opening config file /home/scharf/.vlc/vlcrc
[00000001] main vlc debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT
SSE FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 4 candidates
[00000010] main module debug: using memcpy module "memcpymmxext"
[00000174] main playlist debug: waiting for thread completion
[00000174] main playlist debug: thread 16386 (playlist) created at priority
0 (src/playlist/playlist.c:80)
[00000174] main playlist debug: adding playlist item « /tmp/fifos/dtv » (
/tmp/fifos/dtv )
[00000174] main playlist debug: creating new input thread
[00000175] main input: playlist item `/tmp/fifos/dtv'
[00000175] main input debug: waiting for thread completion
[00000175] main input debug: thread 32771 (input) created at priority 0
(src/input/input.c:180)
[00000175] main input debug: playing at normal rate
[00000176] main interface debug: looking for interface module
[00000176] main interface debug: probing 6 candidates
[00000116] main module debug: using interface module "wxwindows"
[00000176] main interface debug: interface initialized
[00000175] main input debug: access `', demux `', name `/tmp/fifos/dtv'
[00000175] main input debug: looking for access module
[00000175] main input debug: probing 8 candidates
[00000175] dvdplay input debug: plugin discarded (not a valid source)
[00000175] dvdread input warning: dvdread module discarded (not a valid
source)
[00000175] dvd input warning: dvd module discarded (not a valid block
device)
[00000175] vcd input debug: trying .cue file: /tmp/fifos/dtv.cue
[00000175] vcd input warning: could not open /tmp/fifos/dtv
[00000175] cdda input debug: trying .cue file: /tmp/fifos/dtv.cue
[00000175] cdda input warning: could not open /tmp/fifos/dtv
[00000175] access_file input debug: opening file `/tmp/fifos/dtv'
[00000016] main module debug: using access module "access_file"
[00000176] main interface debug: thread 49156 (manager) created at priority
0 (src/interface/interface.c:118)
[00000175] main input debug: looking for demux module
[00000175] main input debug: probing 19 candidates
[00000175] mp4 input warning: MP4 plugin discarded (unseekable)
[00000175] avi input error: cannot peek()
[00000175] avi input warning: avi module discarded (invalid header)
[00000175] v4l input warning: v4l plugin discarded (not a valid stream)
[00000175] v4l input warning: v4l plugin discarded (not a valid stream)
[00000175] asf input warning: ASF v1.0 plugin discarded (not a valid file)
[00000175] main input debug: looking for mpeg-system module
[00000175] main input debug: probing 1 candidate
[00000096] main module debug: using mpeg-system module "mpeg_system"
[00000106] main module debug: using demux module "ts_dvbpsi"
[00000175] mpeg_system input warning: garbage at input (ff)
[00000175] mpeg_system input warning: garbage at input (51)
[00000175] mpeg_system input warning: garbage at input (50)
[00000175] mpeg_system input warning: garbage at input (c4)
[00000175] mpeg_system input warning: garbage at input (a4)
[00000175] mpeg_system input warning: garbage at input (ff)
[00000175] mpeg_system input warning: garbage at input (37)
[00000175] mpeg_system input warning: garbage at input (e8)
[00000175] mpeg_system input warning: garbage at input (11)
[00000175] mpeg_system input warning: garbage at input (ff)
[00000175] mpeg_system input warning: garbage at input (ff)
[00000175] mpeg_system input warning: transport_error_indicator set for PID
5775 counter 0
[00000175] mpeg_system input warning: garbage at input (9f)
[00000175] mpeg_system input warning: garbage at input (ff)
[00000175] mpeg_system input warning: garbage at input (23)
[00000175] mpeg_system input warning: garbage at input (ff)
[00000175] mpeg_system input warning: garbage at input (ff)
[00000175] mpeg_system input warning: garbage at input (cd)
[00000175] mpeg_system input warning: garbage at input (c1)
[00000175] mpeg_system input warning: transport_error_indicator set for PID
7675 counter 1
[00000175] mpeg_system input warning: garbage at input (c)
[00000175] mpeg_system input warning: garbage at input (c7)
[00000175] mpeg_system input warning: garbage at input (ff)
[00000175] mpeg_system input warning: garbage at input (ff)
[00000175] mpeg_system input warning: garbage at input (10)
and so on until I abort it.
It's the exact same data in both cases, so it seems to me a problem of
handling input from a fifo.
thanks,
jerry
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc
mailing list