-
-
Save anonymous/c8d6d0e54f9f1e4e7a16 to your computer and use it in GitHub Desktop.
This file contains 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
S="18" | |
VAL="(mod(N,$S)/$S)" | |
NEGVAL="(1-$VAL)" | |
EVEN="(not(mod(floor(N/$S),2)))" | |
FONT1="../fonts/trebucbd.ttf" | |
FONT2="../fonts/trebucbd.ttf" | |
FONT3="../fonts/arial.ttf" | |
ffmpeg -v warning -stats \ | |
-ss 18.785 -i "T-Ara - Sexy Love In Tokyo (2012).avi" \ | |
-loop 1 -i ../tmpl/logo.1080p.png \ | |
-loop 1 -i ../tmpl/bg1.1080p.png \ | |
-loop 1 -i ../tmpl/bg2.1080p.png \ | |
-loop 1 -i ../tmpl/title-long.1080p.png \ | |
-t 57.992 \ | |
-lavfi " | |
color=black:s=1920x1080,format=rgba, | |
drawtext=fontcolor=white:fontsize=40:$FONT1:text=Репортаж:x=327:y=896, | |
colorchannelmixer=aa=0:ar=1, | |
boxblur=1.5:2[text1]; | |
color=black:s=1920x1080,format=rgba, | |
drawtext=fontcolor=white:fontsize=36:$FONT2:text=Павла Бугорова\, Ирины Королёвой:x=325:y=947, | |
colorchannelmixer=rr=0:gg=0:bb=0:aa=0:ar=1, | |
boxblur=1:1[text2]; | |
color=black:s=1920x1080,format=rgba, | |
drawtext=fontcolor=white:fontsize=53:$FONT3:textfile=news.txt:y=993:x=1920-n*12, | |
colorchannelmixer=rr=0.9:gg=0.9:aa=0:ar=1, | |
boxblur=1:3[text3]; | |
[2:v][3:v]blend=all_expr='A*if($EVEN,$NEGVAL,$VAL) + B*if($EVEN,$VAL,$NEGVAL)'[bg]; | |
[text1][text2]overlay,[4:v]overlay,format=rgba,fade=t=in:st=1:d=1,fade=t=out:st=5:d=1[title]; | |
[0:v][1:v]overlay[tmp1]; | |
[tmp1][bg]overlay[tmp2]; | |
[tmp2][title]overlay[tmp3]; | |
[tmp3][text3]overlay | |
" \ | |
-af afade=t=in:d=2,afade=t=out:st=56 \ | |
-c:v rawvideo -c:a pcm_s16le -y news1-4.mkv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment