Open Mojavve opened 2 months ago
Yeah this is a bug caused by using setpts with vp9 and vp8
https://trac.ffmpeg.org/ticket/11126
The previous workaround for this was able to remove setpts in most cases, in this one however it's central to the speed adjustment.
When encoding with vp8 or vp9 at an adjusted speed (I adjusted it to 0.5, with interpolation checked OFF ) the video that outputs is extremely low bitrate.
This result is extremely similar to what was experienced when the -psnr flag was initially updated here
1st pass:
Ffmpeg command: ffmpeg -y -i tempVideoFiles/0_testmp4_4.799347826086956_7.790701394585724_c0a5150cb0_1724365552_0.mp4 -filter_complex_script tempVideoFiles/filters_6.txt -map [outvfinal] -pass 1 -passlogfile tempVideoFiles/encoder_6.log -shortest -copyts -start_at_zero -c:v libvpx-vp9 -c:a libopus -stats -pix_fmt yuv420p -threads 4 -auto-alt-ref 6 -lag-in-frames 25 -quality good -flags +psnr -row-mt 1 -tile-columns 2 -tile-rows 0 -arnr-maxframes 7 -arnr-strength 5 -aq-mode 0 -tune-content film -enable-tpl 1 -frame-parallel 0 -metadata Title=test WmG -b:v 10240000.0 -an -sn -f null /dev/null
2nd pass:
Ffmpeg command: ffmpeg -y -i tempVideoFiles/0_testmp4_4.799347826086956_7.790701394585724_c0a5150cb0_1724365552_0.mp4 -filter_complex_script tempVideoFiles/filters_6.txt -map [outvfinal] -pass 2 -passlogfile tempVideoFiles/encoder_6.log -shortest -copyts -start_at_zero -c:v libvpx-vp9 -c:a libopus -stats -pix_fmt yuv420p -threads 4 -auto-alt-ref 6 -lag-in-frames 25 -speed 1 -quality good -flags +psnr -row-mt 1 -tile-columns 2 -tile-rows 0 -arnr-maxframes 7 -arnr-strength 5 -aq-mode 0 -tune-content film -enable-tpl 1 -frame-parallel 0 -metadata Title=test WmG -b:v 10240000.0 -an -sn tempVideoFiles/test_6.webm
filters_6.txt:
[0:v]tpad=stop=100:stop_mode=clone,trim=end=2.991353568498768[0vsc],[0vsc][0:a]concat=n=1:v=1:a=1[outvconcat][outaconcat],[outvconcat]setpts=2.0*PTS[outvpre],[outaconcat]atempo=0.5[outapre],[outvpre]null[outv],[outapre]anull[outa],[outv]null,null[outvfinal],[outa]anullsink
ffprobe test_6.webm: