So now that 4chan allows MP4 with H264 uploads, has anyone figured out how YIFY managed to cram 1080p movies into just 2Mbps with good quality? I found a 24Mbps (similar to a raw blu-ray) 1080p 30 fps test file with lots of detail and zooming which is difficult to compress.
https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_30MB.mp4
I made MP4 related with the following. The veryslow preset and 2 pass mode seem to be the bare minimum for a YIFY 1080p 2Mbps encode.
ffmpeg -i in.mp4 -c:v libx264 -b:v 2M -preset veryslow -pix_fmt yuv420p -an -y -pass 1 -f null -
ffmpeg -i in.mp4 -c:v libx264 -b:v 2M -preset veryslow -pix_fmt yuv420p -an -y -pass 2 out.mp4
ffmpeg -i out.mp4 -i in.mp4 -lavfi ssim=stats_file=ssim_logfile.txt -f null -
The important ssim score is the one that says ALL and I got this for MP4 related, which is pretty terrible. Meaning there must be something else YIFY is doing in addition to veryslow + 2-pass
SSIM 0.942575
https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/1080/Big_Buck_Bunny_1080_10s_30MB.mp4
I made MP4 related with the following. The veryslow preset and 2 pass mode seem to be the bare minimum for a YIFY 1080p 2Mbps encode.
ffmpeg -i in.mp4 -c:v libx264 -b:v 2M -preset veryslow -pix_fmt yuv420p -an -y -pass 1 -f null -
ffmpeg -i in.mp4 -c:v libx264 -b:v 2M -preset veryslow -pix_fmt yuv420p -an -y -pass 2 out.mp4
ffmpeg -i out.mp4 -i in.mp4 -lavfi ssim=stats_file=ssim_logfile.txt -f null -
The important ssim score is the one that says ALL and I got this for MP4 related, which is pretty terrible. Meaning there must be something else YIFY is doing in addition to veryslow + 2-pass
SSIM 0.942575