Help me in writing a player based on gstreamer for raspberry pi

Sebastian Dröge sebastian at centricular.com
Fri Sep 30 07:17:57 UTC 2016


On Thu, 2016-09-29 at 06:37 -0700, munezbn.dev wrote:
> Hi All,
> 
> I am planing to write a generic player for raspberry pi based on gstreamer.
> I am new to gstreamer and still learning stuffs. I am using custom buildroot
> image without X11.
> 
> My first idea is to create a player using playbin. Once that is done i will
> work on creating own pipeline by adding elements on the fly..

Why would you like to create a custom pipeline instead of using
playbin? If you're planning a player application, playbin is exactly
what you want to use in 99% of the cases.

Also take a look at GstPlayer, which might make your life even easier:
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-libs/html/gst-plugins-bad-libs-gstplayer.html#

> So far i am able to create player based on playbin but  the issue is
> displaying in fullscreen. I have searched a lot and looks like this is a
> known problem with glimagesink and so far didnt find any solution.
> 
> Solutions which I have tried.
> 
> 1] Using Gtk and drawingarea and set this window handle using
> prepare_window_handle message.
>     The first issue with this was about getting prepare_window_handle
> message from glimagesink element. I was able to find the patch and use it.
> After that i was able to get prepare_winodw_handle message. But when I set
> window ID of drawing area it doesn't work. Same code works with ximagesing
> on a fedora machine.. After searching a bit found that this is not possible
> as glimagesink uses dispmanx and it is not compatible yet ??
>
> 2] Thinking of using glcolorscale/glupload  but not sure if it will be
> hardware accelerated also not sure about aspect ratio.

GL is hardware accelerated on the RPi and is what you should use. Just
make sure that it uses the RPi GL implementation and not mesa.

Also there is no support for hardware accelerated GL in X11 on the RPi,
so you will have to use a UI toolkit that uses dispmanx or GL for
rendering.

> My plan is to develop a gstreamer based player for raspberry with UI. Kindly
> guide me. 

Which UI toolkit do you want to use? On that depends every other
answer.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160930/f38cac49/attachment.sig>


More information about the gstreamer-devel mailing list