mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-07 10:26:04 +08:00

This makes them pass shellcheck. Except for a few unused export warnings. I also wonder if the majority of these files should be in the root of the project, or should be moved to "build-scripts" (or should still even exist). a few minor changes one more minor changes
13 lines
392 B
Bash
Executable File
13 lines
392 B
Bash
Executable File
#!/usr/bin/env 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}"
|
|
|