[PATCH] Output AAC as M4A for iTunes with metadata tags (Shevek)

dinkypumpkin dinkypumpkin at gmail.com
Thu Mar 31 11:21:14 EDT 2011

On 31 Mar 2011, at 16:01, Shevek wrote:

> This is possibly a stupid question, but can ffmpeg pipe to itself to
> do both things separately but in one command?

This worked for me:

ffmpeg -i test.flv -vn -acodec copy -f adts - | ffmpeg -i - -vn -acodec copy -absf aac_adtstoasc -y test.m4a

I think the trick is choosing the right output format from the first ffmpeg command.  It needs to use a muxer that doesn't require seekable output, so adts seemed like the right choice.

More information about the get_iplayer mailing list