Last active
January 28, 2023 17:01
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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