Skip to content

Instantly share code, notes, and snippets.

@marios88
Last active April 25, 2022 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marios88/f1c92347cc781f8bc9939e10c5460320 to your computer and use it in GitHub Desktop.
Save marios88/f1c92347cc781f8bc9939e10c5460320 to your computer and use it in GitHub Desktop.
ffmpeg change audio codec to ac3
./mountRPI.sh
// Make audio AC3
ffmpeg -i input.mkv -acodec ac3 -vcodec copy -c:s copy -map 0 -analyzeduration 999999999 -probesize 999999999 ~/RPI/EXTERNAL/Tainies/output.mkv
// Make audio AC3 and remove Subs
ffmpeg -i input.mkv -acodec ac3 -vcodec copy -map 0 -map -0:s -analyzeduration 999999999 -probesize 999999999 ~/RPI/EXTERNAL/Tainies/output.mkv
@marios88
Copy link
Author

marios88 commented Apr 25, 2022

whole folder

for i in *.mkv; do ffmpeg -i "$i" -acodec ac3 -vcodec copy -c:s copy -map 0 -analyzeduration 999999999 -probesize 999999999 "${i%.*}_AC3.mkv"; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment