[Libav-user] How to create silence audio frames?

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Feb 13 15:14:40 EET 2021


Am Sa., 13. Feb. 2021 um 05:52 Uhr schrieb Gustav González <xtingray at gmail.com>:

> 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.

There is av_samples_set_silence() but afair, it uses memset(0) for floats,
so it may not be much better than using memset(0) yourself.

Carl Eugen


More information about the Libav-user mailing list