15
Audioconvert.md
Normal file
15
Audioconvert.md
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
The following script is able to batch-convert audio files to the `m4a` format.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
for file in "$@"; do
|
||||||
|
target="${file%.*}.m4a"
|
||||||
|
if ffmpeg -i "$file" -vn "$target"; then
|
||||||
|
rm "$file"
|
||||||
|
else
|
||||||
|
echo "Could not convert $file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user