[FFmpeg-user] Specifying input and output formats with pipes

Rhodri James rhodri at kynesim.co.uk
Tue Jul 19 18:26:02 CEST 2011


On Tue, 19 Jul 2011 17:15:57 +0100, belcampo <belcampo at zonnet.nl> wrote:

> Please don't trim your actual command-line, I have to guess what you did.

I thought I was pretty clear, but if you insist:

getclip | ffmpeg -i pipe: -f mp4 -vcodec libx264 pipe: 2>ffmpeg.log |  
dosomething

That's what grouches about not being able to write the header.

getclip | ffmpeg -i pipe: -f mpegts -vcodec libx264 pipe: 2>ffmpeg.log |  
dosomething

That produces output.

"getclip" and "dosomething" are in reality chunks of C code on the other  
ends of pipes, but for these purposes "cat" would do just as well.

Does mp4 require more command-line options that nothing has seen fit to  
tell me about?

-- 
Rhodri James
Kynesim Ltd


More information about the ffmpeg-user mailing list