Skip to content

Instantly share code, notes, and snippets.

@DASPRiD
Created April 5, 2014 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DASPRiD/fa5d8fac28b9710d7a39 to your computer and use it in GitHub Desktop.
Save DASPRiD/fa5d8fac28b9710d7a39 to your computer and use it in GitHub Desktop.
$FFMPEG \
-i "$SPLASH_TEMP" \
-i "$INPUT_VIDEO" \
-i "$INPUT_AUDIO" \
-filter_complex "[1:v]setpts=$PTS*PTS [tl]; [0:v] [tl] concat=n=2:v=1:a=0 [v]" \
-map '[v]' \
-codec:v libx264 -pix_fmt yuv420p -profile:v high -preset slow -b:v 4m -maxrate 4m -bufsize 8m -threads 0 \
-codec:a libfdk_aac -b:a 192k -c:a 2 -r:a 48000 \
-shortest \
-y \
"$OUTPUT_FILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment