vlc + pipe

*nix specific usage questions
nico92
New Cone
New Cone
Posts: 5
Joined: 03 Mar 2008 05:25

vlc + pipe

Postby nico92 » 03 Mar 2008 05:36

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc + pipe

Postby Rémi Denis-Courmont » 03 Mar 2008 22:25

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

nico92
New Cone
New Cone
Posts: 5
Joined: 03 Mar 2008 05:25

Re: vlc + pipe

Postby nico92 » 04 Mar 2008 07:58

Works like a charm.
Merci :)

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: vlc + pipe

Postby revolunet » 04 Mar 2008 09:53

could you post an example on how you do this please ?
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

nico92
New Cone
New Cone
Posts: 5
Joined: 03 Mar 2008 05:25

Re: vlc + pipe

Postby nico92 » 04 Mar 2008 22:14

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

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: vlc + pipe

Postby revolunet » 05 Mar 2008 20:13

thanx dude ;)
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc + pipe

Postby Jean-Baptiste Kempf » 05 Mar 2008 20:15

Why can't VLC stream output to RGB24 ?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

nico92
New Cone
New Cone
Posts: 5
Joined: 03 Mar 2008 05:25

Re: vlc + pipe

Postby nico92 » 11 Mar 2008 22:21

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

mb508
Blank Cone
Blank Cone
Posts: 13
Joined: 14 Sep 2007 17:00

Re: vlc + pipe

Postby mb508 » 17 Mar 2008 13:56

oh! I have the same question! I need to obtain YUV video frames from stream and pipe them in other program.


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

Who is online

Users browsing this forum: No registered users and 15 guests