On Fri, Feb 12, 2021, at 7:58 PM, Gustav González wrote:
> Hi,
> I have been looking for an example or piece of code showing how to fill an 
> audio stream with silence frames/packets using the ffmpeg API. My goal is to 
> merge it with a video stream.
> The best hint I found until now was this:
> https://stackoverflow.com/questions/32006821/write-silence-audio-data-into-file-ffmpeg-c
> 

If you want to fill in missing timestamp with silence, you might want to use 
the `aresample=async=1` filter. This does exactly that.

I use it to synchronize audio from RTP streams, which frequently have dropped 
frames.
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to