r/AV1 • • Oct 18 '26

Hardware Encoding for archiving

I have been ripping and compressing my blu ray collection into the AV1 format for file space savings. Some of them can be massive like a 90% compression.

I'm wondering what is the best hardware encoder for this. I have been using an Intel Lunar Lake CPU and the IGP on it. In handbrake I set it to the highest quality on most things but will set the q between 22 and 26. I have also been encoding the audio into opus stereo. No subtitles saved except for foreign films.

I'm wondering if maybe the nvidia AV1 hardware encoder is better, or if the snapdragon or apple hardware encoders are better. I also wonder about software encoding. If software encoding were 2x as long as hardware encoding that would be okay but it ends up being 10x as long.

So to recap, I've been using an intel Lunar Lake CPU's hardware AV1 encoder to compress my movie collection into AV1. I'm curious if there is a better encoder to use out there that can compress a movie in a reasonable amount of time.

18 Upvotes

43 comments sorted by

1

u/ExpressPost5048 Oct 26 '26

Thanks guys for this thread. It has changed how I am handling my collection. I’ve moved from the hardware encoder to the software encoder av1 svt 5 q26. On 4k rips the compression is really rather extreme, sometimes under 5%. With software being opened up in this way that leaves av2 wide open as it can run directly on the cpu and I don’t have to wait for a hardware encoder.

5

u/ChillFish8 Oct 18 '26

Apple does not have any hardware encoder for AV1

Unsure how the snapdragon chips are, but encode iirc is only on the laptops and for doing actual laptop things IMO the experience is still pretty bad not worth buying just for the encoder which is probably average at best.

Intel last I checked still holds the crown on the hardware encode side, followed by nvidia on the latest generation.

Software is still king as far as quality vs size, if you want to just encode once and be done with it, transparent quality on the Intel encoder when I last looked into it was still 2GB+ per 28 minute 1080p episode so you're not saving as much as you could be. svt-av1 forks particular HDR and Essential can still do 60 fps with a relatively performant CPU and a higher preset like 5 or 6.

Thing is really, once you've encoded and deleted the sources, any quality you lose you're going to have to live with, unless you go a get a copy of the source again, to me it is worth the slower processing time but knowing the quality is better for the given file size.

1

u/Famous_Tension9485 Oct 18 '26

What settings do.you use

3

u/ChillFish8 Oct 18 '26

large portion of my encoding is for Anime content to keep it in mind, but I use Sct-av1-essential (well technically a custom for to experiment with some things but doesn't matter for this case) two pass system doing target quality with CVVDP, first pass preset 6, second pass preset 2, CRF fitted along a curve to work out what CRF is best for each scene to meet the target quality metric.

The default parameters on essential will get you pretty far, they're not insane like svt-av1 base is. Personally lean towards tune 0 over tune 1.

For live action you probably want to lean towards svt-av1-tritium which is effective svt-av1-hdr X svt-av1-essential combined.

Denosising is single handily one of the biggest bitrate saves you can get because it removes a lot of entropy from the frames, using my own denoiser for that: https://github.com/ChillFish8/av-denoise

Debanding also can improve the quality a lot for anime specifically just because the banding tends to be bad on a lot of BDs.

Takes about 1hr per 1080p episode, so about 24 episodes done per day on my homelab server. About a 90-95% compression ratio for low to medium noise shows, heavy textured grain still run about 800-1GB and episode but still better than 6GB and ep. Could get smaller but that would remove more detail and my goal really is transparent or better quality.

1

u/BaseRape Oct 19 '26

What I use: Encoder: SVT-AV1 4.1.0 via ffmpeg, preset 4, CRF 16 , 10-bit (yuv420p10le),  default tune. Film-grain synthesis off and SVT's  built-in denoise off.     Grainy sources: I degrain before encoding with MVTools  MDegrain in VapourSynth, thSAD 200 (thsadc 200), with  16 px blocks, overlap 8 and search 4. It removes about half the grain and keeps  some of the film look. At the same CRF, files come out  around 60% smaller than encoding without it.     I only use it on films that score high on a  temporal-grain detector. Clean and digital sources are  encoded as-is.

10

u/TenSquare3 Oct 18 '26

No hardware encoder is particularly great for compression and archiving purposes. Even the latest Nvidia GPUs, which are some of the best around, are only at preset 8 to 10 in terms of quality using SW encoding, depending on the content type.

Good quality compression and archiving takes times. That being said CPUs have come a long way in the last 10 to 15 years and have significantly increases in speed. Modern CPUs can achieve around 4 to 7 fps at 4k at preset 4, and are much faster at 1080p.

If you're specifically looking for something to encode with, then I suggest some sort of modern mobile CPU processor, either Ryzen or Apple. They can encode at decent speeds, while also having good power efficiency, which means you can leave them running for long periods of time without it causing your power bill to spike.

3

u/Brave-History-4472 Oct 19 '26

Moderne cpu’s can do alot more fps than 4-7 on preset 4, i do that on preset 2, and get 20+ on preset 4

2

u/TenSquare3 Oct 19 '26

I have a modern CPU and it's decent, being a Ryzen 7 8745HX, but there are definitely stronger CPU's that are faster than mine.

I also use a lot of advanced options during my encodes which slow the encode a good amount as well. If I turned them all off, I'd be able to encode faster than what I mentioned earlier.

0

u/Famous_Tension9485 Oct 19 '26

I wouldn't mind cpu encoding if the times were reasonable but an encode that takes 50 minutes on the Intel hardware av1 encoder would take 10 hours running on CPU mode. And often something goes wrong on the encode for whatever reason

4

u/Feahnor Oct 19 '26

30 fps is very slow for hardware. I’m getting more than 90 fps on my intel arc.

1

u/TenSquare3 Oct 19 '26

Settings and resolution make a huge difference. That was done on the slowest setting and done at 4k. The same thing at 1080p would be similar to your 90 fps, maybe even a bit faster.

2

u/Feahnor Oct 19 '26

My 90 fps was at the slowest setting at 4K. Your 30 fps hardware encoding feels very very slow to me.

1

u/TenSquare3 Oct 19 '26

What were you encoding at the time? Did you use any advanced options?

The only way we'd be able to do an accurate direct speed comparison between our GPUs if we both encoded the same piece of media, in the same program at the same settings. Though you also have to take into account Intel and Nvidia use different encoders for their HW, which will result in some speed difference as well.

2

u/Thomasedv Oct 19 '26

Use something like Av1an, it splits the video into chunks and encodes them separately and then combines them afterwards. It is resumable in case of error and is excellent for multi-hour game recordings. 

It also has other functionality that is useful too. Particularly taking a vapoursynth input scripts, so I can normalize shadowplay to 60 FPS to avoid audio desync in encodings due to shadowplay actually being variable in framerate. 

3

u/TenSquare3 Oct 19 '26 edited Oct 19 '26

I wouldn't mind cpu encoding if the times were reasonable but an encode that takes 50 minutes on the Intel hardware av1 encoder would take 10 hours running on CPU mode.

This is completely BS, or you're making a very disingenuous comparison. Yes, HW encoding is faster, but it isn't 12x faster when comparing a modern GPU to a modern CPU, when using somewhat comparable settings.

Here's a quick comparison I did a little while ago at 4k on a 5 min clip. HW was done on a 5060ti and SW was done on a Ryzen 7 8745HX.

HW: done on the slowest preset at 24 CQ, averaged about 30fps and came out at 432 mb.

SW: done on the slow preset (preset 4) at 24 RF, averaged about 7fps and came out at 304 mb.

The speed difference was about 4.3x, but the encode came out at about 30% smaller on the SW encode and at a better quality. I also used a lot more advanced options in the SW encode, which would have slowed the encode down, using less would have resulted in a smaller speed difference.

To get a 12x difference in speed, you're either comparing a new GPU to an old CPU, or your running your HW encode on a fast preset, which is just going to be awful quality.

Images provided below and in the following comment. I can also count the number of times something went wrong on an encode on one hand and I've been encoding for years.

3

u/Sopel97 Oct 19 '26

Your comparison is invalid. Quality settings between encoders are not in any way comparable.

1

u/TenSquare3 Oct 20 '26

The comparison is to show that even on the best settings for HW encoding, it still comes out at worse quality and at a larger file size than a typical SW encode.

The difference between HW and SW encodes is so large, that I could of adjusted the settings of the SW to be much faster and it would still of been better than the HW encoding.

1

u/TenSquare3 Oct 19 '26

4

u/Suitable_Garlic_1186 Oct 19 '26

Fairy Tail Anime upscaled with Topaz and than raped with Handbrake.. Amazing 😂

-1

u/TenSquare3 Oct 19 '26

Topaz is very good for upscaling, it's used professionally all the time. After playing around with that specific Gaia model for a bit though, I wouldn't recommend it for general anime, since it splits it up into individual frames.

Handbrake is one of the most popular compression tools around, and you can get very good results with it, as long as you know what you're doing.

2

u/Sopel97 Oct 19 '26

Handbrake is one of the most popular compression tools around, and you can get very good results with it, as long as you know what you're doing.

well, you're using nvenc, so...

and no, topaz is not good, it's an easy mediocre tool. If you were doing proper upscales you wouldn't be complaining about encoding times even on svt-av1 preset 2

1

u/TenSquare3 Oct 20 '26

well, you're using nvenc, so...

and no, topaz is not good, it's an easy mediocre tool. If you were doing proper upscales you wouldn't be complaining about encoding times even on svt-av1 preset 2

Did you read the thread, like at all?

I'm not using nvenc at all, the entire thread is about how bad HW encoders are for compression and archiving. The screenshots I used were convenient one I had lying around from a while ago to show the difference between SW and HW encoders. The entire thread is me talking about how I use SW encoders and why I use them.

Where do I complain about encoding times? Seriously where??

Topaz is very good for upscaling. There are of course other good tools, but like anything it's how you use them.

I don't know why I'm bothering with this, when someone can't even read a thread, but I'll even upload a sample clip for you. This is a 9 min clip of a random episode of 86 - Eighty Six that was upscaled with Topaz and then compressed in Handbrake Essential using the CPU.

https://drive.google.com/file/d/1yzRBiD-N8wQHUDCvIWYt4rwwnWPT34kV/view?usp=sharing

1

u/Sopel97 Oct 20 '26

sorry for the confusion, didn't realize it was you replying to your own comment

1

u/TenSquare3 Oct 20 '26

It's all good, don't worry about it. I had to do that since I wasn't able to add multiple images to the same comment.

3

u/Suitable_Garlic_1186 Oct 23 '26

Your Blu-rays are the archive..

In fact, you are generating more data, because you are making (smaller) sized copies..

3

u/Suitable_Garlic_1186 Oct 19 '26 edited Oct 19 '26

If you are happy with the quality that is all that matters..

From my own testing AV1 is amazing!

One more comment: Your Blu-rays are the archive.. The AV1 versions are your daily driver copies! ❤️

2

u/Sopel97 Oct 19 '26 edited Oct 19 '26

if you're reencoding you're not archiving

you need to restate your goal such that it makes sense

1

u/pingwin4eg Oct 24 '26

They say "blu-ray collection", so it's not re-encoding.

1

u/Farranor Oct 24 '26

Blu-ray movies are lossily encoded using AVC or HEVC. More lossy encoding into AV1 is additional generation loss. Archival generally means storing the original, not a fun-size version for portability.

0

u/Sopel97 Oct 24 '26

dude it's in the first sentence

I have been ripping and compressing my blu ray collection into the AV1 format for file space savings.

1

u/[deleted] Oct 24 '26

[removed] — view removed comment

0

u/[deleted] Oct 24 '26

[removed] — view removed comment

2

u/Blue-Thunder Oct 20 '26

Zero. Do not use hardware encoding at all.

1

u/pingwin4eg Oct 24 '26

Just words?

2

u/fRzzy Oct 19 '26

I tried, hardware encoder image quality is too bad for this purpose.

2

u/Shermington Oct 19 '26

HW encoding isn't awful, but it's somewhere around preset 5-6 cpu svt-av1 compression, unless you get some exception when hw can't even encode it properly and it looks rather like preset 8-10, that actually might happen.

In my opinion when hw encoding is more important is 4k+ videos, especially if it's also 60+ fps. Modern cpu usually can get ~15 fps, and while it's not exceptionally fast, you still can encode in 2-4x of video duration. If you have bigger collections, you can do it slowly over several months, and you will end up with significantly lower filesize. However, with 4k (and especially 6-8k) videos, our 15fps can easily drop down to just several fps or even less. It's not feasible in my opinion for self collection, a single 2 hours movie would take 30+ hours of encoding. And then hw encoding that will result in higher filesize looks much more reasonable, it will be like 10-30% bigger, but it's going to be done in ~1 hour. Electricity cost of cpu encoding by itself might be higher than the cost of hdd space for the difference between the two.

1

u/ShelterThink3671 Oct 22 '26

硬件编码器的压缩质量不行。如果追求极致,还是用软件编码器吧。

1

u/Harry_Yudiputa Oct 23 '26

I started with HW encoding but for some reason it started changing art styles of bg assets. Always go CPU even at P6 or 8, it’ll be better.

Look into Autoboost Av1an or Essential on GitHub by LastBreeze. Create your own bat that you’re gonna be happy with.

1

u/NoiseSolitaire Oct 19 '26

It ultimately comes down to what artifacts you prefer. In my testing, Intel's HW AV1 encoder (at least on their dGPUs; I can't say for certain if it's the same on their CPUs/APUs) tended to give blocking artifacts, but retain more detail, than Nvidia's at similar, low bitrates. Nvidia's tends to smooth over things at low bitrate, giving less blocking but also losing more detail in the process. Personally I prefer Intel's HW AV1 encoder over Nvidia's, and I say that as someone that only has Nvidia GPUs paired with AMD CPUs in the last few PCs I've built for myself.

If you use enough bitrate, you can still get quality encodes out of a HW encoder, just they will typically be higher bitrate than what a software encoder can achieve for the same quality level. Of course, they're often significantly faster, so if the trade off is worth it to you, then go for it.

1

u/Piolodej Oct 19 '26

I did some tests and svt-av1 save up to 45% bitrate and nvidia encoder NVENC only 7% in comparisin to x264 veryslow.

1

u/valarauca14 Oct 19 '26

Intel QSV stuff works amazing in my personal PSNR & SSIM & VMAF tests.

The only downside is the quality & bitrate feedback mechanisms are somewhat lacking, so I wrote my own feedback loop to 'bump' the fixed quality if the PSNR for any on 1 section got too low.