Skip to content

Instantly share code, notes, and snippets.

@tobychui
Created August 4, 2022 13:04
Show Gist options
  • Save tobychui/bc2a710e1ddddf5173c02acd904789b1 to your computer and use it in GitHub Desktop.
Save tobychui/bc2a710e1ddddf5173c02acd904789b1 to your computer and use it in GitHub Desktop.
Convert all mkv files in this folder into mp4 using ffmpeg
#/bin/bash
mkdir "./h264"
for i in *.mkv; do ffmpeg -i "$i" "./h264/${i%.*}.mp4"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment