OT: Help with Broken Downloads Please

Jon Davies jon at hedgerows.org.uk
Tue Dec 22 12:19:09 PST 2015


On 22 December 2015 at 19:48, batguano999 <batguano999 at zoho.com> wrote:
> >... is there a Linux command that would apply
> >that line to all aac files in a folder, taking the existing name.aac and
> >using it to output name.mp4? Something like a Windows wild card which
> >would ren *.aac to *.m4a? All the file names are as gip/BBC delivered
> >them so they are complex, with underscore characters and date/time stamps.
> >
> This seems to be OK...
> for f in *.aac; do ffmpeg -i "$f" -c copy -bsf:a aac_adtstoasc "${f%.aac}".m4a; done
>
>
> >Then, if it could recursively do that to each folder beneath the upper
> >level - well, that really would be the icing on the cake.
> >
> Dream on
>  ;-)

something like this should work, assuming that you're in the directory
from which you wish to search:

$ find . -iname \*.aac | while read f; do ffmpeg -i "$f" -c copy
-bsf:a aac_adtstoasc "${f%.aac}".m4a; done

-- find finds files recursively, piping the list of files into 'while
read f' sets $f to each filename in turn.

Cheers
Jon



More information about the get_iplayer mailing list