[Ffmpeg-devel] feeding ffmpeg on the fly

Måns Rullgård mru
Mon Jun 13 16:44:14 CEST 2005


Marcelo Manzato <manzato81 at yahoo.com.br> writes:

> Well, 
>
> I have tried this... I did the following:
>
> 1. $ mkfifo test
> 2. started mp4live to record video under file name
> main.mp4
> 3. $ cat main.mp4 > test
> 4. (another terminal) $ ffmpeg -s 320x240 -r 5 -t 185
> -f rawvideo -pix_fmt yuv420p -i - -vcodec mpeg4 -an -f
> mp4 coded.mp4 < test
>
> But ffmpeg finishes without waiting for more data....

Of course it does, since cat will stop when it hits the end of file.
Try replacing cat with "tail -c+0 -f".

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list