Discussion:
[MPlayer-users] mencoder to fifo and play fifo with mplayer
Peter Irbizon
2016-06-12 16:49:19 UTC
Permalink
Hello,
I'd like to post this question related to mencoder.
I would like to encode with mencoder stream from my /dev/video0 camera and
save it to fifo pipe and then play it immediatelly with mplayer (or any
other player => this is why I need to encode it with mencoder first)

I tried something like this:
$ mkfifo output.avi
$ mencoder tv:// -tv driver=v4l2:width=720:height=576:device=/dev/video0
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 -o output.avi -v -nosound
BUT this produces no results (likek "video buffer full - dropping frame")
$ mplayer output.avi (this is how I wanted to play it)

When I save stream to normal file, mencoder works ok.
Any idea please how to put strem into pipe and then play it?

Loading...