[MEncoder-users] cat /dev/video0 | mencoder - ...

Kasper Bonne kbonne at gmail.com
Wed Jul 28 18:58:45 CEST 2010


On Tue, Jul 27, 2010 at 22:49, Bob Tennent <rdtennent at gmail.com> wrote:
>> What's the problem with mplayer /dev/video0 ?
>> Either way you'll probably want a large -cache value to avoid some issues.
>
> I don't want to view the TV-card output (in real time); I want to save
> it but use x264 to compress it.
>
>  cat /dev/video0 > file.mpg
>  mencoder file.mpg ... -o file.avi
>
> works fine but
>
>  cat /dev/video0 | mencoder - ... -o file.avi

If I where you I'd use a named pipe. E.g.,

mkfifo whatever
cat /dev/video0 > whaterver &
mencoder whatever [options] -o file.avi

/Kasper


More information about the MEncoder-users mailing list