Opened 11 months ago

Last modified 11 months ago

#10409 open defect

Cuvid decoder with bob deint errror after #402d98c commit

Reported by: laurfb Owned by: r.arzumanyan@visionlabs.ai
Priority: normal Component: ffmpeg
Version: git-master Keywords: cuvid decoder
Cc: laurfb Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi.
Some trouble with cuvid decoder with bob deint after commit 402d98c (cuvid parser).
Conversion fail with error message: "[vist#0:0/mpeg2video @ 00000273e95afd40] A decoder returned an unexpected error code. This is a bug, please report it."
No error if I remove the "-deint bob" option.

How to reproduce:
ffmpeg.exe -c:v mpeg2_cuvid -deint bob -i e:\input.mpg -c:v h264_nvenc -y output.mp4 -loglevel 99 -report

Please find attached the report log files for both ffmpeg version (before and after commits).
GTX1080, driver version 535.98
ffmpeg compiled with the latest media-autobuild_suite script.
regards,
Laur

Attachments (2)

ffmpeg_cuvid_Error.zip (3.6 KB ) - added by laurfb 11 months ago.
ffmpeg_cuvid_Ok.zip (259.5 KB ) - added by laurfb 11 months ago.

Download all attachments as: .zip

Change History (9)

by laurfb, 11 months ago

Attachment: ffmpeg_cuvid_Error.zip added

by laurfb, 11 months ago

Attachment: ffmpeg_cuvid_Ok.zip added

comment:1 by laurfb, 11 months ago

Summary: Cucid with bod deint errror after #402d98c commitCuvid decoder with bob deint errror after #402d98c commit

comment:2 by Balling, 11 months ago

Owner: set to Timo R.
Status: newopen

comment:3 by laurfb, 11 months ago

Updates: Seems that 402d98c commit set an incorrect decoding surfaces value, below the one needed by deint option.

Workaround
Manualy set surfaces to a working values, even if the surfaces option is listed as deprecated:

ffmpeg.exe -c:v mpeg2_cuvid -deint bob -surfaces 12 -i e:\input.mpg -c:v h264_nvenc -y output.mp4

In my case minimal working value was 9.
Regards,
Laur

comment:4 by Balling, 11 months ago

Can be reproduced with sample from comment: https://trac.ffmpeg.org/ticket/8437#comment:1 (that is https://samples.ffmpeg.org/ffmpeg-bugs/roundup/issue562/widescreen-issue562.mpg). Minimal working value is also 9.

Last edited 11 months ago by Balling (previous) (diff)

comment:5 by Balling, 11 months ago

Manualy set surfaces to a working values, even if the surfaces option is listed as deprecated:

It is possible this is related to trying to fix this insane issue: #8948.

It is very hard to remember all the parameters and how they interact.

comment:6 by Balling, 11 months ago

Same happens with this H264 sample: ​https://github.com/Svechnikov/ffmpeg-cuda-deinterlace-problems/blob/master/samples/input/weave-problem.ts

ffmpeg.exe -c:v h264_cuvid -deint bob -surfaces 8 -i weave-problem.ts -c:v h264_nvenc -y output32r32.mp4

But not with surfaces 9.

comment:7 by Balling, 11 months ago

Owner: changed from Timo R. to r.arzumanyan@visionlabs.ai

Lets try this.

Note: See TracTickets for help on using tickets.