Skip to content

Instantly share code, notes, and snippets.

@liger1978
Created November 7, 2021 16:48
Show Gist options
  • Save liger1978/aa1c446a781fec773daf14defb81c0ff to your computer and use it in GitHub Desktop.
Save liger1978/aa1c446a781fec773daf14defb81c0ff to your computer and use it in GitHub Desktop.
# Copy all tracks but re-encode audio to ac3
/opt/ffmpeg/ffmpeg -i input.mkv -map 0 -c copy -c:a ac3 -b:a 640k output.mkv
# Copy all tracks but re-encode audio to ac3 (when downmixing 7.1 to 5.1)
/opt/ffmpeg/ffmpeg -i input.mkv -map 0 -c copy -c:a ac3 -b:a 640k -center_mixlev 0.707 output.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment