有趣动态图片欣赏 第 4 期

脚本实现原理

ffmpeg脚本(需安装ffmpeg)

@echo off
path ../../ffmpeg/
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 3.03 -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 3.03 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 3.03 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.484 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.484 d0_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.03102 -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.8 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.8 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*720[b];[a][b]overlay=(0):(280)" -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.8 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 3.744 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 3.744 d1_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.884 -q:a 9 -acodec libmp3lame c1_1.mp3
ffmpeg -hide_banner -y -i c1_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.7 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.7 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*738[b];[a][b]overlay=(0):(271)" -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.7 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.448 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.448 d2_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.83102 -q:a 9 -acodec libmp3lame c2_1.mp3
ffmpeg -hide_banner -y -i c2_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.6 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.6 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*667[b];[a][b]overlay=(0):(306.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.6 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 2.088 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 2.088 d3_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.163265 -q:a 9 -acodec libmp3lame c3_1.mp3
ffmpeg -hide_banner -y -i c3_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.6 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.6 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*680[b];[a][b]overlay=(0):(300)" -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.6 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.996 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.996 d4_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.825102 -q:a 9 -acodec libmp3lame c4_1.mp3
ffmpeg -hide_banner -y -i c4_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.15 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.15 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*712[b];[a][b]overlay=(0):(284)" -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 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.592 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.592 d5_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.705918 -q:a 9 -acodec libmp3lame c5_1.mp3
ffmpeg -hide_banner -y -i c5_1.mp3 -i ../../BGM/min/2.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.15 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.15 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*712[b];[a][b]overlay=(0):(284)" -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 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.888 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.888 d6_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.187143 -q:a 9 -acodec libmp3lame c6_1.mp3
ffmpeg -hide_banner -y -i c6_1.mp3 -i ../../BGM/min/5.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 2.65 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.65 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*612[b];[a][b]overlay=(0):(334)" -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.65 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 2.34 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 2.34 d7_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.734 -q:a 9 -acodec libmp3lame c7_1.mp3
ffmpeg -hide_banner -y -i c7_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 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.55 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*806[b];[a][b]overlay=(0):(237)" -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 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 4.248 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 4.248 d8_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.18102 -q:a 9 -acodec libmp3lame c8_1.mp3
ffmpeg -hide_banner -y -i c8_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 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 2.95 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*510[b];[a][b]overlay=(0):(385)" -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 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 2.628 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 2.628 d9_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.587143 -q:a 9 -acodec libmp3lame c9_1.mp3
ffmpeg -hide_banner -y -i c9_1.mp3 -i ../../BGM/min/5.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 2.05 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.05 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*696[b];[a][b]overlay=(0):(292)" -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.05 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.248 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.248 d10_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.684 -q:a 9 -acodec libmp3lame c10_1.mp3
ffmpeg -hide_banner -y -i c10_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.5 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.5 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*695[b];[a][b]overlay=(0):(292.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.5 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.52 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.52 d11_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.38102 -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 3.15 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 3.15 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*636[b];[a][b]overlay=(0):(322)" -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 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 3.24 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 3.24 d12_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.484 -q:a 9 -acodec libmp3lame c12_1.mp3
ffmpeg -hide_banner -y -i c12_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.3 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 2.3 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*643[b];[a][b]overlay=(0):(318.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.3 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.556 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.556 d13_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.08102 -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 2.85 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 2.85 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*870[b];[a][b]overlay=(0):(205)" -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.85 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 2.484 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 2.484 d14_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.513265 -q:a 9 -acodec libmp3lame c14_1.mp3
ffmpeg -hide_banner -y -i c14_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.95 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 2.95 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*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.95 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.772 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.772 d15_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 3.005918 -q:a 9 -acodec libmp3lame c15_1.mp3
ffmpeg -hide_banner -y -i c15_1.mp3 -i ../../BGM/min/2.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 3.45 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 3.45 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*695[b];[a][b]overlay=(0):(292.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.45 d15_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 16_1.png -i 16_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.592 c16_1.mp4
ffmpeg -hide_banner -y -i c16_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.592 d16_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.734 -q:a 9 -acodec libmp3lame c16_1.mp3
ffmpeg -hide_banner -y -i c16_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 c16_2.mp3
ffmpeg -hide_banner -y -f gif -i 16_3.gif -i c16_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 2.55 c16_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c16_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*636[b];[a][b]overlay=(0):(322)" -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 d16_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 17_1.png -i 17_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.016 c17_1.mp4
ffmpeg -hide_banner -y -i c17_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.016 d17_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.43102 -q:a 9 -acodec libmp3lame c17_1.mp3
ffmpeg -hide_banner -y -i c17_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.2 c17_2.mp3
ffmpeg -hide_banner -y -f gif -i 17_3.gif -i c17_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.2 c17_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c17_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*830[b];[a][b]overlay=(0):(225)" -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 d17_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 18_1.png -i 18_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.772 c18_1.mp4
ffmpeg -hide_banner -y -i c18_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.772 d18_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.063265 -q:a 9 -acodec libmp3lame c18_1.mp3
ffmpeg -hide_banner -y -i c18_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.5 c18_2.mp3
ffmpeg -hide_banner -y -f gif -i 18_3.gif -i c18_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 2.5 c18_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c18_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 2.5 d18_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 19_1.png -i 19_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 2.088 c19_1.mp4
ffmpeg -hide_banner -y -i c19_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.088 d19_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.736125 -q:a 9 -acodec libmp3lame c19_1.mp3
ffmpeg -hide_banner -y -i c19_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.55 c19_2.mp3
ffmpeg -hide_banner -y -f gif -i 19_3.gif -i c19_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 4.55 c19_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c19_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*704[b];[a][b]overlay=(0):(288)" -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.55 d19_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 3.03 -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 3.03 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 3.03 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/4.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 ../4.mp4
del *.mp4 /q
pause
exit

素材和用时

文字(2.484秒):健身还是要去健身房!

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

文字(3.744秒):你低估了楼梯还高估了这个纸箱子。

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

文字(2.448秒):这要是撞车上事就大了。

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

文字(2.088秒):我最近是不是水逆?

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

文字(3.996秒):麻瓜就是麻瓜,不懂魔法就不要乱模仿。

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

文字(2.592秒):导演麻烦把最后剪了吧!

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

文字(3.888秒):今天回家肯定免不了一顿搓衣板了。

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

文字(2.34秒):来去匆匆不过如此。

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

文字(4.248秒):我天天好吃好喝伺候你,你就这样对待我?

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

文字(2.628秒):你以为你在拍动画片吗?

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

文字(4.248秒):他成功滑到了终点!让我们恭喜他!

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

文字(2.52秒):我不是故意的,相信我!

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

文字(3.24秒):一定是因为腿太长了就卡住了。

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

文字(2.556秒):探戈就是趟呀趟着走。

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

文字(2.484秒):至少真的成功上了楼。

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

文字(2.772秒):真是一次刺激的坐车体验!

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

文字(2.592秒):今天的工作是扫大街。

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

文字(2.016秒):爷爷们也很努力了!

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

文字(2.772秒):无敌旋风腿,人挡杀人!

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

文字(2.088秒):我就是想喝口水!

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

返回首页