render_video/tmp.sh

16 lines
443 B
Bash
Raw Normal View History

2024-05-25 11:53:15 +00:00
#!/bin/busybox ash
set -euo pipefail
rm tmp.mkv || true
ffmpeg -hide_banner \
2024-05-25 14:20:43 +00:00
-loop 1 -r 25 -t 3 -i question.png \
2024-05-25 11:53:15 +00:00
-filter_complex "
2024-05-25 14:20:43 +00:00
gradients=s=2560x1440:d=5:c0=#000055:c1=#005500:x0=480:y0=540:x1=1440:y1=540[input];
[0]fade=t=in:st=1:d=0.5:alpha=1,fade=t=out:st=2.5:d=0.5:alpha=1,setpts=PTS+1/TB[overlay];
[input][overlay]overlay=eval=frame:x=0:y=0:repeatlast=0[v]
2024-05-25 11:53:15 +00:00
" \
-map "[v]" \
-c:v libsvtav1 -preset 1 -crf 18 \
"tmp.mkv"