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

Shevek shevek at shevek.co.uk
Thu Mar 31 15:44:24 EDT 2011


On 31 March 2011 20:33, Roger Burton West <roger at firedrake.org> wrote:
> On Thu, Mar 31, 2011 at 08:22:26PM +0100, Shevek wrote:
>>What am I doing wrong?
>
> Easiest option (though it's vulnerable to shellmetas showing up in
> filenames) is probably to do it all in one string: set $cmd instead of
> @cmd and system($cmd).
>

OK, this is what I came up with and it works:

@cmd = (
	$bin->{ffmpeg} . ' -i "' . $file_tmp . '" -vn -acodec copy -f adts -
| ' . $bin->{ffmpeg} . ' -i - -vn -acodec copy -absf aac_adtstoasc -y
"' . $prog->{filepart} . '"',
);

does anyone have any objections to this?



More information about the get_iplayer mailing list