[进阶]批量解码转换SILK V3编码音频为其他格式

in silk •  8 years ago 

cec7a5410d391e34ffa16b2b30afb1e4
前有《解码转换QQ微信的SILK v3编码音频为MP3或其他格式》这篇文章,在此基础上,添加批量转换的功能。Github项目地址:https://github.com/kn007/silk-v3-decoder,内含Skype Silk Codec。

单文件转换说明,直接看上篇帖子,新版本兼容上版本转换方式,需要注意的是,脚本名称改变了。

多文件批量转换说明如下:
sh converter.sh input_folder output_folder output_format
举例,现在目录input是待转换的音频文件目录,output是音频输出的目录,想将所有silk v3编码格式的音频转换为MP3,那么命令如下:
sh converter.sh input ouput mp3
如此简单。

做这个功能本身也算是有需要吧,但是因为懒,懒得弄,一直拖拖的。

直到收到一封邮件后:


Hi there,

I saw your script from github website and found it very useful. thank you!
Could you possibly tell me how to convert all audio files in one folder? instead of converting this one by one?
Would it be possible to update your script including the above feature please?

Many thanks in advance for your tip.

kind regards,
Jung


既然有需求,就把要求满足了。

几个可能需要做的point:

1.添加转换文件输出是否成功的支持。

2.优化代码。

3.在线版?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!