Re: [FFmpeg-trac] #8254(undetermined:new): ffmpeg encoding with nvenc broken by a commit

2019-10-11 Thread FFmpeg
#8254: ffmpeg encoding with nvenc broken by a commit
-+-
 Reporter:  hydra|Owner:
 Type:  defect   |   Status:  new
 Priority:  important|Component:
 |  undetermined
  Version:  git-master   |   Resolution:
 Keywords:  regression   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-

Comment (by heleppkes):

 That seems like expected behavior. You are requesting a feature to be used
 which your hardware does not support. Just don't request multiple
 reference frames, since you hardware is clearly not capable of 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] #8254(undetermined:new): ffmpeg encoding with nvenc broken by a commit

2019-10-11 Thread FFmpeg
#8254: ffmpeg encoding with nvenc broken by a commit
-+-
 Reporter:  hydra|Owner:
 Type:  defect   |   Status:  new
 Priority:  important|Component:
 |  undetermined
  Version:  git-master   |   Resolution:
 Keywords:  regression   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-

Comment (by hydra):

 PS Thank you for your wonderful work !!!

--
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] #8254(undetermined:new): ffmpeg encoding with nvenc broken by a commit

2019-10-11 Thread FFmpeg
#8254: ffmpeg encoding with nvenc broken by a commit
-+-
 Reporter:  hydra|Owner:
 Type:  defect   |   Status:  new
 Priority:  important|Component:
 |  undetermined
  Version:  git-master   |   Resolution:
 Keywords:  regression   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-

Comment (by hydra):

 OK, it "breaks" on commit 567b5e33d9d77919ee920c091f4273c5b38fc821
 "avcodec/nvenc: add multiple reference frames support"
 Likely in here
 {{{
 +#ifdef NVENC_HAVE_MULTIPLE_REF_FRAMES
 +ret = nvenc_check_cap(avctx,
 NV_ENC_CAPS_SUPPORT_MULTIPLE_REF_FRAMES);
 +if(avctx->refs != NV_ENC_NUM_REF_FRAMES_AUTOSELECT && ret <= 0) {
 +av_log(avctx, AV_LOG_VERBOSE, "Multiple reference frames are not
 supported\n");
 +return AVERROR(ENOSYS);
 +}
 +#else
 +if(avctx->refs != 0) {
 +av_log(avctx, AV_LOG_VERBOSE, "Multiple reference frames need SDK
 9.1 at build time\n");
 +return AVERROR(ENOSYS);
 +}
 +#endif
 }}}


 On The Other Hand, if "-refs 3" is omitted from the commandline, it works
 on the 1050Ti.

 The nvidia support matrix https://developer.nvidia.com/video-encode-
 decode-gpu-support-matrix doesn't seem to mention refs.

 It seems possible that prior to this commit, "-refs 3" was ignored or
 perhaps defaulted to 0 ?

 In which case, maybe it's not a bug, just that the 1050Ti nvenc encoder is
 (was always invisibly?) not capable of it and ffmpeg just behaved
 differently before this commit.

 Perhaps some form of expanded error message may help ffmpeg users who
 newly encounter this error message when "it used to work".
 Say, something like
 "Multiple reference frames for nvenc are not supported on this model of
 nvidia hardware graphics card"

 Logs for this commit :

 {{{
 
--
 "C:\SOFTWARE\ffmpeg\0-homebuilt-x64\ffmpeg.exe" -nostats -v verbose
 -init_hw_device opencl=ocl:0.0 -filter_hw_device ocl -i
 "D:\temp\SCRATCH\demo1.mpg" -map_metadata -1 -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,format=pix_fmts=yuv420p,setdar=dar=16/9"
 -c:v h264_nvenc -pix_fmt nv12 -preset slow -bf 2 -g 50 -refs 3 -rc:v
 vbr_hq -rc-lookahead:v 32 -cq 22 -qmin 16 -qmax 25 -coder cabac -strict
 experimental -movflags +faststart+write_colr -profile:v high -level 5.1
 -af
 
loudnorm=I=-16:TP=0.0:LRA=11:measured_I=-24.17:measured_LRA=7.30:measured_TP=-5.13:measured_thresh=-34.87:offset=-0.19:linear=true:print_format=summary
 -c:a libfdk_aac -cutoff 18000 -ab 384k -ar 48000  -y "T:\HDTV\autoTVS-
 mpg\Converted\demo1.aac.mp4"
 ffmpeg version
 N-95125-g567b5e33d9-hydra/h_python_cross_compile_script_v02_courtesy
 Copyright (c) 2000-2019 the FFmpeg developers
   built with gcc 9.2.0 (GCC)
   configuration: --arch=x86_64 --target-os=mingw32 --cross-
 prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --disable-w32threads
 --enable-pthreads --enable-cross-compile --enable-pic --enable-libsoxr
 --enable-libass --enable-iconv --enable-libtwolame --enable-libzvbi
 --enable-libcaca --enable-libmodplug --enable-cuvid --enable-libmp3lame
 --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis
 --enable-libtheora --enable-libspeex --enable-libgsm --enable-libopus
 --enable-bzlib --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-libvo-amrwbenc --enable-libvpx --enable-libilbc --enable-
 libwavpack --enable-libwebp --enable-dxva2 --disable-avisynth --enable-
 vapoursynth --enable-gray --enable-libmysofa --enable-libflite --enable-
 lzma --enable-libsnappy --enable-libzimg --enable-libx264 --enable-libx265
 --enable-libaom --enable-libdav1d --enable-frei0r --enable-filter=frei0r
 --enable-librubberband --enable-libvidstab --enable-libxvid --enable-
 libgme --enable-runtime-cpudetect --enable-libfribidi --enable-gnutls
 --enable-gmp --enable-fontconfig --enable-libfontconfig --enable-
 libfreetype --enable-libbluray --enable-libcdio --disable-schannel
 --enable-ladspa --enable-libxml2 --enable-libdavs2 --enable-libopenmpt
 --enable-libxavs --enable-libxavs2 --enable-libsrt --enable-libmfx
 --enable-amf --enable-ffnvcodec --enable-cuvid --enable-opengl --enable-
 d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-gpl --extra-
 version='hydra/h_python_cross_compile_script_v02_courtesy
 _of_DeadSix27/python_cross_compile_script' --enable-avresample --pkg-
 config-flags=--static --extra-libs='-lpsapi -lintl 

Re: [FFmpeg-trac] #8254(undetermined:new): ffmpeg encoding with nvenc broken by a commit

2019-10-11 Thread FFmpeg
#8254: ffmpeg encoding with nvenc broken by a commit
-+-
 Reporter:  hydra|Owner:
 Type:  defect   |   Status:  new
 Priority:  important|Component:
 |  undetermined
  Version:  git-master   |   Resolution:
 Keywords:  regression   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-

Comment (by hydra):

 OK, I'll try each commit and omit --hide_banner an add to this report.

--
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] #8254(undetermined:new): ffmpeg encoding with nvenc broken by a commit

2019-10-11 Thread FFmpeg
#8254: ffmpeg encoding with nvenc broken by a commit
-+-
 Reporter:  hydra|Owner:
 Type:  defect   |   Status:  new
 Priority:  important|Component:
 |  undetermined
  Version:  git-master   |   Resolution:
 Keywords:  regression   |   Blocked By:
 Blocking:   |  Reproduced by developer:  0
Analyzed by developer:  0|
-+-
Changes (by cehoyos):

 * keywords:   => regression
 * version:  unspecified => git-master


Comment:

 Why don’t you tell us which commit broke encoding?
 Please provide understand that the {{{hide_banner}}} option makes all bug
 reports invalid.

--
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".