【问题标题】:sox library call main, and error is can't open input file `1', why?sox库调用main,错误是can't open input file `1',为什么?
【发布时间】:2020-07-18 10:16:06
【问题描述】:

我在android上使用sox库,我用命令来改变mp3文件的频道

sox /storage/emulated/0/Music/Drivethrough.mp3 -c 1 /storage/emulated/0/Android/data/com.tian.xxx/cache/temp/results.mp3

当我运行它时,显示

can't open input file `1': No such file or directory

我的代码是:

int mymain(int argc, char **argv, const char *tempPath);

这里是代码详情:https://github.com/pxhbug123/SoxLibInAndroid/blob/master/soxcommandlibrary/src/main/sox/src/sox.c#L2908

不知道为什么?

我用这个方法调用sox https://github.com/pxhbug123/SoxLibInAndroid/blob/master/soxcommandlibrary/src/main/sox/src/JniNative.c#L265

【问题讨论】:

    标签: android sox libsox


    【解决方案1】:

    解决了。只需将“-c”替换为“--channels”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-08
      • 1970-01-01
      • 2019-12-24
      • 2019-09-05
      • 1970-01-01
      • 2015-01-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多