...
|
...
|
@@ -499,7 +499,7 @@ class Almighty extends Api |
|
|
$config = get_addon_config('qiniu');
|
|
|
$auth = new Auth($config['app_key'], $config['secret_key']);
|
|
|
//设置转码参数
|
|
|
$fops = "avthumb/pcm";
|
|
|
$fops = "avthumb/s16le/acodec/pcm_s16le/ac/1/ar/16000";
|
|
|
//通过添加'|saveas'参数,指定处理后的文件保存的bucket和key 不指定默认保存在当前空间,bucket为目标空间,后一个参数为转码之后文件名
|
|
|
$filename = str_replace(strrchr($key, "."),"",$key);
|
|
|
$entry = $config['bucket'] . ':' . $filename . '.pcm';
|
...
|
...
|
|