Created
January 2, 2023 21:21
-
-
Save alfredodeza/f3b42d4fd1ab958da29475efbcee8cd7 to your computer and use it in GitHub Desktop.
Use avconvert to encode MOV files to MP4 using h264
This file contains hidden or 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
destination_dir=$(dirname $1) | |
input_filename=$(basename $1) | |
name=$(basename ${input_filename} .mov) | |
output_path="$destination_dir/$name.mp4" | |
avconvert --preset Preset1920x1080 --source $1 --output $output_path | |
if [ $? -eq 0 ]; then | |
mv $1 /tmp/ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment