Skip to content

Instantly share code, notes, and snippets.

@TJC
Created August 20, 2020 07:44
Show Gist options
  • Save TJC/d405aa25e66ae8c00d0bf7d69b8970a7 to your computer and use it in GitHub Desktop.
Save TJC/d405aa25e66ae8c00d0bf7d69b8970a7 to your computer and use it in GitHub Desktop.
Encode a Quicktime file to MPEG4-x264
#!/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