Audio/video synchronization with pre-buffered video

Michael Yarochkin michael.yarochkin at timetronics.be
Fri Mar 17 09:43:50 UTC 2017


Hello, Anton


I don`t believe gstreamer have solution fro this. It can not know about specific features of your hardware.


As a solution, can you feed pipeline with "silence" audio during cleaning of the video buffer?


Mikl

________________________________
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> on behalf of Anton Protopopov <aspsk2 at gmail.com>
Sent: Wednesday, February 15, 2017 6:03:02 PM
To: gstreamer-devel at lists.freedesktop.org
Subject: Audio/video synchronization with pre-buffered video

Hello everyone,

I have a pipeline with live H264 video source and live AAC audio
source muxed together using mpegtsmux. One problem with this pipeline
is that the video encoder hardware can buffer some number of frames,
so when I am creating and setting a pipeline to PLAYING state, there
could be already, say, 1-2 seconds of video buffered. Audio is not
buffered in hardware. So when the pipeline is set to the PLAYING
state, video source produces a set of frames with almost the same time
stamps and several first seconds of video are corrupted (they contain
old video frames with some audio frames). Is there a way to
synchronize such sources without dropping video frames?

Thanks,
Anton
_______________________________________________
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/20170317/7d793d50/attachment-0001.html>


More information about the gstreamer-devel mailing list