[MPlayer-users] trying to pipe mencoder to ffmpeg2theora

Nico Sabbi nicola_sabbi at fastwebnet.it
Wed May 16 22:31:52 CEST 2007


Roman Haefeli wrote:
> hello
> 
> i'd like to be able to pipe the stdout of mencoder to stdin of
> ffmpeg2theora, but i troubles to bring the output of mencoder into a
> form, that is understood by ffmpeg2theora.
> 
> i tried the following:
> 
> mencoder tv:// -tv
> driver=v4l:device=/dev/video1:width=320:height=240:fps\=25:immediatemode
> \=0:adevice\=hw.1:amode\=0:alsa:audiorate\=44100:forceaudio \
> -oac pcm -af resample=22050 -ovc lavc -lavcopts vcodec=ffvhuff \
> -o /dev/stdout | \
> ffmpeg2theora -x 320 -y 240 -V 400 -a 1 -H 22050 -c 1 -o file.ogg -


stdout is seriously polluted, so

mkfifo /tmp/pipe
mencoder -o /tmp/pipe ...
ffmpeg2theora -x 320 -y 240 -V 400 -a 1 -H 22050 -c 1 -o file.ogg 
/tmp/pipe



More information about the MPlayer-users mailing list