[PATCH] Output AAC as M4A with metadata tags
dinkypumpkin
dinkypumpkin at gmail.com
Fri Apr 1 06:54:20 EDT 2011
On 1 Apr 2011, at 11:11, Roger Burton West wrote:
> I don't have scope to test this in place, but broadly speaking I would
> expect you could get away with something like this. Set up @cmd1 and
> @cmd2 to be the first and second system() calls, then:
>
> my $buffersize=1024*4096;
>
> open(INPUT,'-|', at cmd1); # or report the error
> binmode INPUT;
[snip]
I would suggest writing to an intermediate AAC file instead of using a pipe. That way, if something goes wrong, the AAC artefact is left available for debugging. Just remove upon successful creation of m4a file.
More information about the get_iplayer
mailing list