This commit is contained in:
Jonathan Campbell
2016-08-09 11:30:11 -07:00
parent fc211a932c
commit bd08d4ded9

12
scaleup-4x3-mp4-to-1080p.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
src="$1"
dst="$1.1080p.mp4"
fwidth=1440
fheight=1080
# 95% title safe area
swidth=$((($fwidth*90)/100))
sheight=$((($fheight*90)/100))
ffmpeg -i "$src" -acodec aac -ab 256000 -vcodec libx264 -g 15 -bf 2 -vf "scale=$swidth:$sheight,pad=$fwidth:$fheight:(ow-iw)/2:(oh-ih)/2:black,setdar=4:3" -vb 15000000 -preset superfast -pix_fmt yuv420p -y -f mp4 "$dst"