Skip to content

Commit fc211a9

Browse files
helper script
1 parent 7674792 commit fc211a9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scaleup-4x3-mts-to-1080p.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
src="$1"
3+
dst="$1.1080p.mp4"
4+
5+
fwidth=1440
6+
fheight=1080
7+
# 95% title safe area
8+
swidth=$((($fwidth*90)/100))
9+
sheight=$((($fheight*90)/100))
10+
11+
ffmpeg -i "$src" -bsf:a aac_adtstoasc -acodec copy -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"
12+

0 commit comments

Comments
 (0)