[PATCH] Output AAC as M4A with metadata tags

Shevek shevek at shevek.co.uk
Thu Mar 31 16:40:28 EDT 2011


A new patch - this one supersedes my previous patch and should be
applied to current head in repository.

(http://git.infradead.org/get_iplayer.git/commit/2e6ddc177605244746fb749524f639fe22cf2556)

please ignore my previous patch
(http://lists.infradead.org/pipermail/get_iplayer/2011-March/001103.html)

>
> AtomicParsley command updated to handle M4A as audio and put the metadata into appropriate audio tags
>
> If the detected file extension is AAC then force it to M4A
>
> When passing the flv to ffmpeg for flashaac mode the output is piped back to ffmpeg to remove the ADTS header
>
> ffmpeg -i input.flv -vn -acodec copy -f adts - | ffmpeg -i - -vn -acodec copy -absf aac_adtstoasc -y output.m4a
>
> Two passes are required as direct FLV to M4A results in a broken M4A which will not play and reports incorrect duration in iTunes.
>
> FLV -> AAC -> M4A works.
>
> Forcing adts on the output is required as ffmpeg cannot correctly read the piped output without it
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Output-AAC-as-M4A-with-metadata-tags.patch
Type: application/octet-stream
Size: 5899 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/get_iplayer/attachments/20110331/826615a7/attachment.obj>


More information about the get_iplayer mailing list