Is there any example to subclass GstSystemClock?

Halley Zhao aihua.halley.zhao at gmail.com
Sat Apr 13 00:51:56 UTC 2019


thanks, it helps me understand GstClock.

then, I will subclass GstSystemClock, then override get_internal_time func
to provide time by my existing player.



Krzysztof Konopko <krzysztof.konopko at konagma.eu> 于2019年4月12日周五 下午9:28写道:

> Hi,
>
> Might not be exactly your use case, but at least you might get some
> inspiration from something that was used to "synchronise" two different
> clock domains (GStreamer and VCOS on RPi).
> https://github.com/youviewtv/gst-mmal/blob/master/mmal/gstmmalclock.c
> (check how it's used).
>
> Cheers,
> Kris
>
> On Fri, 2019-04-12 at 19:44 +0800, Halley Zhao wrote:
>
> Hi Expert:
> I want to reuse gst codec in another media framework.
> (yes, it is something odd, but it is my fact. i have existing player and
> media framework; but I want to reuse hw codec plugins of gstreamer -- most
> SoC vendor release Linux BSP with gstreamer hw codec plugins).
>
> the way I want to try is: construct a short gst pipeline:
> appsrc-->videodecode-->videosink;
> then I can get video frames from my player and feed them to gstreamer hw
> codec and render through appsrc.
> comments are welcomed, thanks.
>
> next, I need control a/v sycn, where audio rendering happens in my
> existing player, while video rendering happens in gst pipeline.
> I want to create a GstClock (subclass from GstSystemClock) which generate
> timeline from my player's audio rendering, then use the clock to control
> the video rendering by gst_pipeline_set_clock().
>
> so, my question is:
> is there any guidance to subclass GstSystemClock?
> is there any example code?
>
> thanks.
>
> _______________________________________________
>
> 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/20190413/bc7c5638/attachment.html>


More information about the gstreamer-devel mailing list