level 7
如题。。
虽然格式工厂可以解决。。。但是有啥更科学的办法吗?
2014年05月29日 05点05分
1
level 7
Format : MPEG Audio
File size : 17.8 KiB
Duration : 3s 640ms
Overall bit rate mode : Constant
Overall bit rate : 40.0 K
bp
s
Audio
Format : MPEG Audio
Format version : Version 2
Format profile : Layer 3
Duration : 3s 657ms
Bit rate mode : Constant
Bit rate : 40.0 Kbps
Channel(s) : 1 channel
Sampling rate : 22.05 KHz
Compression mode : Lossy
Stream size : 17.8 KiB (100%)
2014年05月29日 05点05分
3
level 7
ffmpeg解码mp3,管道给oggenc来编码生成ogg
2014年05月29日 06点05分
4
所以,你的意思是按照6楼那样的设定吗?
2014年05月29日 06点05分
回复 wangdl_100a :不是。命令行:ffmpeg -i 输入.mp3 -vn -ac 2 -f wav pipe:|oggenc <参数> <输出.ogg>
2014年05月29日 14点05分
回复 大猫猫生小猫猫 : -vn是关闭视频记录,-ac 2查完,没明白
2014年05月30日 07点05分
回复 大猫猫生小猫猫 :这里的-ac 是作为输出流参数?是把输出的wav改为双声道?
2014年05月30日 07点05分
level 13
像foobar, 千千静听, winamp之类的播放器都支持编码转换, 如果没有内置ogg编码器, 可以使用内置的命令行转换工具加命令行的ogg编码器.
这样无需多安装其它转换软件, 就能利用播放器本身的附加功能方便地批量转换音频从任意格式到任意格式.
2014年05月29日 06点05分
5
level 7
如果是Windows系统,我会建议使用foobar的命令行编码器,可以自定义参数,还支持管道。
其实对于这么小的文件,执行效率可以无视了,反正都是瞬间完成。
2014年05月29日 14点05分
7
level 11
ffmpeg -i 输入.mp3 -qscale 4 输出.ogg
就是这么简单
2014年05月30日 12点05分
8
-qscale后面的值影响转出来的文件的音质和文件大小。自行修改。
2014年05月30日 12点05分
回复 masmyc :查到了:To have a constant quality (but a variable bitrate), use the option ’-qscale n’ when ’n’ is between 1 (excellent quality) and 31 (worst quality).
2014年05月30日 12点05分
回复 wangdl_100a :不过ffmpeg 支持直接输出ogg?这是何等的神奇啊~!
2014年05月30日 12点05分
回复 masmyc :结果件见9楼
2014年05月30日 13点05分