RangeError: offset is out of bounds [@discordjs/opus]
Gathering a RangeError when attempting to play a shoutcast live stream [AUDIO ONLY], the bot has been playing stations like a charm for the past 7 months with no issue and recently arised, not sure what happened and even checked via ffmpeg stats and attempted to see the connection but it looks the same, 48000hz. Looks like its for buffering although not sure what the functionality behind it does at all in order to attempt to manually fix it.
https://gist.github.com/iiTxicz/81f6c628b4e79c3db54f00388401a70b - code

17 Replies
- What are your intents?
GuildVoiceStates
is required to receive voice data!
- Show what dependencies you are using -- generateDependencyReport()
is exported from @discordjs/voice
.
- Try looking at common examples: https://github.com/discordjs/voice-examples.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!What dependencies you are using?

mb for the late reply
thats a odd version of ffmpeg.
could you provide the github from this dependencie?
lemme see if i can get that version
i installed it a while back
via windows installation
ok.
allright please install https://github.com/BtbN/FFmpeg-Builds/releases/tag/latest and remove the old one.
it still continued afterwards:

this isnt a ffmpeg issue btw. its an opus encoder issue
seems like the encoder failed to write encode the stream properly. could you try to manually make an ffmpeg stream via fluent ffmpeg or prism media and enter the output into
createAudioResource
?ill attempt this and let you know
this is an aac shoutcast stream js to let you know so not sure if this could be a reason
yeah idk either. but the error is coming from opus encoder
really strange tbh
i saw that it was tryna buffer
like i saw the opus code from where it was coming from and it looks like its attempting to buffer or gather a value of some sort
yeah
tbh this is unlike anything ive seen before
what would be the best solution to fix this?