Opened 5 weeks ago

Closed 5 weeks ago

Last modified 5 weeks ago

#7100 closed enhancement (invalid)

Can "Loaded Nvenc version 8.1" now be 9.1 ?

Reported by: hydra3333 Owned by:
Priority: normal Component: build system
Version: git-master Keywords: Nvenc
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

When I use the nvidia NVENC encoder in a recently-compiled ffmpeg (NV headers copied from https://git.videolan.org/git/ffmpeg/nv-codec-headers.git), like this

ffmpeg.exe -hide_banner -v verbose -strict -1 -init_hw_device opencl=ocl:1.0 -filter_hw_device ocl -threads 0 -i "G:\test\test01.mp3.MP4.mp4" -threads 0 -sws_flags lanczos+accurate_rnd+full_chroma_int+full_chroma_inp -filter_complex "[0:v]yadif=0:0:0,hwupload,unsharp_opencl=lx=3:ly=3:la=0.5:cx=3:cy=3:ca=0.5,hwdownload" -c:v hevc_nvenc -pix_fmt yuv420p -profile:v main -level 5.1 -preset slow -rc vbr_hq -cq 26 -rc-lookahead 32 -spatial_aq 1 -color_range tv -colorspace bt470bg -c:a libfdk_aac -cutoff 18000 -ab 384k -ar 48000 -threads 0 -movflags +faststart -y "G:\test\test01.mp3.MP4.h265.mp4"

it says this

Press [q] to stop, ? for help
[h264 @ 000001a10307f680] Reinit context to 720x576, pix_fmt: yuv420p
[graph 0 input from stream 0:0 @ 000001a17fbe0480] w:720 h:576 pixfmt:yuv420p tb:1/25000 fr:25/1 sar:64/45 sws_param:flags=2
[hevc_nvenc @ 000001a10307a740] Loaded Nvenc version 8.1
[hevc_nvenc @ 000001a10307a740] Nvenc initialized successfully
[hevc_nvenc @ 000001a10307a740] 1 CUDA capable devices found
[hevc_nvenc @ 000001a10307a740] [ GPU #0 - < GeForce? GTX 1050 Ti > has Compute SM 6.1 ]
[hevc_nvenc @ 000001a10307a740] supports NVENC
[hevc_nvenc @ 000001a10307a740] AQ enabled.
[hevc_nvenc @ 000001a10307a740] Lookahead enabled: depth 32, scenecut enabled, B-adapt disabled.

which seems to indicate ffmpeg is using Nvenc version 8.1 ?

The latest driver "Nvidia Version 391.24 WHQL" Release Notes says

Software Module Versions

  • nView - 148.92
  • HD Audio Driver - 1.3.36.6
  • NVIDIA PhysX System Software - 9.17.0524
  • GeForce? Experience - 3.13.1.30
  • CUDA - 9.1

which seems to imply that support for Nvenc version 9.1 exists ?

What changes need to be made in order for 9.1 to be built into ffmpeg and/or invoked on the commandline ?

Thank you.

Change History (4)

comment:1 Changed 5 weeks ago by heleppkes

  • Resolution set to invalid
  • Status changed from new to closed

NVENC is not CUDA, and FFmpeg will automatically use the version the driver reports. There is nothing that needs doing anytime NVIDIA releases a new driver.

comment:2 Changed 5 weeks ago by hydra3333

OK, although the readme from that site says:

FFmpeg version of headers required to interface with Nvidias codec APIs.
Corresponds to Video Codec SDK version 8.0.14.
Minimum required driver versions:
Linux: 378.13 or newer
Windows: 378.66 or newer

which is an older version of the sdk. I'd hoped there was an official repository somewhere.

comment:3 Changed 5 weeks ago by heleppkes

8.0.14 is the latest SDK from NVIDIA. Fact-checking is important.

comment:4 Changed 5 weeks ago by hydra3333

EEk, so it is. Sorry.

I've re-joined nvidia site and will check it there form time to time.

Thank you.

Note: See TracTickets for help on using tickets.