Re: [FFmpeg-trac] #6476(avcodec:new): NVENC: "InitializeEncoder failed" error occurs when level 5.2 is specified

2020-07-03 Thread FFmpeg
#6476: NVENC: "InitializeEncoder failed" error occurs when level 5.2 is 
specified
-+---
 Reporter:  alexpigment  |Owner:
 Type:  enhancement  |   Status:  new
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  nvenc|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by hydra):

 I tried it and am happily transcoding videos with this combination of
 BRAND NEW ffmpeg options
 {{{
 -preset p7 -multipass fullres -rc:v vbr -cq:v 24 -qmin 16 -qmax 48
 -b:v 3746899 -minrate:v 749379 -maxrate:v 7493798 -bufsize 7493798
 -profile:v high -level 5.2
 -movflags +faststart+write_colr
 }}}
 which seems to work (the bitrate selection is auto per-video via a
 script).

 No idea if it's a valid combination of options, but something comes out
 the other end :)

 So, -level 5.2 works now.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-trac] #6476(avcodec:new): NVENC: "InitializeEncoder failed" error occurs when level 5.2 is specified

2020-07-02 Thread FFmpeg
#6476: NVENC: "InitializeEncoder failed" error occurs when level 5.2 is 
specified
-+---
 Reporter:  alexpigment  |Owner:
 Type:  enhancement  |   Status:  new
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  nvenc|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by hydra):

 I see changes also ligning with the sdk10 changes :)
 Thank you !!

 
https://git.videolan.org/?p=ffmpeg.git;a=blobdiff;f=libavcodec/nvenc_h264.c;h=de8f4bd180550301f2a5dfefd131f8affb16ad5a;hp=0c1a32178c71aff4c46f1e014218cfa757be5bbe;hb=3223f6b32d5d60c73b1e14475d4751770ae9344d;hpb=9115d7722205590b8601d87146087f3559d29d54

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-trac] #6476(avcodec:new): NVENC: "InitializeEncoder failed" error occurs when level 5.2 is specified

2020-06-15 Thread FFmpeg
#6476: NVENC: "InitializeEncoder failed" error occurs when level 5.2 is 
specified
-+---
 Reporter:  alexpigment  |Owner:
 Type:  enhancement  |   Status:  new
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  nvenc|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by hydra):

 Yes.  OK.

 As you mention, it would be good to fix, as the omissions remove capacity
 to specify a valid level lower than the prevailing "upper limit" level.

 I wonder if the code checks a specified/calculated level against what the
 installed hardware/driver allow as an upper limit ?

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-trac] #6476(avcodec:new): NVENC: "InitializeEncoder failed" error occurs when level 5.2 is specified

2020-06-15 Thread FFmpeg
#6476: NVENC: "InitializeEncoder failed" error occurs when level 5.2 is 
specified
-+---
 Reporter:  alexpigment  |Owner:
 Type:  enhancement  |   Status:  new
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  nvenc|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by heleppkes):

 specifying level only adds constraints, it does not lift them. So if you
 don't specify a level, it'll use the highest required for your content.

 That means that if you want to encode 5.2, there is no need to specify a
 level, since it'll automatically pick one.

 The only reason to specify a level is if you want to constraint yourself
 to a specific level and not accidentally go over it.

 The lack of th 5.2 level in nvenc_h264 should still be fixed, but its not
 necessarily required to specify it.

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-trac] #6476(avcodec:new): NVENC: "InitializeEncoder failed" error occurs when level 5.2 is specified

2020-06-15 Thread FFmpeg
#6476: NVENC: "InitializeEncoder failed" error occurs when level 5.2 is 
specified
-+---
 Reporter:  alexpigment  |Owner:
 Type:  enhancement  |   Status:  new
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  nvenc|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by hydra):

 Sadly, no I am not sure.   I do want to encode 4k using an nvidia 2060
 Super which I gather goes beyond level 5.1 and I have to leave off -level.

 The h.264 spec https://en.wikipedia.org/wiki/Advanced_Video_Coding#Levels
 says it goes to level 6.2,

 and the constants in https://github.com/FFmpeg/nv-codec-
 headers/blob/master/include/ffnvcodec/nvEncodeAPI.h specify up to 5.2 (it
 may be greater now with newer cards/drivers),

 however here
 https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/nvenc_h264.c (at
 least) it specifies only to level 5.1,

 Thus there seems to be some inconsistency at present.

 I'm unsure if the code otherwise checks and constrains it to what a driver
 may report (not sure where to look for that).

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-trac] #6476(avcodec:new): NVENC: "InitializeEncoder failed" error occurs when level 5.2 is specified

2020-06-15 Thread FFmpeg
#6476: NVENC: "InitializeEncoder failed" error occurs when level 5.2 is 
specified
-+---
 Reporter:  alexpigment  |Owner:
 Type:  enhancement  |   Status:  new
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  nvenc|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by cehoyos):

 Are you sure that the user option {{{level}}} (as far as it currently
 works) does what you want it to do?

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-trac] #6476(avcodec:new): NVENC: "InitializeEncoder failed" error occurs when level 5.2 is specified

2020-06-15 Thread FFmpeg
#6476: NVENC: "InitializeEncoder failed" error occurs when level 5.2 is 
specified
-+---
 Reporter:  alexpigment  |Owner:
 Type:  enhancement  |   Status:  new
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  nvenc|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---

Comment (by hydra):

 thank you

--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-trac] #6476(avcodec:new): NVENC: "InitializeEncoder failed" error occurs when level 5.2 is specified

2020-06-14 Thread FFmpeg
#6476: NVENC: "InitializeEncoder failed" error occurs when level 5.2 is 
specified
-+---
 Reporter:  alexpigment  |Owner:
 Type:  enhancement  |   Status:  new
 Priority:  wish |Component:  avcodec
  Version:  git-master   |   Resolution:
 Keywords:  nvenc|   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+---
Changes (by cehoyos):

 * keywords:  nvenc, h264, level, 5.2 => nvenc
 * priority:  normal => wish
 * version:  unspecified => git-master
 * component:  undetermined => avcodec
 * type:  defect => enhancement


--
Ticket URL: 
FFmpeg 
FFmpeg issue tracker
___
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".