[MEncoder-users] View mencoder actions

Kasper Bonne kbonne at gmail.com
Fri Oct 22 14:01:33 CEST 2010


On Fri, Oct 22, 2010 at 13:22, James <jam at tigger.ws> wrote:
> Sorry :-) User unacceptable, not technically unacceptable.
> The user is communicating live and this means a 1 sec audio/video
> disjoint.They want to hear and see in sync and without delay

Ah, Ok. I see.  Then this will definitely work (provided you machine
can handle simultaneous encoding and playback):

First make two fifo's for piping video around:
$ mkfifo rawvideo
$ mkfifo encodeme

Then use mencoder to grab the video and audio from the devices and
combine it into one stream.
$ mencoder tv:// -oac pcm -ovc copy -o rawvideo &

Pipe the stream through tee(1) to get one for encoding and one for viewing
$ cat rawvideo | tee encodeme | mplayer - &
$ mencoder encodeme [options] -o archive.avi

You might need to add some options when reading from the fifos to get
mplayer (mencoder) to recognize the stream but the concept will
certainly work.

/Kasper


More information about the MEncoder-users mailing list