Is there any example to subclass GstSystemClock?

Halley Zhao aihua.halley.zhao at gmail.com
Fri Apr 12 11:44:21 UTC 2019


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190412/086afef4/attachment-0001.html>


More information about the gstreamer-devel mailing list