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

James Cook james.cook at bluewin.ch
Sun Mar 27 11:26:19 EDT 2011


On Fri, 25 Mar 2011 01:34:12 +0000, you wrote:

>From 5fabec5cce61092f19249d6b74dcfa20abf935ae Mon Sep 17 00:00:00 2001
>From: Shevek <shevek at shevek.co.uk>
>Date: Fri, 25 Mar 2011 01:30:18 +0000
>Subject: [PATCH] Output AAC as M4A for iTunes with metadata tags
> If the downloaded file is from a flashaac mode then a second pass of
>ffmpeg removes the ADTS header and remuxes to M4A container
> Two passes are required as direct FLV to M4A results in a broken M4A
>which will not play and reports incorrect duration. FLV -> AAC -> M4A
>works.
> AtomicParsley is then used to correctly tag the M4A file

Thanks for your code. I realise how much work that was.

I placed something similar into my get_iplayer script last week
following your mail about adts.

On Vista I was getting sporadic "xxx-temp.mp4" files left over in my
directories despite the --overWrite option being set. Looking at these
temp files it seemed that some atoms were not being set.

Placing the arguments to atomic parsley in double quotes seemed to
help. 
 push @cmd, "--artwork", "\"".$prog->{thumbfile}."\"" if -f 
	$prog->{thumbfile}; 

Could just be my weird cygwin/bash/vista command shell ...

JC



More information about the get_iplayer mailing list