HandBrake icon indicating copy to clipboard operation
HandBrake copied to clipboard

NVEnc AV1 support ?

Open yami-no-tusbas opened this issue 2 years ago • 6 comments

Description of the feature or enhancement you'd like to see in HandBrake

The new 4000 series, have AV1 encode and decode acceleration, can we expect to see this implemented in HandBrake ? For now I only see H.264&H.265 Nvidia NVenc, no AV1.

What Operating System are you running?

Windows 11

What version of HandBrake are you running?

1.5.1

Where did you download HandBrake from?

https://handbrake.fr/

Activity Log, Crash Log or any other details

HandBrake 1.5.1 (2022011000)
OS: Microsoft Windows NT 10.0.22000.0
CPU: AMD Ryzen 7 1700 Eight-Core Processor          
Ram: 32680 MB, 
GPU Information:
  NVIDIA GeForce RTX 4090 - 31.0.15.2225
Screen: 2560x1440
Temp Dir: C:\Users\jacma\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\jacma\AppData\Roaming\HandBrake

-------------------------------------------
[19:07:21] Compile-time hardening features are enabled

yami-no-tusbas avatar Oct 14 '22 17:10 yami-no-tusbas

Eventually it would be good to see it supported, but I wouldn't expect it in the short term. It's probably not going to be part of the upcoming 1.6 release.

There is currently no support in upstream libraries and none of us have 40-series (and I suspect none of us have plans to buy either)

sr55 avatar Oct 14 '22 17:10 sr55

Currently NvEnc 7.00 (console application) is a tool for av1 Nvidia gpu encoding. But the developer does not have the latest and expensive Nvidia RTX 4090 to test and develop a stable av1 video encoder. Here you can find NvEnc 7.00: https://www.videohelp.com/software/NVEnc

Most of the video conversion tools need some time to support the new video standard av1. You can try the latest nightly ffmpeg encoder, too.

JamesPous avatar Oct 15 '22 16:10 JamesPous

I have a 4090 and could help with testing :)

Asghan86 avatar Nov 16 '22 07:11 Asghan86

https://github.com/FFmpeg/FFmpeg/commit/5c288a44ad16087c3d3a7563490cb634790e751f

The NVENC AV1 encoder has been added into the ffmpeg mainline.

nyanmisaka avatar Nov 16 '22 08:11 nyanmisaka

Any updates regarding this? My 4090 wants to do some AV1 encoding ;)

Asghan86 avatar Dec 05 '22 08:12 Asghan86

No updates yet. Please be patient.

sr55 avatar Dec 05 '22 17:12 sr55

The next snapshots (or the artifacts from the Actions section soon) will support the NVENC AV1 encoder. A big thanks to @theHamsta for the contribution.

galad87 avatar Mar 11 '23 15:03 galad87

@galad87 Can you link me to the snapshot that utilizes the NVENC AV1 encoder? I see FFmpeg 6 has finally been released. Thanks, in advance.

JJDizz1L avatar Jul 10 '23 02:07 JJDizz1L

https://github.com/HandBrake/HandBrake-snapshots

galad87 avatar Jul 10 '23 10:07 galad87

Have already transcoded my 1st video, playing around with settings now but looks great FYI

FleeceOfGideon avatar Jul 10 '23 15:07 FleeceOfGideon

@galad87 I am on Nightly 20230709131836-f462f7103-master (2023071001), is there any reason why the NVENC Hardware AV1 is not exposed to me?

image

JJDizz1L avatar Jul 10 '23 20:07 JJDizz1L

There is no AV1 hardware preset for NVEnc. Just create your own. You can start with the HEVC preset, change the encoder to the AV1 NVEnc encoder and then adjust the quality slider as desired. Then save it.

sr55 avatar Jul 10 '23 20:07 sr55

There is no AV1 hardware preset for NVEnc. Just create your own. You can start with the HEVC preset, change the encoder to the AV1 NVEnc encoder and then adjust the quality slider as desired. Then save it.

Right, and how one does go by doing that?

subspecs avatar Jul 27 '23 13:07 subspecs

There is no AV1 hardware preset for NVEnc. Just create your own. You can start with the HEVC preset, change the encoder to the AV1 NVEnc encoder and then adjust the quality slider as desired. Then save it.

Right, and how one does go by doing that? Screenshot 2023-07-27 151311 Make sure all of your settings are what you wish them to be before saving a template.

JJDizz1L avatar Jul 27 '23 19:07 JJDizz1L

There is no AV1 hardware preset for NVEnc. Just create your own. You can start with the HEVC preset, change the encoder to the AV1 NVEnc encoder and then adjust the quality slider as desired. Then save it.

Right, and how one does go by doing that? Screenshot 2023-07-27 151311 Make sure all of your settings are what you wish them to be before saving a template.

Ty, but @sr55 comment implies that you can get hardware support if you create your own preset. And I don't see the 'AV1 NVEnc encoder' in the encoder list. Running the latest snapshot and an RTX 4090 to boot.

subspecs avatar Jul 28 '23 10:07 subspecs

There is no AV1 hardware preset for NVEnc. Just create your own. You can start with the HEVC preset, change the encoder to the AV1 NVEnc encoder and then adjust the quality slider as desired. Then save it.

Right, and how one does go by doing that? Screenshot 2023-07-27 151311 Make sure all of your settings are what you wish them to be before saving a template.

Ty, but @sr55 comment implies that you can get hardware support if you create your own preset. And I don't see the 'AV1 NVEnc encoder' in the encoder list. Running the latest snapshot and an RTX 4090 to boot.

image I cannot make it more obvious than this.

JJDizz1L avatar Jul 28 '23 10:07 JJDizz1L

Trying out the latest snapshot on a 4070ti. The NVEnc encoder doesn't output video frames. A lot of avcodec_send_frame spam. Log attached. Chatpdf_Generation_encode_08.23.2023_04-08-18.txt

Alaric323 avatar Aug 23 '23 08:08 Alaric323

Fixed in 593de95

galad87 avatar Aug 31 '23 15:08 galad87