- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have an NV12 D3D11 texture array from another source, and would like to encode them in hardware with libmfx. I have existing code supporting encoding single NV12 D3D9 surfaces in the same way, and I'm trying to adapt it to D3D11.
In the program I already have a D3D11 device (where the textures were originally created) and I use that to create the encoder session with an MFX_HANDLE_D3D11_DEVICE. Then, following the d3d11_allocator.cpp example, I set a frame allocator with a GetHDL implementation which will resolve the mids to an mfxHDLPair with first set to the texture pointer and second set to the array subresource index. Everything else is the same as the working D3D9 setup.
This kindof works and encodes, but the output isn't correct. The output stream has the expected framerate and parameters, but it appears to have always encoded the texture at array index zero - the output only contains some of the expected frames, and the framerate looks very low. If I make the array larger and never write to the index zero texture then the output stream is entirely green (i.e. YUV zero).
So, is this use-case actually supported? Is there some additional option I need to set somewhere to make the encoder see the subresource index?
(System is a 4500U running current Windows 10 and Media SDK 2017R2.)
Thanks,
- Mark
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mark,
There is a separate thread regarding support with D3D11 on windows 10:
https://software.intel.com/en-us/forums/intel-media-sdk/topic/671210?page=1
with updated.
Regards,
Stav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Stav,
Is there another branch somewhere which uses texture arrays? I had a look around that code, but it seems to always set the subresource index (mfxHDLPair.second) to zero, so I don't think it wil support arrays - e.g. https://github.com/ishmael1985/gstreamer-media-SDK/blob/master/gst-libs/mfx/gstmfxallocator_d3d11.c#L369 . (Or is there something else I should be looking for?)
Thanks for the pointer,
- Mark
![](/skins/images/91F5C79BC69312EC7F389BB9532EE3D4/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page