Skip to content

Instantly share code, notes, and snippets.

@alexbaldwin
Created May 24, 2020 00:15
Show Gist options
  • Save alexbaldwin/5c3dfbad96584310459bfd52f2a6b3c5 to your computer and use it in GitHub Desktop.
Save alexbaldwin/5c3dfbad96584310459bfd52f2a6b3c5 to your computer and use it in GitHub Desktop.
MP4 Prepwork, upscales to 720p 16:9
for mp4 in *.mp4
do
echo $mp4
ffmpeg \
-i "$mp4" \
-y \
-r 15 \
-vf "scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,format=yuv420p" \
-pix_fmt yuv420p \
-c:v libx264 \
-b:v 3000k \
-b:a 128k \
-c:a aac \
-ac 2 \
-g 50 \
-preset ultrafast \
-tune zerolatency \
out/"$mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment