jagrosh / MusicBot

🎶 A Discord music bot that's easy to set up and run yourself!
https://jmusicbot.com
Apache License 2.0
5.37k stars 2.57k forks source link

[Bug Report] Bot fails to play AAC audio, "Configuring failed with error 8195" #1393

Open twl-surrogate opened 1 year ago

twl-surrogate commented 1 year ago

Bug Description

this video loads forever and any other songs after it loads forever unless you restart the bot

Steps to Reproduce

type [prefix]!play https://cdn.discordapp.com/attachments/913947222322872350/1121422680600629360/Screen_Recording_20230413_161747_Instagram.mp4

Expected Result

video to play

Debug Output

System Properties:
  java.version = 19.0.2
  java.vm.name = OpenJDK 64-Bit Server VM
  java.vm.specification.version = 19
  java.runtime.name = OpenJDK Runtime Environment
  java.runtime.version = 19.0.2+7-Ubuntu-0ubuntu322.04
  java.specification.version = 19
  os.arch = aarch64
  os.name = Linux

JMusicBot Information:
  Version = 0.3.9
  Owner = 222193149219438593
  Prefix = v!
  AltPrefix = null
  MaxSeconds = 0
  NPImages = false
  SongInStatus = false
  StayInChannel = false
  UseEval = false
  UpdateAlerts = true

Dependency Information:
  JDA Version = 4.4.1_353
  JDA-Utilities Version = 3.0.5
  Lavaplayer Version = 1.3.78

Runtime Information:
  Total Memory = 91
  Used Memory = 17

Discord Information:
  ID = 824672449227522118
  Guilds = 7
  Users = 6

Additional Info

relevant logs

Jun 12 21:28:10 absolutego java[813]: [21:28:10] [ERROR] [LocalAudioTrackExecutor]: Error in playback of https://cdn.discordapp.com/attachments/913947222322872350/1118003852390707230/e6821b21ed5721440d7797abde7146f2.mp4
Jun 12 21:28:10 absolutego java[813]: com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something went wrong when decoding the track.
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:44)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.executeProcessingLoop(LocalAudioTrackExecutor.java:293)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.executeProcessingLoop(LocalAudioTrackExecutor.java:249)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.container.mpeg.MpegAudioTrack.process(MpegAudioTrack.java:51)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.source.http.HttpAudioTrack.process(HttpAudioTrack.java:53)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:348)
Jun 12 21:28:10 absolutego java[813]:         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
Jun 12 21:28:10 absolutego java[813]:         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
Jun 12 21:28:10 absolutego java[813]:         at java.base/java.lang.Thread.run(Thread.java:829)
Jun 12 21:28:10 absolutego java[813]:         Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
Jun 12 21:28:10 absolutego java[813]:   lavaplayer.version: 1.3.78
Jun 12 21:28:10 absolutego java[813]:   os.arch: aarch64
Jun 12 21:28:10 absolutego java[813]:   os.name: Linux
Jun 12 21:28:10 absolutego java[813]:   os.version: 5.15.0-1036-oracle
Jun 12 21:28:10 absolutego java[813]:   java.vendor: Ubuntu
Jun 12 21:28:10 absolutego java[813]:   java.version: 11.0.19
Jun 12 21:28:10 absolutego java[813]:   java.runtime.version: 11.0.19+7-post-Ubuntu-0ubuntu122.04.1
Jun 12 21:28:10 absolutego java[813]:   java.vm.version: 11.0.19+7-post-Ubuntu-0ubuntu122.04.1
Jun 12 21:28:10 absolutego java[813]: Caused by: java.lang.IllegalStateException: Configuring failed with error 8195
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.natives.aac.AacDecoder.configureRaw(AacDecoder.java:78)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.natives.aac.AacDecoder.configure(AacDecoder.java:66)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.container.mpeg.MpegAacTrackConsumer.configureDecoder(MpegAacTrackConsumer.java:91)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.container.common.AacPacketRouter.processInput(AacPacketRouter.java:31)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.container.mpeg.MpegAacTrackConsumer.consume(MpegAacTrackConsumer.java:78)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.container.mpeg.reader.standard.MpegStandardFileTrackProvider.provideFrames(MpegStandardFileTrackProvider.java:74)
Jun 12 21:28:10 absolutego java[813]:         at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.executeProcessingLoop(LocalAudioTrackExecutor.java:275)
Jun 12 21:28:10 absolutego java[813]:         ... 9 common frames omitted

Checklist

MichailiK commented 6 months ago

You’re seeing two issues/bugs:

  1. YouTube videos cannot be played. This is already tracked in #1537, so check there for updates.
  2. Some music files (mp3/mp4s) cannot be played. The cause for this is known, but quite technical. A fix will hopefully be available in the future. As a workaround, try to use a tool (like ffmpeg or Audacity) to convert/re-encode your audio to another format.

I’ll change the title & description of this issue to focus on the second bug.