[FFmpeg-user] piping images into ffmpeg

Tim Nicholson tim.nicholson at bbc.co.uk
Mon Apr 11 08:56:33 CEST 2011


On 10/04/11 12:13, Akilan R wrote:
> Hi,
>
> I have a C program which generates a series of images and I wanted to make
> them into a video which should be streamed in real time or stored in a file.
> While reading up ffmpeg documentation I came across repeatedly that ffmpeg
> can take input from named pipes.
>
> My question is in what format should the files given into the pipe should be
> and how to input the files into the pipe.
>
> I tried this:
>
> $ cat hello-*.ppm | ffmpeg -f image2pipe -vcodec ppm -r 25 -i pipe: -r 25
> output.mp4
>
> but video was bad. (Here the input comes from already stored files as i was
> testing; once it works i'll pipe in output from my program like this or
> using named pipes.)
> There is no problem with image files as this one worked flawlessly:
>
> $ ffmpeg -f image2 -r 25 -i hello-%03d.ppm -r 25 output.mp4
>
>


Err, if "-f image2" is correct then why change it to "-f image2pipe" ?

What does something like:-

$ cat hello-*.ppm | ffmpeg -f image2 -r 25 -i pipe: -r 25 output.mp4

do?

I think image2pipe is more for output formatting. yuv4mpegpipe certainly is.

-- 
Tim

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
					


More information about the ffmpeg-user mailing list