有趣动态图片欣赏 第 1 期

脚本实现原理

ffmpeg脚本(需安装ffmpeg)

@echo off
path ../../ffmpeg/
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.335 -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.335 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.335 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.08102 -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.85 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.85 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*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.85 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.312 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.312 d1_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.155918 -q:a 9 -acodec libmp3lame c1_1.mp3
ffmpeg -hide_banner -y -i c1_1.mp3 -i ../../BGM/min/2.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 2.6 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.6 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*694[b];[a][b]overlay=(0):(293)" -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 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.132 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.132 d2_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 3.284 -q:a 9 -acodec libmp3lame c2_1.mp3
ffmpeg -hide_banner -y -i c2_1.mp3 -i ../../BGM/min/1.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 4.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 4.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*687[b];[a][b]overlay=(0):(296.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.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.276 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.276 d3_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 13.425102 -q:a 9 -acodec libmp3lame c3_1.mp3
ffmpeg -hide_banner -y -i c3_1.mp3 -i ../../BGM/min/6.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 15.75 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 15.75 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*404[b];[a][b]overlay=(0):(438)" -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 15.75 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.672 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.672 d4_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 3.034 -q:a 9 -acodec libmp3lame c4_1.mp3
ffmpeg -hide_banner -y -i c4_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.85 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.85 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*700[b];[a][b]overlay=(0):(290)" -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.85 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.537143 -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 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 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*700[b];[a][b]overlay=(0):(290)" -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 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 2.634 -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 3.45 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 3.45 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*700[b];[a][b]overlay=(0):(290)" -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 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.844 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.844 d7_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.184 -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 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 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*700[b];[a][b]overlay=(0):(290)" -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 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.276 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.276 d8_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.846939 -q:a 9 -acodec libmp3lame c8_1.mp3
ffmpeg -hide_banner -y -i c8_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.5 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.5 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*732[b];[a][b]overlay=(0):(274)" -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 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 1.284 -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.1 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.1 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*826[b];[a][b]overlay=(0):(227)" -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.1 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.592 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.592 d10_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.534 -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.35 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.35 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*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.35 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 1.955918 -q:a 9 -acodec libmp3lame c11_1.mp3
ffmpeg -hide_banner -y -i c11_1.mp3 -i ../../BGM/min/2.mp3 -filter_complex "[0:0] [1:0] concat=n=2:v=0:a=1 [a]" -map [a] -t 2.4 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.4 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*687[b];[a][b]overlay=(0):(296.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 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.7 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.7 d12_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.63102 -q:a 9 -acodec libmp3lame c12_1.mp3
ffmpeg -hide_banner -y -i c12_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.4 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.4 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*698[b];[a][b]overlay=(0):(291)" -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.4 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.88 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.88 d13_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.496939 -q:a 9 -acodec libmp3lame c13_1.mp3
ffmpeg -hide_banner -y -i c13_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 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.15 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*686[b];[a][b]overlay=(0):(297)" -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 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.924 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.924 d14_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 0.386125 -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.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 4.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*583[b];[a][b]overlay=(0):(348.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.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 6.588 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 6.588 d15_1.mp4
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 2.48102 -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.25 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.25 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.25 d15_2.mp4
del c*_*.mp3 /q
del c*_*.mp4 /q
ffmpeg -hide_banner -y -f lavfi -i aevalsrc=0 -t 1.335 -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 1.335 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 1.335 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/1.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 ../1.mp4
del *.mp4 /q
pause
exit

素材和用时

文字(2.952秒):你们俩这样能走到多远的地方?

动态图片(3.85秒):http://jvhao.com/gif.php?file=8lLAfzwUbWQANMNUnhtaNMXGKk9u3qh1.gif

文字(3.312秒):垫子:别俯卧撑了,歇会吧!

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

文字(3.132秒):这位圣诞老人好像很闲的样子。

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

文字(3.276秒):忍者啊~​​​​越南特警的爬墙术

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

文字(3.672秒):妈,你看错了,刚才跳舞那个不是我。

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

文字(2.808秒):慌乱中还是要扶住我的车!

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

文字(2.88秒):这只大仓鼠显然已经晕了。

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

文字(2.844秒):我没想到对面全是泥!

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

文字(3.276秒):就算你是小青龙走路也要看道啊!

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

文字(3.024秒):想练举重还是去健身房吧。

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

文字(2.592秒):这车是从废品站捡的吧?

动态图片(3.35秒):http://jvhao.com/gif.php?file=8Uib9VZCXIr2XnnUQUzYFOfcyxJNiG7Y.gif

文字(2.52秒):你是刚来快餐店打工的吧!

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

文字(2.7秒):加油,你还能继续转圈。

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

文字(2.88秒):就是你把杆子掰成了双截棍?

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

文字(3.924秒):中了化骨绵掌,下楼梯也这么妖娆

动态图片(4.2秒):http://jvhao.com/gif.php?file=563iivzIAeVvtHRuFF1E2kUVT5Ckoe4T.gif

文字(6.588秒):快告诉我粑粑的拖鞋是谁咬的?承认的话我保证不打丝你!

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

返回首页