playbin - blank areas on screen and various questions

philippe renon philippe_renon at yahoo.fr
Wed Apr 12 14:09:45 UTC 2017


There are a few tricks you need to be aware of when using Qt and GSTVideoOverlay.
I don't remember them all but some are:- autoFillBackground is needed along (maybe) turning off Qt::WA_OpaquePaintEvent and Qt::WA_PaintOnScreen.- make sure to expose() the overlay from Qt's paintEvent() and resizeEvent()
Here is the Qt integration I wrote a while back : https://bitbucket.org/filnet/librepilot/src/d5713c26f2abd33920bf2cf0f816fc285939f29c/ground/gcs/src/libs/gstreamer/videowidget.cpp?at=video_wip&fileviewer=file-view-default
It works on Window and Linux. Also works on OSX with a minor fix.
 

    Le Mercredi 12 avril 2017 14h07, Harry McKame <mckameh at wanadoo.fr> a écrit :
 

 I use Qt, and setting QWidget::autoFillBackground helps - but only while the video is not playing and its first frame is static and visible, and for about one second once playing starts.

After one second of play the blank spaces return and become see-through.


_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170412/6ca30508/attachment.html>


More information about the gstreamer-devel mailing list