Page 1 of 1

vlc + pipe

Posted: 03 Mar 2008 05:36
by nico92
Hello,

I'm looking for a way to redirect VLC video output to a program (mencoder in this case) rather than displaying the frames. If no such thing is directly possible with vlc, is there any setup that can do the job? (for example: vlc http/rtp streaming --> (intermediate tool) read the frames from local port --> feed output to mencoder)
Thanks in advance.

Re: vlc + pipe

Posted: 03 Mar 2008 22:25
by RĂ©mi Denis-Courmont
Set the VLC streamout output to write to a file in an appropriate format, and give a FIFO (or a Pseudo-terminal) as the path. Do the opposite on mencoder.

Re: vlc + pipe

Posted: 04 Mar 2008 07:58
by nico92
Works like a charm.
Merci :)

Re: vlc + pipe

Posted: 04 Mar 2008 09:53
by revolunet
could you post an example on how you do this please ?

Re: vlc + pipe

Posted: 04 Mar 2008 22:14
by nico92
I used a named pipe:

$ mkfifo pipe

vlc streams to the pipe while mencoder reads from the pipe:

$ vlc --sout "#std{access=file,mux=ts,dst=pipe}" example.mpg & mencoder -ovc raw -vf format=rgb24 -of rawvideo -o example.raw pipe

Re: vlc + pipe

Posted: 05 Mar 2008 20:13
by revolunet
thanx dude ;)

Re: vlc + pipe

Posted: 05 Mar 2008 20:15
by Jean-Baptiste Kempf
Why can't VLC stream output to RGB24 ?

Re: vlc + pipe

Posted: 11 Mar 2008 22:21
by nico92
Why can't VLC stream output to RGB24 ?
Has anyone got an answer to this question? The pixel format doesn't really matter in my case (could be rgb/bgr/yuv) but can VLC transcode a video stream into raw (uncompressed) frames? Which would allow me to get rid of mencoder once and for all.
In the documentation (http://www.videolan.org/streaming/features.html) I see no raw output formats for video transcoding.
Thanks again

Re: vlc + pipe

Posted: 17 Mar 2008 13:56
by mb508
oh! I have the same question! I need to obtain YUV video frames from stream and pipe them in other program.