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

dinkypumpkin dinkypumpkin at gmail.com
Thu Mar 31 15:49:13 EDT 2011


On 31 Mar 2011, at 20:44, Shevek wrote:

> 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?

Path to ffmpeg exe might have spaces, so should be quoted as well.





More information about the get_iplayer mailing list