Chinaunix首页 | 论坛 | 博客
  • 博客访问: 196588
  • 博文数量: 71
  • 博客积分: 3135
  • 博客等级: 中校
  • 技术积分: 740
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-23 13:29
文章分类

全部博文(71)

文章存档

2012年(3)

2011年(1)

2010年(7)

2009年(3)

2008年(15)

2007年(24)

2006年(18)

我的朋友

分类: LINUX

2012-05-08 00:48:41

Most flv files are mono with an audio frequency of 22050 Hz. For example, the videos from youtube.com.

You can add these options to ffmpeg to improve the sound.

ffmpeg -i file.flv -f mp3 -ab 128k -ar 44100 -ac 2 file.mp3

-ab is the audio bitrate
-ar is the frequency
-ac is 2 channels or stereo

There are times when we rip the flv file, the volume is low. A better way is to convert the flv file to a wav file, normalize it and then convert the wav to an mp3 file. Example:

ffmpeg -i file.flv -f wav file.wav

normalize file.wav

ffmpeg -i file.wav -f mp3 -ab 128k -ar 44100 -ac 2 file.mp3

If you have many flv files, you can create a for loop shell script and use variables in place of the file(s).
-
阅读(897) | 评论(0) | 转发(0) |
0

上一篇:win7 chrome cache

下一篇:build php5

给主人留下些什么吧!~~