dadiyang / jave

音频转码工具,主要用于将微信语音 amr 格式转换为 mp3 格式以便在 html5 的 audio 标签中进行播放
GNU General Public License v2.0
217 stars 72 forks source link

macpro使用1.0.6版本,执行代码后targetFile并未创建,日志显示"dyld: Library not loaded" #18

Open shudao opened 4 years ago

shudao commented 4 years ago

代码: ` File amrFile = new File("1.amr"); File mp3File = new File("1.mp3");

    try {
        // amr 转 mp3
        AudioUtils.amrToMp3(amrFile, mp3File);

    } catch (Exception e) {
        e.printStackTrace();
    }

`

日志:

[main] INFO it.sauronsoftware.jave.DefaultFFMPEGLocator - ffmpeg.home does not exists, use default bin path: /var/folders/bp/p9t730ts1y734f3r64z1m0jr0000gp/T/jave-1 [main] INFO it.sauronsoftware.jave.FFMPEGExecutor - exec cmd: [/var/folders/bp/p9t730ts1y734f3r64z1m0jr0000gp/T/jave-1/ffmpeg-mac, -i, /Users/dali/temp/1, -vn, -acodec, libmp3lame, -f, wav, -y, /Users/dali/IdeaProjects/demo/1.mp3] [main] DEBUG it.sauronsoftware.jave.IgnoreErrorEncoder - dyld: Library not loaded: /usr/local/opt/libidn2/lib/libidn2.0.dylib [main] DEBUG it.sauronsoftware.jave.IgnoreErrorEncoder - Referenced from: /var/folders/bp/p9t730ts1y734f3r64z1m0jr0000gp/T/jave-1/ffmpeg-mac [main] DEBUG it.sauronsoftware.jave.IgnoreErrorEncoder - Reason: image not found

dadiyang commented 4 years ago

跑一下我项目里面的单元测试看看能不能通过

loseyourselfWell commented 4 years ago

我也遇到了,单元测试也不行。