Skip to content

Instantly share code, notes, and snippets.

@grimelda
Last active January 28, 2023 17:01
Show Gist options
  • Save grimelda/5e33cece288e0315eb03688b4cd702ed to your computer and use it in GitHub Desktop.
Save grimelda/5e33cece288e0315eb03688b4cd702ed to your computer and use it in GitHub Desktop.
single line command to use ffmpeg to convert all files with extension in (sub)folders to mp4
#! /bin/bash
find . -name "*.MOV" -exec ffmpeg -i "{}" -c:v libx265 -c:a aac -crf 14 -x265-params open-gop=0 "{}.mp4" \;
# add if remove original file:
# -exec rm "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment