the DirectShow example "VMRMulti" is what I want to do. In the documentation it says: The application uses separate filter graphs for each media files. The graphs can be controlled individually.
So I figured that tow graphs with VMR9 reders in the same Hwnd would do the trick, but... as I'm new to this :-)
If I just add two files to a VMR9 render I can't change video file in real time without interupting the video playing.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You need to use VMRMulti OR build two graphs with a VMR9s in Renderless mode (with a custom Allocator / Presenter) and do the mix yourself with Direct3D...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I built two VMR9 graphs and render them into the same hWnd. It works, but flicker a lot, when I run both at the same time.
Is it possible to render to in the same hWnd. If how do I lostye the flicker?
This is my "dirty version" of a "video mixer".
the DirectShow example "VMRMulti" is what I want to do. In the documentation it says: The application uses separate filter graphs for each media files. The graphs can be controlled individually.
So I figured that tow graphs with VMR9 reders in the same Hwnd would do the trick, but... as I'm new to this :-)
If I just add two files to a VMR9 render I can't change video file in real time without interupting the video playing.
Forget your two overlapped VMRs.
You need to use VMRMulti OR build two graphs with a VMR9s in Renderless mode (with a custom Allocator / Presenter) and do the mix yourself with Direct3D...
I don't understand why you want to render two VMR one over the other ! In this condition, the flickering is normal...
Could you develop what you want to achieve ?