This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Trying to deinterlace with Bob NVEnc; job crashes
#39
(23.08.2021, 15:45)Selur Wrote: Sadly using:
-hwaccel auto -deint 2
instead of
-c:v h264_cuvid -deint 2
doesn't work.
So sadly, in case I would add "FFMPEG (cuvid)" as deinterlacer, it could only be used for specific formats.
  • av1_cuvid
  • h264_cuvid
  • hevc_cuvid
  • mjpeg_cuvid
  • mpeg1_cuvid
  • mpeg2_cuvid
  • mpeg4_cuvid
  • vc1_cuvid
  • vp8_cuvid
  • vp9_cuvid

Yes, I agree. So then
-c:v h264_cuvid -deint 2
or something similar, should be used.

In case the input format is not supported by CUVID, then CUVID should simply be grayed out or not available in Hybrid.

(23.08.2021, 15:45)Selur Wrote: So the user would need to specify:
  • the deinterlace mode
    • bob            1            .D.V....... Bob deinterlacing
    • adaptive        2            .D.V....... Adaptive deinterlacing
      • which field to drop first or second
  • the decoder to use

Hybrid would then upon job creationg need to check whether the input format matches the selected decoder and decline the job creation in case format and decoder type are not compatible.

Yes, the user should be able to specify the deinterlace mode. The deinterlacer doesn't need to drop fields, but that option can be implemented, for a more complete support.

Now, to the part where it seems overcomplicated, in my book. Why should the user specify the decoder from the long list, since there is only one that will work - that being the one made for the specific format used by the input file. So, the way I was thinking was for Hybrid to identify the input format, something it can seemingly already do, and decide which CUVID to use automatically, based on the identified format. Can't such thing be implemented?

(23.08.2021, 17:49)Selur Wrote: Any idea why:
ffmpeg -y -loglevel fatal -noautorotate -nostdin -threads 8 -i "G:\TestClips&Co\files\test.avi" -map 0:0 -an -sn -c:v mpeg4_cuvid -deint 1 -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p10le -strict -1 -vsync 0 -f yuv4mpegpipe - | ...
would abort with:
Quote:Unknown encoder 'mpeg4_cuvid'
mpeg4_cuvid is listed when using "ffmpeg -decoders".

Same with h264_cuvid:
ffmpeg -y -noautorotate -nostdin -threads 8 -r 30000/1001 -analyzeduration 24M -probesize 24M -i "G:\TestClips&Co\files\MPEG-4 H.264\00001.MTS" -map 0:0 -an -sn -c:v h264_cuvid -deint 1 -vf zscale=rangein=tv:range=tv -pix_fmt yuv420p10le -strict -1 -vsync 0 -f yuv4mpegpipe - |  ...
gives:
Quote:Unknown encoder 'h264_cuvid'

Are the cuvid decoders not usable with yuv4mpegpipe-pipe output?

They should be usable just fine with anything.

But the error says "encoder". CUVID is not an encoder, but a decoder. FFmpeg interprets your command as a request for an encoder named h264_cuvid, respectively mpeg4_cuvid. Those are not encoders, but rather decoders.
Reply


Messages In This Thread
Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 18.08.2021, 20:42
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 18.08.2021, 21:08
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 19.08.2021, 12:12
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 19.08.2021, 18:00
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 19.08.2021, 21:04
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 19.08.2021, 22:53
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 21.08.2021, 14:59
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 21.08.2021, 15:41
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 21.08.2021, 21:41
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 21.08.2021, 23:49
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 22.08.2021, 16:13
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 22.08.2021, 16:27
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 22.08.2021, 16:53
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 22.08.2021, 17:09
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 22.08.2021, 21:58
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 22.08.2021, 23:18
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 23.08.2021, 10:53
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 23.08.2021, 18:07
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 23.08.2021, 18:31
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 23.08.2021, 20:56
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 23.08.2021, 21:19
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 23.08.2021, 22:48
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 24.08.2021, 01:41
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 24.08.2021, 13:57
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 24.08.2021, 15:21
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 24.08.2021, 15:39
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 24.08.2021, 16:31
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 24.08.2021, 19:31
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 24.08.2021, 20:17
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 24.08.2021, 22:37
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 25.08.2021, 20:57
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 25.08.2021, 22:19
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 28.08.2021, 22:26
RE: Trying to deinterlace with Bob NVEnc; job crashes - by antoniu200 - 29.08.2021, 23:54

Forum Jump:


Users browsing this thread: 4 Guest(s)