Replies: 1 comment 9 replies
-
Any For the detail, do the data is copied, look at ffmpeg source, for example for |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two gpu and one video. The video can only decoder by intel grahpics. And my render gpu is nvidia gpu. So i use mpv to play this video with hwdec=auto. It will use qsv-copy to decode it. I want to know technical details.
According to my understanding, this implementation should involve using D3D11 to decode the video and obtain video frames, then using CopySubresourceRegion to copy them to a staging texture, followed by Map to load them into memory, and finally uploading them to an NVIDIA texture.
However, when I implemented this logic myself, GPU-CPU synchronization during copy and map operations caused time-consuming delays. But MPV can play smoothly, and I couldn’t find the relevant technique in its source code. Can anyone help explain this?
Beta Was this translation helpful? Give feedback.
All reactions