GStreamer and Rust

Sebastian Dröge sebastian at centricular.com
Sat Sep 2 09:10:40 UTC 2017


On Sat, 2017-09-02 at 09:49 +0100, Russel Winder wrote:
> 
> > What makes you think they are otherwise from the wrong era?
> 
> The Main.init()…Main.run() approach was the only way of working in
> GTK+2 and still works in GTK+3 (and I assume GTK+4). However the
> idiomatic way of writing Gtk::Application based applications has
> changed – we have a new era for Gtk application structure. Most of the
> gtk-rs examples are applications but not using the application idiom,
> thus from the wring era. 

How would you write GtkApplication based things differently, what's the
"correct" and modern way from what you understand?

> […]
> > What exactly are you looking for? Using the GStreamer MPEG-TS library
> > API? There are no bindings for that library yet. So far I only have
> > basically all of GStreamer core, app and player, and important parts
> > of
> > the video and audio libraries here:
> >   https://github.com/sdroege/gstreamer-rs
> > 
> > If you need bindings for the MPEG-TS library, someone will have to
> > write/autogenerate them first :) I'm not going to do that anytime
> > soon,
> > there are too many other things on my todo list that are more
> > interesting/important for me. I'd be happy to accept a pull request
> > for
> > that though.
> 
> In the C++ code, in order to use the mpegts stuff implicit in using the
> dvbsrc stuff, you have to call gst_mpegts_initialize(). As far as I am
> aware I only use GStreamer API to load and run playbin with the dvbsrc
> plugin which implies no need for an API outside the standard API. So
> everything I need should be there already except for the initialisation
> call. Assuming I remember my C++ code correctly, and am correctly
> interpreting the situation!

Calling that init function should not be necessary as tsdemux already
does that too. Unless you use API from the MPEG-TS library before
tsdemux does anything.

But yes that sounds like you want to use the MPEG-TS library. To handle
e.g. the PAT and PMT messages from tsdemux. Bindings for that would
have to be generated first, but for this case it shouldn't be very
difficult or much work. The MPEG-TS library is simple.

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


More information about the gstreamer-devel mailing list