r/AV1 • • 8d ago

HDLight encode ?

Hello.

For the past few days, I've been testing AV1 encoding with StaxRip I'd like to create HDLight 1080p rips from UHD Blu-ray discs, with a bitrate just under 4'000 Kbps. (Tone Mapping / BT-709 / 10-bit)

I’d like to know which variant is best suited

(SVT-AV1-Essential / SVT-AV1-PSYEX / SVT-AV1-PSY / SVT-AV1, HDR / SVT-AV1-Tritium) as well as the encoding settings to get results as close to the original as possible—especially if the film has grain. Thank you

Translated with DeepL.com (free version)

5 Upvotes

12 comments sorted by

5

u/blu3ysdad 8d ago

Cut a 30 second clip of video where you are most concerned about image quality and test with each variant.

1

u/The_vexxd 7d ago

Svt-av1-psy have closed And svt-av1-psyex is taking its time... I think it was abandoned, I don't know. Options are svt-av1-hdr, svt-av1-tritium, and svt-av1-essential. I've only tried svt-av1-hdr and it was a good experience, Although it's difficult to recommend which parameters to use because I'm not an expert and I would need to take a look at the source to be encoded and I also don't know how to properly encode film grain. I generally use avlan with the source loaded in a Vapoursynth script with denoising that could potentially be inconvenient, You can also use other filters like a degrain filter.

I recommend starting with the parameters;

--preset 4 until 2

--complex-hvs 1

--tune 0 or --tune 6 (which should be film grain tune)

--crf 28 - 24

--hbd-mds 1

--qm-min 4 - 8 and --qm-max 15

--chroma-qm-min 10 and --chroma-qm-max 15

Set a 10-second keyint to improve compression efficiency. --keyint 10s Although I believe that's the default value.

Consider not using --film-grain-denoise 1 because it's not very good. Using --film-grain is a bit tricky because I feel it penalizes encoding speed. I usually use another fgs alternative like photon noise in avlan or grain table.

You can also experiment with --luminance-qp-bias and --qp-scale-compress.

I recommend that you do tests with video fragments that are difficult to encode, zooming in If possible to determine if the quality is good.

Svt-av1-hdr has parameters enabled by default, You can read a bit of the repository's readme on GitHub to learn more.

1

u/Significant_Oven4919 5d ago

Current mainline SVT-AV1 is a reasonable baseline. Compare grain synthesis on and off at your target bitrate using the same tone-mapped 1080p scene. Judge it in motion: synthesis recreates grain, so it won’t preserve the source’s exact grain pattern.

1

u/CariniFluff 1d ago edited 1d ago

My personal settings for 1080p using Essential are:

Left panel:

  • Source Automatic
  • Crop Crop
  • Color BitDepth (fmtc) 10

Right panel:

  • Quality/CRF 25
  • Preset 4
  • Tune 1 PSNR
  • Fast Decode 2
  • Look Ahead 32 (max)
  • Film Grain 0

I always encode the audio to DDP for max support on TVs/streaming boxes /computers. Lately I've been dropping the bit rate from the default 64 0 to 448-512 kbps to easily be high enough quality and it only makes the files about 200-300 MB for a 2-hour movie, which is fine in my book. I try to stay away from AAC given older decoders drop very important advancements (SBR, heAAC, etc) and Opus is not widely supported still (IME).

On my 9800x3D I'm currently encoding at 37.6 FPS with a 3922 KB/s bit rate. Total file size projected to be 2,994 MB taking 62 minutes.

If a 1080p film is coming in at like 5000 kbps, I'll usually bump the quality up to 30 which will usually drop the bit right somewhere in the 3000s. I find films from the early '90s to the late 2000s to sometimes struggle with bit rate because the encoder detects noise (since the films were probably originally filmed for SD/DVD) and that ends up blowing up the file size. A slightly lower quality (higher CRF setting) will make it ignore those without losing detail otherwise.

1

u/Farranor 19h ago

What software are you using that still doesn't support Opus? And if you're avoiding both Opus and AAC, does that mean you're using mp3?

1

u/CariniFluff 7h ago edited 7h ago

No, hardware that doesn't know how to decode it.

I've run into a few older TVs or streaming boxes that can't do Opus or even FLAC. Was doing a deep dive on AAC last week to see if maybe the most recent versions (e.g. fdk-aac HE-AACv2) could replace Dolby Digital Plus, but Wikipedia essentially said that when any decoder doesn't support certain add-ons like Spectral Band Replication or Parametric Stereo, the decoder will just drop to the original core AAC and completely lose the compressed audio data (which is understandable but not something I'm willing to save 100 MB for).

I have yet to find any TV, streaming box, or PC that cannot decode Dolby Digital Plus so I guess I'll be dragged into the late 2020s kicking and screaming for compatibility's sake. Nothing worse than traveling for work and wanting to unwind and watch a show or movie only to find out that the crappy old device can't decode a 20-year-old codec.

1

u/Farranor 7h ago

Are you carrying your media on a USB drive and connecting it to TVs in hotels? And those devices can play AV1 but not Opus? That's unexpected.

1

u/CariniFluff 7h ago edited 7h ago

Plex. Direct Stream and DirectPlay usually required and no video transcoding. It's weird, I've seen it transcode audio occasionally, but again I've had hard stops where family cannot get Opus or FLAC to put out any audio (and Plex won't transcode it). Maybe it's something with Plex not being able to transcode those format?

It's just easier this way for me.

1

u/S_c_r_a_m_b_l_e_r 8d ago edited 8d ago

SVT-AV1-PSY is obsolete.

SVT-AV1-PSYEX is a good first pick.

SVT-AV1-Tritium is the second one.

Personally, I'd go with SVT-AV1-PSYEX and wouldn't bother with the rest.

Also, I'd use film grain synthesis instead of wasting bitrate on preserving it.

But if you want to preserve the original film grain, SVT-AV1-Tritium may be your primary choice.

The default preset and rate factor settings are a good place to start.

If you want to be picky, encode 10-30 second snippets of the most complex parts of your video (smooth gradients, dark scenes with flat areas and/or gradients, high motion), check the results, and adjust.

14

u/BlueSwordM 8d ago

Why would you even bother with svt-av1-psyex?

I haven't worked on the fork in a long ass time lmao.

0

u/S_c_r_a_m_b_l_e_r 8d ago

I've been encoding a lot of HD SDR videos with it recently, and I'm very happy with the results and speed.

3

u/BlueSwordM 6d ago

Well, if it works for you, I'm happy. It's just quite outdated at this point :)