0
votes

I'm using Directshow filters and getting clicking sound after few minutes of streaming. It's like a mouse clicking sound. If I do not use Reference clock, the issue resolve but the Audio-Video sync does not work and Lypsing doesn't work properly

While using VLC Player it works fine.


Update:

Thanks for your quick reply. I changed implementation of source filter, but still no success.

Previously the graph prepared as below:

Push Source -> ACM Wrapper -> DC-DSP Filter (Amplify filter) -> Render

I checked using graph edit, that DC-DSP filter can implement before decoder so implement change as below:

Push Source -> DC-DSP Filter (Amplify filter) -> ACM Wrapper -> Render

I checked timestamps of audio and video is working and lipsync is ok.

Is there any way to change the priority of audio in Directshow filter. In case of any delay in audio Directshow should not drop audio? In my case I think filter dropping audio not video, This may help to resolve this issue.

1

1 Answers

1
votes

Synchronization is achieved by proper time stamping of payload data. There is no RTSP streaming in stock filters, so you are using some third party filter, which is presumably having the time stamping issue.

To add to this, there is a "rate matching" issue in case of mismatching rates of data origin and the clock of your audio renderer. There is an attempt to compensate it, but once again it is important how exactly the source filter is implementing it.