有趣动态图片欣赏 第 5 期

脚本实现原理

ffmpeg脚本(需安装ffmpeg)

@echo off
path ../../ffmpeg/
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 3.158 -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.158 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.158 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.448 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.448 d0_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.98102 -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.75 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.75 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*847[b];[a][b]overlay=(0):(216.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.75 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 2.7 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 2.7 d1_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.337143 -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 2.8 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 2.8 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*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 2.8 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.016 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.016 d2_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.236125 -q:a 9 -acodec libmp3lame c2_1.mp3
ffmpeg -hide_banner -y -i c2_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.05 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 4.05 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*760[b];[a][b]overlay=(0):(260)" -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.05 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 1.98 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 1.98 d3_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.384 -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 2.2 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 2.2 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*895[b];[a][b]overlay=(0):(192.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.2 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 2.736 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 2.736 d4_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.096939 -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 2.75 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 2.75 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*693[b];[a][b]overlay=(0):(293.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.75 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.808 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.808 d5_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.187143 -q:a 9 -acodec libmp3lame c5_1.mp3
ffmpeg -hide_banner -y -i c5_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 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 2.65 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*787[b];[a][b]overlay=(0):(246.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.65 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 1.764 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 1.764 d6_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.834 -q:a 9 -acodec libmp3lame c6_1.mp3
ffmpeg -hide_banner -y -i c6_1.mp3 -i ../../BGM/min/1.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 1.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 1.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*621[b];[a][b]overlay=(0):(329.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 1.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.988 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.988 d7_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.946939 -q:a 9 -acodec libmp3lame c7_1.mp3
ffmpeg -hide_banner -y -i c7_1.mp3 -i ../../BGM/min/3.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 1.6 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 1.6 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*855[b];[a][b]overlay=(0):(212.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 1.6 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 5.436 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 5.436 d8_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.146125 -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 3.96 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 3.96 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*748[b];[a][b]overlay=(0):(266)" -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.96 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 3.024 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 3.024 d9_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.886939 -q:a 9 -acodec libmp3lame c9_1.mp3
ffmpeg -hide_banner -y -i c9_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.54 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 3.54 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*709[b];[a][b]overlay=(0):(285.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.54 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 2.916 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 2.916 d10_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.463265 -q:a 9 -acodec libmp3lame c10_1.mp3
ffmpeg -hide_banner -y -i c10_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.9 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.9 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*702[b];[a][b]overlay=(0):(289)" -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.9 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 5.94 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 5.94 d11_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.534 -q:a 9 -acodec libmp3lame c11_1.mp3
ffmpeg -hide_banner -y -i c11_1.mp3 -i ../../BGM/min/1.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 1.35 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 1.35 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*461[b];[a][b]overlay=(0):(409.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 1.35 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.592 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.592 d12_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.617143 -q:a 9 -acodec libmp3lame c12_1.mp3
ffmpeg -hide_banner -y -i c12_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.08 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.08 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*678[b];[a][b]overlay=(0):(301)" -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.08 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 4.14 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 4.14 d13_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.075102 -q:a 9 -acodec libmp3lame c13_1.mp3
ffmpeg -hide_banner -y -i c13_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.4 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.4 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*717[b];[a][b]overlay=(0):(281.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 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 3.492 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 3.492 d14_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.686125 -q:a 9 -acodec libmp3lame c14_1.mp3
ffmpeg -hide_banner -y -i c14_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.5 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 4.5 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*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 4.5 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 3.132 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 3.132 d15_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.51102 -q:a 9 -acodec libmp3lame c15_1.mp3
ffmpeg -hide_banner -y -i c15_1.mp3 -i ../../BGM/min/8.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 5.28 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 5.28 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*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 5.28 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.7 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.7 d16_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.235918 -q:a 9 -acodec libmp3lame c16_1.mp3
ffmpeg -hide_banner -y -i c16_1.mp3 -i ../../BGM/min/2.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 1.68 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 1.68 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*705[b];[a][b]overlay=(0):(287.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 1.68 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.268 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.268 d17_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.734 -q:a 9 -acodec libmp3lame c17_1.mp3
ffmpeg -hide_banner -y -i c17_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 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 2.55 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*621[b];[a][b]overlay=(0):(329.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.55 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 3.924 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 3.924 d18_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.013265 -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 3.45 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 3.45 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*745[b];[a][b]overlay=(0):(267.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 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 4.068 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 4.068 d19_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.38102 -q:a 9 -acodec libmp3lame c19_1.mp3
ffmpeg -hide_banner -y -i c19_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 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 3.15 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*713[b];[a][b]overlay=(0):(283.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 d19_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 20_1.png -i 20_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 3.24 c20_1.mp4
ffmpeg -hide_banner -y -i c20_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 d20_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.257143 -q:a 9 -acodec libmp3lame c20_1.mp3
ffmpeg -hide_banner -y -i c20_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.72 c20_2.mp3
ffmpeg -hide_banner -y -f gif -i 20_3.gif -i c20_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.72 c20_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c20_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*709[b];[a][b]overlay=(0):(285.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.72 d20_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 21_1.png -i 21_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 3.24 c21_1.mp4
ffmpeg -hide_banner -y -i c21_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 d21_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.83102 -q:a 9 -acodec libmp3lame c21_1.mp3
ffmpeg -hide_banner -y -i c21_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 c21_2.mp3
ffmpeg -hide_banner -y -f gif -i 21_3.gif -i c21_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 3.6 c21_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c21_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*717[b];[a][b]overlay=(0):(281.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 d21_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -loop 1 -f image2 -framerate 1 -pix_fmt yuvj444p -i 22_1.png -i 22_2.mp3 -c:v libx264 -c:a copy -map 0:0 -map 1:a -s 720x1280 -t 1.872 c22_1.mp4
ffmpeg -hide_banner -y -i c22_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 d22_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.834 -q:a 9 -acodec libmp3lame c22_1.mp3
ffmpeg -hide_banner -y -i c22_1.mp3 -i ../../BGM/min/1.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 1.65 c22_2.mp3
ffmpeg -hide_banner -y -f gif -i 22_3.gif -i c22_2.mp3 -vf scale=420:-2,format=yuv420p -c:v libx264 -c:a copy -map 0:0 -map 1:a -t 1.65 c22_2.mp4
ffmpeg -hide_banner -y -i ../../img/back_gif.png -i c22_2.mp4 -filter_complex "[0:v]scale=720:1280[a];[1:v]scale=720*668[b];[a][b]overlay=(0):(306)" -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.65 d22_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 3.158 -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.158 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.158 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/5.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 ../5.mp4
del *.mp4 /q
pause
exit

素材和用时

文字(2.448秒):看我的霹雳舞式呼啦圈!

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

文字(2.7秒):你以为我会乖乖地钻圈吗?

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

文字(2.016秒):闺女,你头真硬。

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

文字(1.98秒):弟弟,你先走!

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

文字(2.736秒):女孩子就是要好好打扮。

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

文字(2.808秒):没有什么能阻止上班族工作。

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

文字(1.764秒):早就看不惯你了!

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

文字(2.988秒):听说你最近颈椎不太好受。

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

文字(5.436秒):不要跟女朋友犟嘴,否则你永远不知道下一秒会经历什么。

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

文字(3.024秒):小车开得不错啊,极具美感。

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

文字(2.916秒):跳的很带劲,看的很懵逼。

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

文字(5.94秒):乍一看以为是高科技产物,仔细一看原来还有小毛腿。

动态图片(1.35秒):http://jvhao.com/gif.php?file=9dd7a88a-5c4e-4225-a348-12d26b9f8391.gif

文字(2.592秒):放开我,我还要玩耍!

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

文字(4.14秒):三个女人一台戏,三个男人鸡飞狗跳。

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

文字(3.492秒):这个冲浪板我怎么看着那么眼熟呢?

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

文字(3.132秒):前方一个笨笨的挖掘机摔倒了。

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

文字(2.7秒):孩子不要也不能这样扔啊。

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

文字(2.268秒):爸!你想干嘛!

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

文字(3.924秒):高尔夫球就这样变成了一项投掷运动。

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

文字(4.068秒):摔了的人可能还不知道自己是怎么摔的。

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

文字(3.24秒):你得罪了谁,他要这么恶搞你。

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

文字(3.24秒):姜还是老的辣,你妈永远是你妈。

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

文字(1.872秒):鱼都听不下去了!

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

返回首页