Audio synchronization

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Audio synchronization

sujith
This post was updated on .
Hello..

I have a media player application that send the decoded audio streams to a named pipe as below. I have used gdppay/gdpdepay for this

Sender side     - gst-launch filesrc location=<filename> ! mad ! gdppay ! filesink location=<pipe>
Receiving side - gst-launch filesrc location=<filename> ! gdpdepay ! alsasink

When I do "Pause" for X seconds in sender side pipeline, and do "Resume" after, it actually jumps those X seconds audio and play the streams after. To resolve this issue, I have used "sync = false" in receiving side pipeline. So my new receiving side pipeline should be as below

Receiving side - gst-launch filesrc location=<filename> ! gdpdepay ! alsasink sync=false

I think disabling the sync is not a good solution.  My sender side pipeline is using using "GstSystemClock" and receving side pipeline is using "GstAudioSinkClock". Is this an issue?