[vlc] Re: cannot read from named pipe

Andreas Krings andreas.krings at rwth-aachen.de
Mon Mar 10 03:12:35 CET 2003


Hello

first much thanks for the fast answer!!




Laurent Aimar wrote:
> On Mon, Mar 10, 2003, Andreas Krings wrote:
> 
>>Helo,
>>is it possible to read a mpeg2 Stream from a named pipe??
> 
>  Yes.
> 
> 
>>if i try the folling commands for example:
>>
>>mkfifo /stream
>>cat /videofile.mpg &
>>vlc /stream
>>i get only the error message below, but when i type:
>>vlc /videofile.mpg
>>it works great!!:
> 
> 
>  In fact your file is an avi not a true mpeg file. I've just commited a
> fix to play avi with pipe, so it should now work.

oh, you are right. Sorry, that was my mistake by choosing the wrong file 
(that was a File in DV-Format) for playing into the stream. But i got 
the same problem with real MPEG2-PS Files (recorded with the kfir 
Board). The video plays for less than a second and then stops. That 
means you can only see the first frames. I tried many different files 
(PS and ES and all types of the kfir-Board) but with no success!! 
Furthermore my files did not have any audio. (but playing it with option 
--noaudio did not work, too). ;-(

So, what else can i do wrong by using the named pipe?? watching them 
without the pipe works great!!


> 
>>Does andybody know a solution or are some filetypes only viewable by vlc 
>>and not streamable through a named pipe to view them wiht vlc??
> 
>  Avi file is hard to read with pipe (sometime you won't get sound or fail).
> mp4 won't be playable at all, but mpeg files should play fine.



This sounds good! Hope there is a solution for me, too! ;-)

Much thanks for your help and attention!

greetings

Andreas Krings








the output of my vlc again:

VideoLAN Client 0.5.1 Natalya
[00000000] main root debug: VLC media player - version 0.5.1 Natalya - 
(c) 1996-2003 VideoLAN
[00000000] main root debug: libvlc was configured with ./configure 
--mandir=/share/man --infodir=/share/info --enable-release --prefix=/usr 
--enable-gnome --enable-gtk --enable-familiar --enable-fb --enable-ggi 
--enable-sdl --enable-esd --enable-qt --enable-mad --enable-arts 
--enable-alsa --enable-lirc --enable-a52 --enable-aa --enable-dvbpsi 
--enable-xosd --enable-mozilla --enable-kde --enable-mp4 --enable-dvb 
--enable-dv --enable-svgalib --enable-satellite --enable-ogg 
--enable-vorbis --disable-wxwindows --enable-slp --enable-ffmpeg 
--with-ffmpeg-tree=extras/ffmpeg --enable-faad 
--with-faad-tree=extras/faad --enable-glide --enable-dvd --without-dvdcss
[00000001] main vlc debug: translation test: code is "C"
[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 debug: recursively browsing `plugins'
[00000001] main vlc debug: module bank initialized, found 122 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 3DNow! 
MMXEXT FPU
[00000001] main vlc debug: looking for memcpy module
[00000001] main vlc debug: probing 4 candidates
[00000111] main module debug: using memcpy module "memcpymmxext"
[00000141] main playlist debug: waiting for thread completion
[00000141] main playlist debug: thread 1026 (playlist) created at 
priority 0 (src/playlist/playlist.c:79)
[00000141] main playlist debug: adding playlist item « /stream »
[00000142] main interface debug: looking for interface module
[00000142] main interface debug: probing 2 candidates
[00000142] main interface debug: looking for gtk_main module
[00000142] main interface debug: probing 1 candidate
[00000143] main private debug: waiting for thread completion

Gdk-WARNING **: locale not supported by C library

GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols 
specified are supported and host-based authentication failed.
[00000143] main private debug: thread 2051 (gtk_main) created at 
priority 0 (modules/misc/gtk_main.c:99)
[00000096] main module debug: using gtk_main module "gnome_main"
[00000097] main module debug: using interface module "gnome"
[00000142] main interface debug: interface initialized
[00000142] main interface debug: thread 3076 (manager) created at 
priority 0 (src/interface/interface.c:118)
[00000141] main playlist debug: creating new input thread
[00000144] main input: playlist item `/stream'
[00000144] main input debug: waiting for thread completion
[00000144] main input debug: thread 4101 (input) created at priority 0 
(src/input/input.c:157)
[00000144] main input debug: access `', demux `', name `/stream'
[00000144] main input debug: looking for access module
[00000144] main input debug: probing 8 candidates
[00000144] dvdplay input debug: plugin discarded (not a valid source)
[00000144] dvdplay input debug: plugin discarded (not a valid source)
[00000144] dvdread input warning: dvdread module discarded (not a valid 
source)
[00000144] dvdread input warning: dvdread module discarded (not a valid 
source)
[00000144] dvd input warning: dvd module discarded (not a valid block 
device)
[00000144] dvd input warning: dvd module discarded (not a valid block 
device)
[00000144] vcd input debug: using .cue file: /stream.cue
[00000144] vcd input warning: could not open /stream
[00000144] access_file input debug: opening file `/stream'
[00000026] main module debug: using access module "access_file"
[00000144] main input debug: looking for demux module
[00000144] main input debug: probing 12 candidates
[00000144] mp4 input warning: MP4 plugin discarded (unseekable)
[00000144] avi input warning: avi module discarded (invalid headr)
[00000144] asf input warning: ASF v1.0 plugin discarded (not a valid file)
[00000144] ts_dvbpsi input warning: TS module discarded (no sync)
[00000144] ts input warning: TS module discarded (no sync)
[00000144] a52sys input warning: a52 module discarded (no startcode)
[00000144] es input warning: ES module discarded (system startcode)
[00000144] wav input warning: WAV plugin discarded (not a valid file)
[00000144] main input debug: looking for id3 module
[00000144] main input debug: probing 1 candidate
[00000144] id3 input debug: Checking for ID3 tag
[00000087] main module debug: using id3 module "id3"
[00000087] main module debug: unlocking module "id3"
[00000144] main input debug: looking for mpeg-system module
[00000144] main input debug: probing 1 candidate
[00000084] main module debug: using mpeg-system module "mpeg_system"
[00000092] main module debug: using demux module "ps"
[00000144] main input debug: selecting ES 0xc0
[00000145] main decoder debug: looking for decoder module
[00000145] main decoder debug: probing 10 candidates
[00000071] main module debug: using decoder module "mpeg_audio"
[00000145] main decoder debug: thread 5126 (decoder) created at priority 
0 (src/input/input_dec.c:141)
[00000144] main input debug: selecting ES 0xe0
[00000146] main decoder debug: looking for decoder module
[00000146] main decoder debug: probing 10 candidates
[00000072] main module debug: using decoder module "mpeg_video"
[00000145] main decoder debug: no aout present, spawning one
[00000147] main audio output debug: looking for audio output module
[00000147] main audio output debug: probing 3 candidates
[00000146] main decoder debug: thread 6151 (decoder) created at priority 
0 (src/input/input_dec.c:141)
[00000146] main decoder debug: looking for motion compensation module
[00000146] main decoder debug: probing 3 candidates
[00000064] main module debug: using motion compensation module 
"motionmmxext"
[00000146] main decoder debug: looking for idct module
[00000146] main decoder debug: probing 4 candidates
[00000066] main module debug: using idct module "idctmmxext"
[00000146] main decoder debug: no usable vout present, spawning one
[00000149] main video output debug: looking for video output module
[00000149] main video output debug: probing 5 candidates
[00000149] xvideo video output debug: adaptor 0, port 137, format 
0x32315659 (YV12) planar
[00000142] gnome interface debug: stream has changed, refreshing interface
[00000137] main module debug: using video output module "xvideo"
[00000147] main audio output debug: thread 7176 (aout) created at 
priority 0 (modules/audio_output/oss.c:494)
[00000046] main module debug: using audio output module "oss"
[00000147] main audio output debug: output 's16l' 48000 Hz Stereo 
frame=1 samples/4 bytes
[00000147] main audio output debug: mixer 's16l' 48000 Hz Stereo frame=1 
samples/4 bytes
[00000147] main audio output debug: filter(s) 'fl32'->'s16l' 48000 
Hz->48000 Hz Stereo->Stereo
[00000150] main private debug: looking for audio filter module
[00000150] main private debug: probing 18 candidates
[00000011] main module debug: using audio filter module "float32tos16"
[00000147] main audio output debug: found a filter for the whole conversion
[00000147] main audio output debug: looking for audio mixer module
[00000147] main audio output debug: probing 3 candidates
[00000049] main module debug: using audio mixer module "trivial_mixer"
[00000147] main audio output debug: looking for audio mixer module
[00000147] main audio output debug: probing 3 candidates
[00000049] main module debug: using audio mixer module "trivial_mixer"
[00000147] main audio output debug: input 'mpga' 48000 Hz Stereo 
frame=1152 samples/1161 bytes
[00000147] main audio output debug: filter(s) 'mpga'->'fl32' 48000 
Hz->48000 Hz Stereo->Stereo
[00000151] main private debug: looking for audio filter module
[00000151] main private debug: probing 18 candidates
[00000024] main module debug: using audio filter module "mpgatofixed32"
[00000147] main audio output debug: found a filter for the whole conversion
[00000147] main audio output debug: filter(s) 'fl32'->'fl32' 52800 
Hz->48000 Hz Stereo->Stereo
[00000152] main private debug: looking for audio filter module
[00000152] main private debug: probing 18 candidates
[00000016] main module debug: using audio filter module "linear_resampler"
[00000147] main audio output debug: found a filter for the whole conversion
[00000149] main video output debug: got 8 direct buffer(s)
[00000149] main video output debug: picture in 704x576, chroma 
0x30323449 (I420), aspect ratio 4:3
[00000149] main video output debug: picture out 704x576, chroma 
0x32315659 (YV12), aspect ratio 4:3
[00000149] main video output debug: direct render, mapping render 
pictures 0-6 to system pictures 1-7
[00000149] main video output debug: thread 8201 (video output) created 
at priority 0 (src/video_output/video_output.c:368)
[00000146] mpeg_video decoder warning: dts != current_pts (-398148)
[00000146] mpeg_video decoder warning: backward_pts != dts (120000)
[00000146] mpeg_video decoder warning: backward_pts != current_pts (-40000)
[00000146] mpeg_video decoder warning: vpar synchro warning: pts != 
current_date (-120000)
[00000146] mpeg_video decoder warning: stream periodicity changed from 
B[1] to B[2]
[00000144] mpeg_system input warning: garbage (0x01898f80)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x819bffed)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000145] mpeg_audio decoder warning: no sync - skipping
[00000144] mpeg_system input warning: garbage (0xeb3d18a1)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x6eb000ea)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0xcec824f0)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000146] mpeg_video decoder warning: MPEG2NonIntra coeff is out of bounds
[00000144] mpeg_system input warning: garbage (0x35bf4e0c)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x5606e305)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x1af2f8ba)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x9f086920)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0xc493ec3a)
[00000147] main audio output warning: computed PTS is out of range 
(257140), clearing out
[00000147] main audio output warning: PTS is out of range (208589), 
dropping buffer
[00000147] main audio output warning: output PTS is out of range 
(262535), clearing out
[00000147] main audio output warning: PTS is out of range (184654), 
dropping buffer
[00000147] main audio output warning: PTS is out of range (184683), 
dropping buffer
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0xc54eb500)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000149] main video output warning: late picture skipped (288354)
[00000144] mpeg_system input warning: garbage (0x61c64707)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x7181e150)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x38b8815e)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x61e02a93)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x8f05c039)
[00000144] mpeg_system input warning: packet corrupted, PES sizes do not 
match
[00000144] mpeg_system input warning: garbage (0x1c7b2707)

.... and so on .................


-- 
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