DirectDrawSink video flickering

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

DirectDrawSink video flickering

cumaniok
Hi,
I'm new  in GStreamer, and I'm developing a video player in C#. My player is all most done, but I have a little problem. For my player I'm using window form elements and the video is rendering on a panel, but when the video is playing, it's flickering.
Here is the piece of code:

            play = ElementFactory.Make("playbin2", "play") as PlayBin2;
            sink = ElementFactory.Make("directdrawsink", "videosink");  
            sink["force-aspect-ratio"] = true;
            play.VideoSink = sink;    

            Gst.Interfaces.XOverlayAdapter wadapter = new Gst.Interfaces.XOverlayAdapter(sink.Handle);                        
            wadapter.XwindowId = panel1.Handle;

There are no flickering  when the video is playing on default directdrawsink window or another window. It's flickering only when the video is rendering on a panel.

Can anyone tell me what I'm doing wrong?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DirectDrawSink video flickering

dhoyt
> Hi,
> I'm new  in GStreamer, and I'm developing a video player in C#. My player is
> all most done, but I have a little problem. For my player I'm using window
> form elements and the video is rendering on a panel, but when the video is
> playing, it's flickering.

That's interesting. I'm using it right now with no flickering. There's some when you resize a window, but I'm not entirely surprised by that. Did you build it yourself? If you're using ossbuild, try using d3dvideosink (direct 3d video sink) instead. It's still being prepared to be submitted upstream to gstreamer, but it's available in ossbuild. That may prove better than the aging directdrawsink. There's also dshowvideosink (direct show video sink).

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DirectDrawSink video flickering

wl2776
Administrator
In reply to this post by cumaniok
This could be caused by the oddities of your video subsystem.
We have a similar case. Another application extensively using DirectDraw, causes flickering on one computer and doesn't cause on several others.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: DirectDrawSink video flickering

cumaniok
This post has NOT been accepted by the mailing list yet.
In reply to this post by dhoyt
I've solved this problem by using dshowvideosink instead of directdrawsink.
Loading...