Opened 5 years ago

Closed 5 years ago

#4420 closed defect (fixed)

nvenc -> h264 profile level not work correctly

Reported by: michbott Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: nvenc
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Now the select of profile:v work, the other problem is the level is alaway set at 3.1 and if change to 5.1 alway 3.1.

Have make a test wehn convert file (nvenc h264) set to profile:v high -level 5.1 , but not work. alway 3.1 is selected

Change History (6)

comment:1 Changed 5 years ago by michbott

Have make test whit :

ffmpeg -i "udp://@:1234?fifo_size=5000000&overrun_nonfatal=1" -map 0:p:7140:0 -map 0:p:7140:1 -acodec libfdk_aac -ac 2 -ar 44100 -ab 96k -vcodec nvenc -gpu 1 -aspect 16:9 -s 1280x720 -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize:v 3000k -r 25 -g 150 -keyint_min 50 -profile:v main -level 5.1 -preset hq /home/test/testgit_main.mp4

result :

ID : 1
Format : AVC
Format/Info? : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames? : 1 frame
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 37s 720ms
Bit rate : 1 493 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.065
Stream size : 6.71 MiB (94%)
Color range : Limited

comment:2 Changed 5 years ago by oromit

While the nvenc api does have support for setting a level, the last time i tested that it was entirely ignored and the level auto-selected based on the encode settings. So it's currently not implemented at all and allways left on autoselect.

I will add support for the option, but i can't promise it will do anything.

comment:3 Changed 5 years ago by michbott

ok if is possible perfect if not no problem. ;)

comment:4 Changed 5 years ago by cehoyos

  • Keywords nvenc added
  • Version changed from unspecified to git-master

comment:6 Changed 5 years ago by michbott

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.