DirectShow plugin

Started by goodohman, Tue 16/11/2010 14:16:09

Previous topic - Next topic

goodohman

Hello CJ, pumaman, and/or any other people that can help with this.
I have this plugin that does a DirectShow video playback (currently using VMR9) and is very nice and versatile.
The problem is that when the video rectangle is located on the game rectangle, there is flickering because of the "fight" between the video's onpaint and the game's onpaint event.
I *THINK* the solution is something along the lines of what's suggested in the DirectShow docs, i.e., in the game's onpaint event, the painting should be done for the game's client area MINUS the video's client rectangle.
The issue is, how do I access the game's onpaint event?
It seems that the exposed events (pre/final/etc...) are EXTENSIONS of the paint event.
Is there another way? (constantly bringing the video to the foreground is not an acceptable solution)

Any idea? please please I really want us to have this plugin.

Thanks!

p.s.
Maybe the theoraplayer guy can help?

Pumaman

Firstly, AGS already uses the VMR9 for PlayVideo when you're in D3D mode -- are you trying have a video playing as part of the game background, rather than as a full-screen affair?

In an AGS PlayVideo call, the normal rendering loop is disabled and a special DirectShow rendering loop is used instead, so the normal AGS events don't happen.

I haven't yet tried to combine DirectShow with Direct3D on the same canvas, so I'm not actually sure what my advice should be...

goodohman


Yes dear CJ,

I am trying to have a video played on part of the screen, on an object, etc... somewhat similar to what scotch made with theoraplayer which doesn't work well and is quite limited i think.

Could we collaborate to make something here? could you nodge scotch for that matter as well?

THANKS!!!

Pumaman

Sounds like a good idea -- unfortunately I'm very busy at the moment and don't have time to look at this with you.

I haven't seen scotch in a long time, I don't know if he still visits these forums but he may have moved on to other things.

SMF spam blocked by CleanTalk