FFMPEG调节音频的音量大小,混音
2016-07-31 14:45
5482 查看
找了很久,国内网站没有,最后还是用google到ffmpeg论坛,找到了。
http://ffmpeg.gusari.org/viewtopic.php?f=25&t=517
防止论坛倒闭,在这里备份下:
by screenshaper »
Thu Oct 16, 2014 6:50 pm
This thread is OUTDATED
Later -af option has been implemented!
Now this command
CODE: SELECT ALL
is perfectly working
See ticket #725
这个就是volume减掉3db。
还有一种:
To increase the volume with
the commad:
Replace
a suitable number. For example 0.5 will half, 2 will double the volume.
========================
To get volume level of the media file in command line I use:
in the output I see something like this:
http://ffmpeg.gusari.org/viewtopic.php?f=25&t=517
防止论坛倒闭,在这里备份下:
How to change audio volume up / down with FFmpeg?
by screenshaper »
Thu Oct 16, 2014 6:50 pm
This thread is OUTDATED
Later -af option has been implemented!
Now this command
CODE: SELECT ALL
ffmpeg -i input.wav -af volume=-3dB output.wav
is perfectly working
See ticket #725
这个就是volume减掉3db。
还有一种:
To increase the volume with
ffmpeguse
the commad:
ffmpeg -i input.wav -af 'volume=2' output.wav
Replace
volume=Xwith
a suitable number. For example 0.5 will half, 2 will double the volume.
========================
To get volume level of the media file in command line I use:
ffmpeg -i audo.mp3 -af "volumedetect" -f null /dev/null
in the output I see something like this:
[Parsed_volumedetect_0 @ 0000000004087260] n_samples: 41316480 [Parsed_volumedetect_0 @ 0000000004087260] mean_volume: -22.5 dB [Parsed_volumedetect_0 @ 0000000004087260] max_volume: -5.8 dB [Parsed_volumedetect_0 @ 0000000004087260] histogram_5db: 3 [Parsed_volumedetect_0 @ 0000000004087260] histogram_6db: 892 [Parsed_volumedetect_0 @ 0000000004087260] histogram_7db: 8686 [Parsed_volumedetect_0 @ 0000000004087260] histogram_8db: 36098
相关文章推荐
- PCM音频数据音量大小调节
- C++ 调节PCM音频音量大小
- Android视频编辑器(五)音频编解码、从视频中分离音频、音频混音、音频音量调节等
- C++ 调节PCM音频音量大小
- PCM音频数据音量大小调节
- C++ 调节PCM音频音量大小
- VC++音频混音接口调节音量及设置静音
- ffplay调节音量大小
- Win8如何设置调节单个程序的音量大小
- [Ffmpeg] 多音轨混音时的音量衰减算法
- 音乐播放器的歌曲进度调节和音量大小调节实现
- ArchLinux 调节屏幕亮度和音量大小
- rk3328_音量调节大小音量条不显示
- 音频技术之调节音量及设置静音
- [小笔记]Android 调节音乐音量大小&改变闹钟铃声大小
- Cocos2D-x 用CCControlSlider设置调节音量的大小
- cocos2d-x 控制android硬件音量大小调节按钮
- 调节音量大小
- Android获取、设置音频的音量大小
- activity中点击系统音量键无法调节大小