如果我想模糊椭圆区域,我遇到了 ffmpeg boxblur 的问题。如果您有 1 或 5 个模糊间隔,则没问题,但如果您有 90 分钟的电影和 150 个间隔,它可能工作 > 6 小时。即使您有> 150个间隔,方形模糊也没有问题,但我使用椭圆。我该怎么做?
截断的命令(原始太长):
ffmpeg -y -i /data/www/records/streams/ftp/1100921_test.mp4 -loop 1 -i /tmp/tmpmajq7xhk/mask_for_1100921_test_1.png -loop 1 -i /tmp/tmpmajq7xhk/mask_for_1100921_test_2.png -loop 1 -i /tmp/tmpmajq7xhk/mask_for_1100921_test_3.png -loop 1 -i /tmp/tmpmajq7xhk/mask_for_1100921_test_4.png -loop 1 -i /tmp/tmpmajq7xhk/mask_for_1100921_test_5.png ..... -filter_complex "[0]crop=353:373 :685:58, boxblur=20:enable='between(t,189.441341,189.781339)'[1];[0][1]overlay=685:58:enable='between(t,189.441341,189.781339)'[ 2];[0]crop=353:373:674:93, boxblur=20:enable='between(t,189.781339,189.901336)'[3];[2][3]overlay=674:93:enable= '介于(t,189.781339,189.901336)'[4];[0]crop=353:373:671:125, boxblur=20:enable='between(t,189.901336,190.001332)'[5];[4] [5]overlay=671:125:enable='介于(t,189.901336,190.001332)'[6];[0]crop=353:373:671:154, boxblur=20:enable='between(t,190.001332,190.09133)'[7];[6][7]overlay=671:154:enable ='介于(t,190.001332,190.09133)'[8];[0]crop=353:373:656:183,boxblur=20:enable='介于(t,190.09133,190.151327)'[9];[8 ][9]overlay=656:183:enable='between(t,190.09133,190.151327)'[10];[0]crop=353:373:668:213 ..... -map 0:a -c :v h264_nvenc -c:a 复制 -movflags +faststart /data/www/records/streams/ftp/1100921_test.mp4_out.mp4一个副本 -movflags +faststart /data/www/records/streams/ftp/1100921_test.mp4_out.mp4一个副本 -movflags +faststart /data/www/records/streams/ftp/1100921_test.mp4_out.mp4