I slightly corrected the code to make it clearer what is happening. вт, 25 трав. 2021 о 23:03 Сергей Икол <[email protected]> пише:
> Hello! > > I use this example > https://www.ffmpeg.org/doxygen/2.7/af__silencedetect_8c_source.html > > I want to find silence as ffmpeg does, but I get a different result( > For ffmpeg I am using the following command > ffmpeg -i input.ts -af silencedetect=noise=0.001:d=0.4 -f null - > > In the same video file, I get a different offset. For example, the > beginning of silence found using my program is always offset from what > ffmpeg finds by 1.26 or 1.31 or 1.38 second in different places in the > video file. The end of silence also has an offset of 1.39 and the silence > duration is also slightly different from what ffmpeg finds. > > I also tried changing the audio codec for the video file, but it didn't > change anything. > > nb_samples = 1152 > sample_rate = 48000 > > offset always goes forward. > For example ffmpeg = 1.2 > my program = 2.5 > > Please tell me what is my problem? > _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
