>>65606298Yeah i know, the test was to test how bad it actually looked when i run a full minute long clip. The bitrate got nuked down to like 400 but it's almost usable.
My usual bash script:
>input='./ffmpeg/video.mp4'>output='./ffmpeg/output.webm'>TargetSize="3.99">duration=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 $input)>bitrate="$(awk "BEGIN {print int ($TargetSize * 1024 * 1024 * 8 / $duration /1000)}")k">ffmpeg -y -v error -i $input -c:v libvpx-vp9 -preset medium -b:v $bitrate -pass 1 -an -f webm /dev/null \>&& \>ffmpeg -y -i $input -c:v libvpx-vp9 -preset medium -b:v $bitrate -pass 2 -an "$output"