有趣动态图片欣赏 第 8 期

脚本实现原理

ffmpeg脚本(需安装ffmpeg)

@echo off
path ../../ffmpeg/
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1 -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 1 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 1 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.952 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.952 d0_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.466125 -q:a 9 -acodec libmp3lame c0_1.mp3
ffmpeg -hide_banner -y -i c0_1.mp3 -i ../../BGM/min/7.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 5.28 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 5.28 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 5.28 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.628 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.628 d1_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.856939 -q:a 9 -acodec libmp3lame c1_1.mp3
ffmpeg -hide_banner -y -i c1_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.51 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.51 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*724[b];[a][b]overlay=(0):(278)" -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.51 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 3.096 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 3.096 d2_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.987143 -q:a 9 -acodec libmp3lame c2_1.mp3
ffmpeg -hide_banner -y -i c2_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.45 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 2.45 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*580[b];[a][b]overlay=(0):(350)" -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.45 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.124 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.124 d3_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.884 -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.7 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.7 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*728[b];[a][b]overlay=(0):(276)" -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 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.628 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.628 d4_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.496939 -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.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 2.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*682[b];[a][b]overlay=(0):(299)" -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.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 4.428 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 4.428 d5_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.837143 -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 4.3 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 4.3 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*714[b];[a][b]overlay=(0):(283)" -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 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 2.88 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 2.88 d6_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.163265 -q:a 9 -acodec libmp3lame c6_1.mp3
ffmpeg -hide_banner -y -i c6_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.6 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.6 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*580[b];[a][b]overlay=(0):(350)" -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.6 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.816 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.816 d7_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.15102 -q:a 9 -acodec libmp3lame c7_1.mp3
ffmpeg -hide_banner -y -i c7_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.92 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 4.92 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*711[b];[a][b]overlay=(0):(284.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.92 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 3.42 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 3.42 d8_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.864 -q:a 9 -acodec libmp3lame c8_1.mp3
ffmpeg -hide_banner -y -i c8_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.68 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 1.68 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*822[b];[a][b]overlay=(0):(229)" -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 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 5.436 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 5.436 d9_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.406125 -q:a 9 -acodec libmp3lame c9_1.mp3
ffmpeg -hide_banner -y -i c9_1.mp3 -i ../../BGM/min/7.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 5.22 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 5.22 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*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.22 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 1.98 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 1.98 d10_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 3.106939 -q:a 9 -acodec libmp3lame c10_1.mp3
ffmpeg -hide_banner -y -i c10_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.76 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.76 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*722[b];[a][b]overlay=(0):(279)" -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.76 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 4.176 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 4.176 d11_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.83102 -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.6 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.6 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*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 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.772 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.772 d12_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.326125 -q:a 9 -acodec libmp3lame c12_1.mp3
ffmpeg -hide_banner -y -i c12_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.14 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 4.14 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*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.14 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 2.904 -q:a 9 -acodec libmp3lame c13_1.mp3
ffmpeg -hide_banner -y -i c13_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.72 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 3.72 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*775[b];[a][b]overlay=(0):(252.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 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 2.917143 -q:a 9 -acodec libmp3lame c14_1.mp3
ffmpeg -hide_banner -y -i c14_1.mp3 -i ../../BGM/min/5.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 4.38 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.38 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*722[b];[a][b]overlay=(0):(279)" -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.38 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.664 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.664 d15_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.546939 -q:a 9 -acodec libmp3lame c15_1.mp3
ffmpeg -hide_banner -y -i c15_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.2 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 1.2 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*724[b];[a][b]overlay=(0):(278)" -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.2 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.628 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.628 d16_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.184 -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 3 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 3 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*443[b];[a][b]overlay=(0):(418.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 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.52 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.52 d17_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.686125 -q:a 9 -acodec libmp3lame c17_1.mp3
ffmpeg -hide_banner -y -i c17_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 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 4.5 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*792[b];[a][b]overlay=(0):(244)" -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 d17_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.298 -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.298 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.298 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/8.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 ../8.mp4
del *.mp4 /q
pause
exit

素材和用时

文字(2.952秒):原来你抱着我只是为了挡手机。

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

文字(2.628秒):真正的大佬都是一气呵成。

动态图片(3.51秒):http://jvhao.com/gif.php?file=2qswjn9DH1Q7RvPGsbx6jPiMH5t7CLfY.gif

文字(3.096秒):看到购物车里的东西降价的你。

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

文字(2.124秒):半路杀出个程咬猪。

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

文字(2.628秒):没有什么能阻拦我玩手机。

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

文字(4.428秒):每一个敢坐在第一排的同学,都不是一般人。

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

文字(2.88秒):胖虎的头掉了,吓死我了

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

文字(3.816秒):有玻璃怎么不说一声,鼻子快撞掉了。

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

文字(3.42秒):是什么让你对自己的体重如此自信?

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

文字(5.436秒):这年头为了谋生干脆面也得会一门技术,比如卖萌。

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

文字(1.98秒):墙都不扶就服你!

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

文字(4.176秒):原谅我不厚道的笑了,摔个标准的狗啃泥。

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

文字(2.772秒):这位大哥你要不要这么嗨。

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

文字(2.952秒):逗狗就逗狗,往墙上撞什么。

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

文字(3.492秒):大哥看不下去你这闷骚的样子了。

动态图片(4.38秒):http://jvhao.com/gif.php?file=0VkiVo9hO0e4bSXlry3DAJMvPY2YnIq6.gif

文字(2.664秒):送你一个章鱼,快收下吧!

动态图片(1.2秒):http://jvhao.com/gif.php?file=7FPFhrofzlYWlx8hMTHD9dkLM258O4xs.gif

文字(2.628秒):像我这么低调的人不多了。

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

文字(2.52秒):这是飞车节目看多了吧

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

返回首页