จะได้ข้อมูลดังตัวอย่างต่อไปนี้ffmpeg -i input.mp4 -af "volumedetect" -f null null
หรือ
ffmpeg -i input.mp4 -af "volumedetect" -f null -
[Parsed_volumedetect_0 @ 0000000000633440] n_samples: 40343552
[Parsed_volumedetect_0 @ 0000000000633440] mean_volume: -29.5 dB
[Parsed_volumedetect_0 @ 0000000000633440] max_volume: -14.0 dB
[Parsed_volumedetect_0 @ 0000000000633440] histogram_13db: 2
[Parsed_volumedetect_0 @ 0000000000633440] histogram_14db: 9353
[Parsed_volumedetect_0 @ 0000000000633440] histogram_15db: 111037
2. ปรับระดับเสียงให้เท่ากับ 0dB
ffmpeg -i input.mp4 -vcodec copy -af "volume=14.0dB" output.mp4