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

Sebastian Dröge sebastian at centricular.com
Sat Oct 1 08:20:20 UTC 2016


On Fri, 2016-09-30 at 23:15 -0700, munezbn.dev wrote:
> Sebastian Dröge-3 wrote
> > 
> > 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.
> 
> The main purpose for me is learning and understanding gstreamer. Thats why I
> want come out of playbin. 

If your goal is understanding, then that's fine. For any real use
playbin is the better choice.

> And im not sure if we have control over pipeline and elements created by
> playbin ? For example if we have queue2 element for buffering, can we have
> custom values for buffering size ?

Check the two buffer-* properties on playbin

>  How can we modify property values of elements added by playbin ?

It depends on which elements, but the idea is that you don't have to
modify any specific element properties for most cases and only
properties on playbin. playbin should set anything up properly for
playback.

> Also, if i create my own plugin in future for xyz purpose, can I tell
> playbin to add my new element in between pipeline ? 

What kind of element? There are various ways of doing this. For
sources, demuxers, parsers and decoders the standard machinery with
element rank, classification and pad template caps would make your
elements used.

For specific video/audio sinks, filters, etc. there are properties on playbin to adjust this.

> > 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#
> 
> Thanks I have a look into that

It's a more high-level API around playbin that makes writing player
applications even easier. It does a lot of stuff for you already.

> > Which UI toolkit do you want to use? On that depends every other
> > answer.
> 
> I was thinkiing of GTK. but is there any other widget libraries which uses
> dispmanx ? Or you can suggest me any.. I am open to try :)

AFAIK GTK has no dispmanx support on GTK, it just uses X11, which is
not optimal for your use case. Qt would be an option, or anything
rendering the UI in GL and can use EGL (like next GTK release is most
likely going to be able to do).

-- 
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/20161001/124f65dc/attachment.sig>


More information about the gstreamer-devel mailing list