use opus since it yields better audio quality
This commit is contained in:
parent
f501c081df
commit
13446c6d89
@ -13,12 +13,14 @@ while [[ $# > 0 ]]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# ensure existence of destination folder
|
# ensure existence of destination folder
|
||||||
dest=../transcode_m4a
|
dir="$(pwd)"
|
||||||
|
dest=${dir%/*}/${dir##*/}_ogg
|
||||||
if [[ !(-d $dest) ]]; then
|
if [[ !(-d $dest) ]]; then
|
||||||
mkdir $dest
|
mkdir $dest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in ./*.$file_suffix; do
|
for file in ./*.$file_suffix; do
|
||||||
echo "ffmpeg -i '$file' -c:a libfdk_aac -profile:a aac_he -b:a 64k $map -movflags +faststart '$dest/${file%$file_suffix}m4a'";
|
# `-vbr on -application audio` should be default, but let's be sure
|
||||||
ffmpeg -i "$file" -c:a libfdk_aac -profile:a aac_he -b:a 64k $map -movflags +faststart "$dest/${file%$file_suffix}m4a";
|
echo "ffmpeg -i '$file' -c:a libopus -b:a 64k -vbr on -application audio $map '$dest/${file%$file_suffix}ogg'";
|
||||||
|
ffmpeg -i "$file" -c:a libopus -b:a 64k -vbr on -application audio $map "$dest/${file%$file_suffix}ogg";
|
||||||
done
|
done
|
Loading…
Reference in New Issue
Block a user