Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > VP9 and AV1

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th April 2024, 19:50   #1  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 378
Lossless AV1 encoding

SVT-AV1 doesn't support it.

Rav1e neither.

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?
Code:
ffmpeg -i input.mp4  -f framemd5 input.txt
ffmpeg -i output.mp4 -f framemd5 output.txt
Are there any free lossless AV1 encoders?

Last edited by birdie; 15th April 2024 at 20:01.
birdie is offline   Reply With Quote
Old 15th April 2024, 21:05   #2  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 770
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

Last edited by Jamaika; 15th April 2024 at 21:08.
Jamaika is offline   Reply With Quote
Old 15th April 2024, 21:55   #3  |  Link
birdie
Artem S. Tashkinov
 
birdie's Avatar
 
Join Date: Dec 2006
Posts: 378
I'm not sure how to read your message. I'm talking about encoding video.
birdie is offline   Reply With Quote
Old 16th April 2024, 17:00   #4  |  Link
Jamaika
Registered User
 
Join Date: Jul 2015
Posts: 770
These are lossless photos. Video I don't know. I-frames
Jamaika is offline   Reply With Quote
Old 24th April 2024, 20:05   #5  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,876
Quote:
Originally Posted by Jamaika View Post
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?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 31st July 2024, 21:27   #6  |  Link
Balling
Registered User
 
Join Date: Feb 2020
Posts: 552
Quote:
Originally Posted by birdie View Post
SVT-AV1 doesn't support it.

Rav1e neither.

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?
Code:
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
Balling is offline   Reply With Quote
Reply

Tags
lossless encoding

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:07.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.