View Full Version : Lossless AV1 encoding
birdie
15th April 2024, 19:50
SVT-AV1 doesn't (https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues/1636) support it.
Rav1e neither (https://github.com/xiph/rav1e/issues/151).
libaom-av1 in my own testing (yuv420p10le source, ffmpeg 6.1.1 params: -c:v libaom-av1 -crf 0 -aom-params lossless=1; libaom-3.8.2) produces lossless output only for I (key) frames.
How did I verify?
ffmpeg -i input.mp4 -f framemd5 input.txt
ffmpeg -i output.mp4 -f framemd5 output.txt
Are there any free lossless AV1 encoders?
Jamaika
15th April 2024, 21:05
https://gitlab.com/AOMediaCodec/avm/-/commits/main
av2enc_avx.exe -q 100 -444 -size 280x420 -effort 7 -thread 4 -tune ssim input.png/jxl/tiff/wp2 -d output.av2
avifenc_avm_avx.exe -c avm -l -d 8 -y 444 -r full -s 7 -j 4 input.jpg output.avif
birdie
15th April 2024, 21:55
I'm not sure how to read your message. I'm talking about encoding video.
Jamaika
16th April 2024, 17:00
These are lossless photos. Video I don't know. I-frames
benwaggoner
24th April 2024, 20:05
These are lossless photos. Video I don't know. I-frames
The benefit of interframe encoding for natural image content is a lot smaller for lossless than for lossy. Encoding and decoding are much faster as well.
It's quite common for distribution encoders to not support lossless. As the original reference encoder, I imagine libaom would support it.
What's your scenario for lossless interframe AV1 encoding?
Balling
31st July 2024, 21:27
SVT-AV1 doesn't (https://gitlab.com/AOMediaCodec/SVT-AV1/-/issues/1636) support it.
Rav1e neither (https://github.com/xiph/rav1e/issues/151).
libaom-av1 in my own testing (yuv420p10le source, ffmpeg 6.1.1 params: -c:v libaom-av1 -crf 0 -aom-params lossless=1; libaom-3.8.2) produces lossless output only for I (key) frames.
How did I verify?
ffmpeg -i input.mp4 -f framemd5 input.txt
ffmpeg -i output.mp4 -f framemd5 output.txt
Are there any free lossless AV1 encoders?
This was a known bug, update ffmpeg or use -aom-params lossless=1 for older ffmpeg before 288ca1c66740640d5742f2921efbf502d83f8b6a commit.
https://trac.ffmpeg.org/ticket/7600
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.