Last active
November 1, 2019 13:51
-
-
Save Chuckame/affd93ec3ed6fb93e712bc904c6af0b1 to your computer and use it in GitHub Desktop.
Convert video audio to AC3 to be compatible for my Z906 speakers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# With ffmpeg installed : | |
for f in *.mkv ; do ffmpeg -hide_banner -i "$f" -map 0 -c:v copy -c:a ac3 -c:s copy "${f%.mkv}.AC3.mkv" ; done | |
# Without ffmpeg installed | |
for f in *.mkv ; do docker run --rm -v multimedia-series:/temp/ jrottenberg/ffmpeg:4.1-scratch -stats -hide_banner -i /temp/"$f" -map 0 -c:v copy -c:a ac3 -c:s copy /temp/"${f%.mkv}.AC3.mkv" ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment