Replies: 1 comment
-
|
btw, i'm using wgl |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
when the ffmpeg uses d3d11 hw accelerator, afaik d3d11texture2d with nv12 format can't be 'mapped' with opengl texture via nvdxinterop because on opengl side there is no corresponding pixel format or on dx side nv12 uses some internal layout whatever, anyway i got black gl texture.
in this case i wanted to convert nv12 into rgba and than map with opengl, unfortunately the
videoprocessorseems can't read the slice from the texture array provided by ffmpegavframe.data[0][index]... well, so, i created 2d3dtexture, 1 (nv12) is used to docopysubresourcewith the ffmpeg slice, and the other one (rgba) used to map with opengl texture, and then, dovideoprocessorbltbetween these 2 textures.this way works, but it's so ugly and awkward... especially about the extra gpu load usage....
so how does mpv handle this? I'm new to mpv so the source code is currently hard for me. or please point me out where the related files/lines are. it'd be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions