Last active
April 11, 2023 00:10
-
-
Save jberkus/5ba3c4b6eee815e54ed26011df3ed51e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/bash | |
set -e | |
if [ $# -lt 3 ]; then | |
echo 1>&2 "USAGE: addbumpers TITLESLIDE.png ENDSLIDE.png VIDEOIN.mp4" | |
exit 2 | |
fi | |
STRIP=$(basename $3 .mp4) | |
VIDEOOUT="$STRIP-final.mp4" | |
mlt-melt -profile atsc_1080p_2997 \ | |
$1 out=120 \ | |
$3 -mix 30 -mixer luma \ | |
$2 out=240 -mix 30 -mixer luma -consumer \ | |
avformat:$VIDEOOUT \ | |
v=libx26 preset=slow crf=18 a=copy pix_fmt=yuv420p strict=-2 | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment