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

2021-02-13 Thread Jonathan Baudanza
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: >

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

2021-02-13 Thread Carl Eugen Hoyos
Am Sa., 13. Feb. 2021 um 05:52 Uhr schrieb Gustav González : > 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 mu

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

2021-02-12 Thread Gustav González
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-i