Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Conversation

@RomanArzumanyan
Copy link
Contributor

Fixes:

New features:

  • New enum TaskExecInfo introduced which has more detailed information about task execution.
  • PyNvDecoder and PyFFmpegDecoder classes now return tuple. First tuple element is the argument method returned before this PER, second tuple element is of type TaskExecInfo.

Caveats:

  • Breaks PyNvDecoder and PyFFmpegDecoder API backward compatibility.

Code example:

nvDec = nvc.PyNvDecoder(input="/path/to/video.mkv", gpu_id=0)
surf, info = nvDec.DecodeSingleSurface()
if not surf.Empty():
    print(info)
    # shall output nvc.TaskExecInfo.SUCCESS

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Way to distinct EOF and decoding error

1 participant