08-06-2019, 06:24 PM
(This post was last modified: 08-07-2019, 04:38 PM by Sprintrdriver.)
Hi.
I have a folder with multiple .aac audio files. I plan to use them in a car stereo that is very picky on accepting files.
So I found out using ffmpeg to clean out any unused metadata and possible other non-auditible information using this command:
ffmpeg -i 'input.aac' -vn -c:a copy 'output.aac'
I want to be able to do this for several files at once. According to [url=http://"https://unix.stackexchange.com/questions/80851/how-do-i-run-a-command-on-multiple-files"]this thread in unix.stackexchange forum[/url], it should be easilly done by using the find command.
However - I have tried several variation of the command (using the example from unix.stackexchange forum), but without any success (ffmpeg claim error about file existing). This is the commands I have tried so far:
I usually got an error message like this (for every file):
NEW./input-file-name.aac: No such file or directory
I cannot 'see' the command that ffmpeg actually receive, so I cannot tell if there is an obviously error.
I have a folder with multiple .aac audio files. I plan to use them in a car stereo that is very picky on accepting files.
So I found out using ffmpeg to clean out any unused metadata and possible other non-auditible information using this command:
ffmpeg -i 'input.aac' -vn -c:a copy 'output.aac'
I want to be able to do this for several files at once. According to [url=http://"https://unix.stackexchange.com/questions/80851/how-do-i-run-a-command-on-multiple-files"]this thread in unix.stackexchange forum[/url], it should be easilly done by using the find command.
However - I have tried several variation of the command (using the example from unix.stackexchange forum), but without any success (ffmpeg claim error about file existing). This is the commands I have tried so far:
Code:
find . -name "*.aac" -exec ffmpeg -i {} -vn -c:a copy 2_{}
find . -name "*.aac" -exec ffmpeg -i {} -vn -c:a copy 2_{} \;
find . -name "*.aac" -exec ffmpeg -i {} -vn -c:a copy NEW{} \;
find . -name "*.aac" -exec ffmpeg -i {} -vn -c:a copy NEW{}\;
find . -name "*.aac" -exec ffmpeg -i {} -vn -c:a copy NEW{} \;
find . -name "*.aac" -exec ffmpeg -i '{}' -vn -c:a copy 'NEW{}'\;I usually got an error message like this (for every file):
NEW./input-file-name.aac: No such file or directory
I cannot 'see' the command that ffmpeg actually receive, so I cannot tell if there is an obviously error.
I won't let an old, but fully functional computer die just because some company tell me that they won't make no more security updates to their OS. Thanks Linux


![[Image: X5qGkCg.png]](https://imgur.com/X5qGkCg.png)
![[Image: 0op1GNe.png]](https://i.imgur.com/0op1GNe.png)
![[Image: LgJ2mtP.png]](https://i.imgur.com/LgJ2mtP.png)
![[Image: vLZcFUE.png]](https://imgur.com/vLZcFUE.png)
![[Image: lrUHro3.jpg]](https://i.imgur.com/lrUHro3.jpg)