[FFmpeg-user] Specifying input and output formats with pipes
belcampo at zonnet.nl
Tue Jul 19 23:26:34 CEST 2011
On 07/19/11 18:26, Rhodri James wrote:
> 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 |
> That's what grouches about not being able to write the header.
> getclip | ffmpeg -i pipe: -f mpegts -vcodec libx264 pipe: 2>ffmpeg.log |
> 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?
I'm not sure if it matters, see my example, but the order in which
instructions are given do matter. In my example -f mpegts is at the end,
right before the destination.
More information about the ffmpeg-user