Input #0, mp3, from '/home/ubuntu/mirai/./temp/wv1613199768673.m4a':
Metadata:
artist : Rick Astley
title : Never Gonna Give You Up
album : Platinum & Gold Collection
encoder : Lavf56.4.101
Duration: 00:03:32.48, start: 0.025057, bitrate: 128 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mp3 (native) -> amr_nb (libopencore_amrnb))
Press [q] to stop, [?] for help
Output #0, amr, to '/home/ubuntu/mirai/./temp/wv1613199768673.amr':
Metadata:
artist : Rick Astley
title : Never Gonna Give You Up
album : Platinum & Gold Collection
encoder : Lavf57.83.100
Stream #0:0: Audio: amr_nb (libopencore_amrnb), 8000 Hz, mono, s16, 12 kb/s
Metadata:
encoder : Lavc57.107.100 libopencore_amrnb
size= 332kB time=00:03:32.47 bitrate= 12.8kbits/s speed= 153x
video:0kB audio:332kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001765%
2021-02-13 15:02:50 W/stderr: java.lang.ClassCastException: class net.mamoe.mirai.internal.contact.FriendImpl cannot be cast to class net.mamoe.mirai.contact.Group (net.mamoe.mirai.internal.contact.FriendImpl and net.mamoe.mirai.contact.Group are in unnamed module of loader java.net.URLClassLoader @7d9f158f)
2021-02-13 15:02:50 W/stderr: at com.khjxiaogu.MiraiSongPlugin.cardprovider.AmrVoiceProvider.process(AmrVoiceProvider.java:77)
2021-02-13 15:02:50 W/stderr: at com.khjxiaogu.MiraiSongPlugin.MiraiSongPlugin.lambda$makeSearchesTemplate$2(MiraiSongPlugin.java:162)
2021-02-13 15:02:50 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
2021-02-13 15:02:50 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
2021-02-13 15:02:50 W/stderr: at java.base/java.lang.Thread.run(Unknown Source)
2021-02-13 15:02:50 V/Bot.2840808839: Friend(1710658830) <- 当前状态不支持音频
Ubuntu 18.04 下正确指定了ffmpeg的位置,安装了opencore-amr库,音频解码中出现报错
Input #0, mp3, from '/home/ubuntu/mirai/./temp/wv1613199768673.m4a': Metadata: artist : Rick Astley title : Never Gonna Give You Up album : Platinum & Gold Collection encoder : Lavf56.4.101 Duration: 00:03:32.48, start: 0.025057, bitrate: 128 kb/s Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (mp3 (native) -> amr_nb (libopencore_amrnb)) Press [q] to stop, [?] for help Output #0, amr, to '/home/ubuntu/mirai/./temp/wv1613199768673.amr': Metadata: artist : Rick Astley title : Never Gonna Give You Up album : Platinum & Gold Collection encoder : Lavf57.83.100 Stream #0:0: Audio: amr_nb (libopencore_amrnb), 8000 Hz, mono, s16, 12 kb/s Metadata: encoder : Lavc57.107.100 libopencore_amrnb size= 332kB time=00:03:32.47 bitrate= 12.8kbits/s speed= 153x video:0kB audio:332kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001765% 2021-02-13 15:02:50 W/stderr: java.lang.ClassCastException: class net.mamoe.mirai.internal.contact.FriendImpl cannot be cast to class net.mamoe.mirai.contact.Group (net.mamoe.mirai.internal.contact.FriendImpl and net.mamoe.mirai.contact.Group are in unnamed module of loader java.net.URLClassLoader @7d9f158f) 2021-02-13 15:02:50 W/stderr: at com.khjxiaogu.MiraiSongPlugin.cardprovider.AmrVoiceProvider.process(AmrVoiceProvider.java:77) 2021-02-13 15:02:50 W/stderr: at com.khjxiaogu.MiraiSongPlugin.MiraiSongPlugin.lambda$makeSearchesTemplate$2(MiraiSongPlugin.java:162) 2021-02-13 15:02:50 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2021-02-13 15:02:50 W/stderr: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2021-02-13 15:02:50 W/stderr: at java.base/java.lang.Thread.run(Unknown Source) 2021-02-13 15:02:50 V/Bot.2840808839: Friend(1710658830) <- 当前状态不支持音频