You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using VideoCapture with hardware acceleration in a C# Windows Forms based application. The application is successfully invoking the nVidia decoder to decode 1080p Full HD video.
Now I have to perform certain processing on the captured video frames from VideoCapture API. Main steps of GPU processing are:
VideoCapture using Hardware Acceleration
Upload frame to GPU
Main processing on GPU
Download image back to CPU
Display the videoframe in an ImageBox UI control
Write the video frame to H.264 encoded file using hardware acceleration
My code is not running in real time and there is latency introduced in the video. I profiled the code and came to the point that maximum time is utilized by the Uploading and Downloading of frame between CPU and GPU.
Is there any possibility to minimize that GPU and CPU transfers ? Is it possible that in VideoCapture() call I will get GPU frame rather than CPU frame ??
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am using VideoCapture with hardware acceleration in a C# Windows Forms based application. The application is successfully invoking the nVidia decoder to decode 1080p Full HD video.
Now I have to perform certain processing on the captured video frames from VideoCapture API. Main steps of GPU processing are:
My code is not running in real time and there is latency introduced in the video. I profiled the code and came to the point that maximum time is utilized by the Uploading and Downloading of frame between CPU and GPU.
Is there any possibility to minimize that GPU and CPU transfers ? Is it possible that in VideoCapture() call I will get GPU frame rather than CPU frame ??
Best Regards
SARAH
Beta Was this translation helpful? Give feedback.
All reactions