Discussion:
[Libav-user] Removing audio stream delay
Strahinja Radman
2018-08-23 10:16:06 UTC
Permalink
Hi guys!

I have a problem where my timestamps are shifted by number of samples in a frame (1024), while processing the audio file. The initial_padding is set to 1024 and timestamp are all subtracted that amount. What I would like to do is to remove the delay by configuring the encoder properly. So is it possible to remove the audio stream delay while opening the AVCodecContext for encoding? I tried setting the initial_padding to zero, but this doesn’t seem to affect anything. Timestamps are shifted by -initial_padding and I want to avoid this.

Kind regards,
Strahinja

Loading...