Re: how to set latency to 0 in playbin winthin c/c++ code
cfd new via gstreamer-devel <[email protected]>
| Newsgroups | gmane.comp.video.gstreamer.devel |
|---|---|
| Message-ID | <[email protected]> |
I managed to connect signal
source-setup
of playbin3 to get source element. Now I am able to set latency of source to 0.However, audio is ahead video 2-3 seconds. If I set sync of video sink to true,audio/video are synced, but streaming is not smooth and looks pretty bad. This isin Android 13 with gstreamer 1.22.5. Any ideas?
On Linux, no problem while CPU is much better.
Any help will be appreciated.
Joe
On Friday, September 1, 2023, 04:45:27 p.m. EDT, cfd new via gstreamer-devel <[email protected]> wrote:
I can set latency to 0 by
gst-launch-1.0 playbin uri=*** uridecondebin0::source::latency=0
how do I do this in C/C++ code?Tried to do the following:GstElement * source{};g_object_get( my_playbin, "source", &source, nullptr);
and source is nullptr.
Thanks for your help.
Joe