https://github.com/berglie/gstreamer-d3d11-overlay
An rtsp client using GStreamer with Direct3D11/Direct3D9 interop layer
https://github.com/berglie/gstreamer-d3d11-overlay
d3d d3d11 gstreamer wpf
Last synced: 5 months ago
JSON representation
An rtsp client using GStreamer with Direct3D11/Direct3D9 interop layer
- Host: GitHub
- URL: https://github.com/berglie/gstreamer-d3d11-overlay
- Owner: berglie
- License: mit
- Created: 2021-01-26T10:59:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-10T09:43:35.000Z (over 4 years ago)
- Last Synced: 2025-08-18T19:26:49.465Z (10 months ago)
- Topics: d3d, d3d11, gstreamer, wpf
- Language: C++
- Homepage:
- Size: 51.8 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gstreamer-d3d11-overlay
Using GStreamer with Direct3D11/Direct3D9 interop layer in .Net
There is no direct support in WPF to display UI elements over a D3D component due to the airspace issue. This project will tackle this issue by implementing a Direct3D11/Direct3D9 interop layer and by using the D3DImageEx class.
The D3DImageEx class will create a D3D11Texture which is created with the `D3D11_RESOURCE_MISC_SHARED`. This texture will be used for the SetBackBuffer method and later used for the d3d11videosink element in the gstreamer code.
Sample project
Sample project
-----------------------------
[GStreamer](https://gstreamer.freedesktop.org/documentation/?gi-language=c) is a framework used for creating streaming media applications. In the sample project included in this repository we are creating a player which can play RTSP streams in WPF with a textbox overlay.
Using the NuGet package
-----------------------------
Download the NuGet package from https://www.nuget.org/packages/gstreamer-d3d11-overlay/
Using the native C++ projects
------------------------------
**What You Need**
- [Visual Studio 2015](https://www.visualstudio.com/features/wpf-vs)
- [DirectX SDK](http://www.microsoft.com/en-us/download/details.aspx?id=6812)
- [Windows SDK](https://dev.windows.com/en-us/downloads/windows-10-sdk)
Credits
-------------------
The Direct3D11/Direct3D9 interop layer is based on the project http://jmorrill.hjtcentral.com/Home/tabid/428/EntryId/437/Direct3D-10-11-Direct2D-in-WPF.aspx by Jeremiah Morrill.