Created
August 20, 2020 07:44
-
-
Save TJC/d405aa25e66ae8c00d0bf7d69b8970a7 to your computer and use it in GitHub Desktop.
Encode a Quicktime file to MPEG4-x264
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
#!/bin/bash | |
docker container run -u 1000 --rm -v "$PWD:/mnt" \ | |
-v "$SRC:/input.mov:ro" \ | |
alfg/ffmpeg \ | |
nice ffmpeg -hide_banner \ | |
-loglevel warning \ | |
-i "/input.mov" \ | |
-c:v libx264 -preset medium -profile:v high -level 4.2 -crf 21 \ | |
"/mnt/output.mp4" | |
echo "New video saved as output.mp4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment