[Libav-user] How to create silence audio frames?
Jonathan Baudanza
jon at jonb.org
Sat Feb 13 19:17:27 EET 2021
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20210213/4c50234c/attachment.html>
More information about the Libav-user
mailing list