2
2
Given the situation that audio needs to be extracted from video files residing in subdirectories, how would one go about properly naming the resulting files?
The following one-liner works, but retains the old file extension.
find -name "*.mp4" -exec ffmpeg -i {} -vn -acodec copy {}.aac -hide_banner \;
Current outcome:
foobar.mp4 --> foobar.mp4.aac
Desired outcome:
foobar.mp4 --> foobar.aac
Your solution works. Thanks also for linking to your other answer -- it clearly explains some questions I had about this solution. Much appreciated. – Daktari – 2019-04-18T01:06:21.023
amazing, thank you. I used this for renaming
gunzip
files to append an extension – Merlin – 2019-07-30T18:50:31.420