Skip to content

Instantly share code, notes, and snippets.

@ephrin
Created November 10, 2024 11:08
Show Gist options
  • Save ephrin/1e7932c2929161370d282982d14a750d to your computer and use it in GitHub Desktop.
Save ephrin/1e7932c2929161370d282982d14a750d to your computer and use it in GitHub Desktop.
Convert every mkv in the directory found to mp4 via ffmpeg. Linux. Video. mkv to mp4.
for i in *.mkv; do ffmpeg -i "$i" -c:v copy -c:a copy "${i%.mkv}.mp4"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment