有趣动态图片欣赏 第 3 期

脚本实现原理

ffmpeg脚本(需安装ffmpeg)

@echo off
path ../../ffmpeg/
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.11 -q:a 9 -acodec libmp3lame c_begin.mp3
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i begin.png -i c_begin.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.11 c_begin.mp4
ffmpeg -hide_banner -y -i c_begin.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.11 d_begin.mp4
del c_begin.* /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 0_1.png -i 0_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.844 c0_1.mp4
ffmpeg -hide_banner -y -i c0_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.844 d0_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.23102 -q:a 9 -acodec libmp3lame c0_1.mp3
ffmpeg -hide_banner -y -i c0_1.mp3 -i ../../BGM/min/8.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3 c0_2.mp3
ffmpeg -hide_banner -y -f gif -i 0_3.gif -i c0_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3 c0_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c0_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*663[b];[a][b]overlay=(0):(308.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3 d0_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 1_1.png -i 1_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 1.872 c1_1.mp4
ffmpeg -hide_banner -y -i c1_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 1.872 d1_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.837143 -q:a 9 -acodec libmp3lame c1_1.mp3
ffmpeg -hide_banner -y -i c1_1.mp3 -i ../../BGM/min/5.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.3 c1_2.mp3
ffmpeg -hide_banner -y -f gif -i 1_3.gif -i c1_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.3 c1_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c1_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*807[b];[a][b]overlay=(0):(236.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.3 d1_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 2_1.png -i 2_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.988 c2_1.mp4
ffmpeg -hide_banner -y -i c2_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.988 d2_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.775102 -q:a 9 -acodec libmp3lame c2_1.mp3
ffmpeg -hide_banner -y -i c2_1.mp3 -i ../../BGM/min/6.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.1 c2_2.mp3
ffmpeg -hide_banner -y -f gif -i 2_3.gif -i c2_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.1 c2_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c2_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*653[b];[a][b]overlay=(0):(313.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.1 d2_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 3_1.png -i 3_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 3.744 c3_1.mp4
ffmpeg -hide_banner -y -i c3_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.744 d3_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.334 -q:a 9 -acodec libmp3lame c3_1.mp3
ffmpeg -hide_banner -y -i c3_1.mp3 -i ../../BGM/min/1.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.15 c3_2.mp3
ffmpeg -hide_banner -y -f gif -i 3_3.gif -i c3_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.15 c3_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c3_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*679[b];[a][b]overlay=(0):(300.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.15 d3_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 4_1.png -i 4_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 3.384 c4_1.mp4
ffmpeg -hide_banner -y -i c4_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.384 d4_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.546939 -q:a 9 -acodec libmp3lame c4_1.mp3
ffmpeg -hide_banner -y -i c4_1.mp3 -i ../../BGM/min/3.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.2 c4_2.mp3
ffmpeg -hide_banner -y -f gif -i 4_3.gif -i c4_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.2 c4_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c4_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*609[b];[a][b]overlay=(0):(335.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.2 d4_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 5_1.png -i 5_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.916 c5_1.mp4
ffmpeg -hide_banner -y -i c5_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.916 d5_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.78102 -q:a 9 -acodec libmp3lame c5_1.mp3
ffmpeg -hide_banner -y -i c5_1.mp3 -i ../../BGM/min/8.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.55 c5_2.mp3
ffmpeg -hide_banner -y -f gif -i 5_3.gif -i c5_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.55 c5_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c5_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*741[b];[a][b]overlay=(0):(269.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.55 d5_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 6_1.png -i 6_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 3.78 c6_1.mp4
ffmpeg -hide_banner -y -i c6_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.78 d6_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.375102 -q:a 9 -acodec libmp3lame c6_1.mp3
ffmpeg -hide_banner -y -i c6_1.mp3 -i ../../BGM/min/6.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 2.7 c6_2.mp3
ffmpeg -hide_banner -y -f gif -i 6_3.gif -i c6_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 2.7 c6_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c6_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*690[b];[a][b]overlay=(0):(295)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.7 d6_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 7_1.png -i 7_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 3.492 c7_1.mp4
ffmpeg -hide_banner -y -i c7_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.492 d7_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.963265 -q:a 9 -acodec libmp3lame c7_1.mp3
ffmpeg -hide_banner -y -i c7_1.mp3 -i ../../BGM/min/4.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 2.4 c7_2.mp3
ffmpeg -hide_banner -y -f gif -i 7_3.gif -i c7_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 2.4 c7_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c7_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*699[b];[a][b]overlay=(0):(290.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.4 d7_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 8_1.png -i 8_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.628 c8_1.mp4
ffmpeg -hide_banner -y -i c8_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.628 d8_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.486125 -q:a 9 -acodec libmp3lame c8_1.mp3
ffmpeg -hide_banner -y -i c8_1.mp3 -i ../../BGM/min/7.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 4.3 c8_2.mp3
ffmpeg -hide_banner -y -f gif -i 8_3.gif -i c8_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 4.3 c8_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c8_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*726[b];[a][b]overlay=(0):(277)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 4.3 d8_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 9_1.png -i 9_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 1.98 c9_1.mp4
ffmpeg -hide_banner -y -i c9_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 1.98 d9_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.734 -q:a 9 -acodec libmp3lame c9_1.mp3
ffmpeg -hide_banner -y -i c9_1.mp3 -i ../../BGM/min/1.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 2.55 c9_2.mp3
ffmpeg -hide_banner -y -f gif -i 9_3.gif -i c9_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 2.55 c9_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c9_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*652[b];[a][b]overlay=(0):(314)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.55 d9_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 10_1.png -i 10_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 4.176 c10_1.mp4
ffmpeg -hide_banner -y -i c10_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 4.176 d10_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.737143 -q:a 9 -acodec libmp3lame c10_1.mp3
ffmpeg -hide_banner -y -i c10_1.mp3 -i ../../BGM/min/5.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.2 c10_2.mp3
ffmpeg -hide_banner -y -f gif -i 10_3.gif -i c10_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.2 c10_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c10_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*689[b];[a][b]overlay=(0):(295.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.2 d10_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 11_1.png -i 11_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.448 c11_1.mp4
ffmpeg -hide_banner -y -i c11_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.448 d11_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.18102 -q:a 9 -acodec libmp3lame c11_1.mp3
ffmpeg -hide_banner -y -i c11_1.mp3 -i ../../BGM/min/8.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 2.95 c11_2.mp3
ffmpeg -hide_banner -y -f gif -i 11_3.gif -i c11_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 2.95 c11_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c11_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*637[b];[a][b]overlay=(0):(321.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.95 d11_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 12_1.png -i 12_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.376 c12_1.mp4
ffmpeg -hide_banner -y -i c12_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.376 d12_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.663265 -q:a 9 -acodec libmp3lame c12_1.mp3
ffmpeg -hide_banner -y -i c12_1.mp3 -i ../../BGM/min/4.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.1 c12_2.mp3
ffmpeg -hide_banner -y -f gif -i 12_3.gif -i c12_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.1 c12_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c12_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*767[b];[a][b]overlay=(0):(256.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.1 d12_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 13_1.png -i 13_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.952 c13_1.mp4
ffmpeg -hide_banner -y -i c13_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.952 d13_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.83102 -q:a 9 -acodec libmp3lame c13_1.mp3
ffmpeg -hide_banner -y -i c13_1.mp3 -i ../../BGM/min/8.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 4.6 c13_2.mp3
ffmpeg -hide_banner -y -f gif -i 13_3.gif -i c13_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 4.6 c13_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c13_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*653[b];[a][b]overlay=(0):(313.5)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 4.6 d13_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 14_1.png -i 14_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 1.944 c14_1.mp4
ffmpeg -hide_banner -y -i c14_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 1.944 d14_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.546939 -q:a 9 -acodec libmp3lame c14_1.mp3
ffmpeg -hide_banner -y -i c14_1.mp3 -i ../../BGM/min/3.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.2 c14_2.mp3
ffmpeg -hide_banner -y -f gif -i 14_3.gif -i c14_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.2 c14_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c14_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*816[b];[a][b]overlay=(0):(232)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 3.2 d14_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 15_1.png -i 15_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.556 c15_1.mp4
ffmpeg -hide_banner -y -i c15_1.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.556 d15_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.584 -q:a 9 -acodec libmp3lame c15_1.mp3
ffmpeg -hide_banner -y -i c15_1.mp3 -i ../../BGM/min/1.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 2.4 c15_2.mp3
ffmpeg -hide_banner -y -f gif -i 15_3.gif -i c15_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 2.4 c15_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c15_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*710[b];[a][b]overlay=(0):(285)" -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.4 d15_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.11 -q:a 9 -acodec libmp3lame c_end.mp3
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i end.png -i c_end.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.11 c_end.mp4
ffmpeg -hide_banner -y -i c_end.mp4 -c:v libx264 -b:v 3000k -r 30 -c:a aac -b:a 128k -ar 48000 -preset superfast -pix_fmt yuv420p -max_muxing_queue_size 9999 -s 720x1280 -t 2.11 d_end.mp4
del c_end.* /q
ffmpeg -hide_banner -y -f concat -safe 0 -protocol_whitelist file,pipe -i mp4_list.txt -map_metadata 0 -movflags use_metadata_tags -ignore_unknown -s 720x1280 all.mp4
ffmpeg -hide_banner -y -i all.mp4 -i ../../BGM/3.mp3 -i ../../img/mpv.png -filter_complex "[1]aformat=sample_fmts=fltp:sample_rates=48000:channel_layouts=stereo,volume=0.66[1volume];[1volume]adelay=0|0[1delay];[0]volume=1[0out];[0out][1delay]amix;[0:v][2:v]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -c:v libx264 -c:a aac -b:a 160k -ar 48000 -preset superfast ../3.mp4
del *.mp4 /q
pause
exit

素材和用时

文字(2.844秒):破坏公共财物是要担责任的!

动态图片(3秒):http://jvhao.com/gif.php?file=cju7v2g1FdmUYK2ganQWWS3qDnguYhcy.gif

文字(1.872秒):倒车入库成功!

动态图片(3.3秒):http://jvhao.com/gif.php?file=Cr8A2ZxvBXGvjFE23ypRt3GIpZCo1mCQ.gif

文字(2.988秒):不知道是啥,先咬一口再说!

动态图片(3.1秒):http://jvhao.com/gif.php?file=jKzAK0ojKamTiOcABG82rv81fFFaD34P.gif

文字(3.744秒):多拜几个年,就能多拿点压岁钱。

动态图片(3.15秒):http://jvhao.com/gif.php?file=aMuhLxlVJ5VutcBzyRDtJ3sChRD0ehMY.gif

文字(3.384秒):我要和我的爱车一起冲向世界尽头!

动态图片(3.2秒):http://jvhao.com/gif.php?file=feDHW8ItZdOTgNTLhLstNJ86QnEngbtW.gif

文字(2.916秒):能打败我的只有我自己!

动态图片(3.55秒):http://jvhao.com/gif.php?file=NkEW3eNXUUjRvOpLQPZgefEuYJyZe6lN.gif

文字(3.78秒):为什么要让幼小的我受到这样的伤害?

动态图片(2.7秒):http://jvhao.com/gif.php?file=RtQsDGgX9avYA6zJvszIRO9K33K95QhQ.gif

文字(3.492秒):桨是用来划船的,不要作其他用途!

动态图片(2.4秒):http://jvhao.com/gif.php?file=pFKIssmxU2aUVm73mDDZCzPb8jY2Y3Vy.gif

文字(2.628秒):妈妈!它抢我吃的!

动态图片(4.3秒):http://jvhao.com/gif.php?file=3ayvmBAsDN9lA5w3p07NBZFYwoX7TnBP.gif

文字(1.98秒):木桩也不是故意的!

动态图片(2.55秒):http://jvhao.com/gif.php?file=hLQRPyct42B8vwboPSFJw1Gr6s2yeCE0.gif

文字(4.176秒):体育运动真的很容易让人进入忘我的状态。

动态图片(3.2秒):http://jvhao.com/gif.php?file=vJmeqiX5Rw7fSeVuxZOWTlHwHH0wiHa7.gif

文字(2.448秒):满脸都写着痛苦俩字。

动态图片(2.95秒):http://jvhao.com/gif.php?file=njdUvECfBQKMA7GZKDZoKPB8L91s9FPn.gif

文字(2.376秒):好好的球杆成棍子了?

动态图片(3.1秒):http://jvhao.com/gif.php?file=asm2RSd3aEEdNBFRk40w2JjwQix5VJet.gif

文字(2.952秒):人类的表情原来可以这么丰富。

动态图片(4.6秒):http://jvhao.com/gif.php?file=gWAMudDny0Y8WBOAziDwBbC82NtMIOtJ.gif

文字(1.944秒):就差临门一脚!

动态图片(3.2秒):http://jvhao.com/gif.php?file=DT4MhtwlmrqdsXPXZ4tv1ULHaIXmlGSH.gif

文字(2.556秒):没往下掉真是奇迹。

动态图片(2.4秒):http://jvhao.com/gif.php?file=NEEXJoxlA20q3A56iYUZyVAQfhHuyMor.gif

返回首页