Dual rendering video on Windows.
Posted: 17 Sep 2015 16:39
I am trying to display the same decoded H.264 stream (on Windows) in two separate controls.
I took a look at the direct3d module. I would like to develop my own module that manages to separate HWND instances.
Can I develop my own module (without recompiling libvlc.dll/libvlccore.dll), provided that my dll is in the correct location, and has the correct exports?
For example, if I create a .dll with the following...
...is it enough to just include this .dll in the "VLC_PLUGIN_PATH"? One a windows install, this location is at "C:\Program Files (x86)\VideoLAN\VLC\plugins". Can I just add my .dll there, and use the "dualdirect3d vout"?
Or, is there a better way to display video in two separate HWND instances that I am unware of?
I took a look at the direct3d module. I would like to develop my own module that manages to separate HWND instances.
Can I develop my own module (without recompiling libvlc.dll/libvlccore.dll), provided that my dll is in the correct location, and has the correct exports?
For example, if I create a .dll with the following...
Code: Select all
#define D3D_HELP ("Renders two displays")
#define HW_BLENDING_TEXT ("Use hardware blending support")
#define HW_BLENDING_LONGTEXT ("Try to use hardware acceleration for subtitle/OSD blending.")
vlc_module_begin()
set_shortname("Dual Direct3D")
set_description("Dual Direct3D video output")
set_help(D3D_HELP)
set_category(CAT_VIDEO)
set_subcategory(SUBCAT_VIDEO_VOUT)
add_bool("direct3d-hw-blending", true, HW_BLENDING_TEXT, HW_BLENDING_LONGTEXT, true)
set_capability("vout display", 240)
add_shortcut("dualdirect3d")
set_callbacks(Open, Close)
vlc_module_end()
Or, is there a better way to display video in two separate HWND instances that I am unware of?