Skip to content

Instantly share code, notes, and snippets.

@nyanpasu64
Last active August 16, 2016 12:01
Show Gist options
  • Save nyanpasu64/a11fe43c21be1306d9cf870ee642d9a2 to your computer and use it in GitHub Desktop.
Save nyanpasu64/a11fe43c21be1306d9cf870ee642d9a2 to your computer and use it in GitHub Desktop.
sd3sister Video Encoder
#!/usr/bin/env bash
img=sd3title.png
t=1800
# 8/7 * 1080 = 1234.2857142857142
# 1234x1080
scale=1234x1080
video=sd3video.mp4
ffmpeg -loglevel warning -hide_banner -y \
-loop 1 -i $img \
-s $scale -sws_flags neighbor \
-t $t -r 1 \
-c:v libx264 -tune stillimage -pix_fmt yuv420p \
$video -y
audio=sd3sister-extend.aac
final=sd3sister.mp4
ffmpeg -loglevel warning -hide_banner -y \
-i $video -i $audio -codec copy -bsf:a aac_adtstoasc $final
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment