Skip to content

Decoding frame, resizing, pointer forwarding, encodeing frame example needed. #3

@HEBOS

Description

@HEBOS

Hi @jlennox,

Thank you for clarifying this issue.
It is awesome, how much effort you have put into this project.
There is so much code inside.

My use case is simple:

  • grab frame by frame from the input video
  • convert it to RGBA
  • get the pointer of the frame which should still reside in device memory.
  • forward the frame to the Darknet (YOLOV wrapper) Detect method (the overload which accepts IntPtr as function argument).
  • resize image
  • write frame using NVIDIA encoder

All steps need to be performed in GPU, so no device-host copying should take place.

Is that possible with your project?
If yes, can you please provide some hints, or an example?

P.S.
It would be also also brilliant if GPU frame from your project can be converted to OpenCV GpuMat. The C# wrapper which can be used for that is EmguCV, so all other GPU operations can be done using EmguCV (i.e. OpenCV). The number of possible operations, which can be done on GpuMat by OpenCV is enormous.

Any help is appreciated.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions