Skip to content

Instantly share code, notes, and snippets.

@gsgoncalves
Created November 16, 2022 18:36
Show Gist options
  • Save gsgoncalves/4fd76b0b385bb938d4a72ba1d370e7a9 to your computer and use it in GitHub Desktop.
Save gsgoncalves/4fd76b0b385bb938d4a72ba1d370e7a9 to your computer and use it in GitHub Desktop.
Bash one liner to convert the audio codec of all EAC3 files to MP3
for file in *.mkv; do ffmpeg -i "$file" -map 0 -c copy -c:a mp3 "${file/EAC3/MP3}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment