Closed KasperBosteels closed 2 years ago
hello, This is intresting issue i never came across it myself (maybe becouse im not using playlists for now atleast) but randomly i receive
AudioPlayerError: aborted
at connResetException (node:internal/errors:683:14)
at TLSSocket.socketCloseListener (node:_http_client:407:19)
at TLSSocket.emit (node:events:406:35)
at node:net:662:12
at TCP.done (node:_tls_wrap:580:7)
And as far as i researched this is issue with ytdl library used to fetch videos and songs from youtube but my question is: Did you managed to experience the same error if yes then is there any quick fix for it? if you know any besides modifying the code of the module (as far as i tested not even discord-ytdl-core works and it works even worse then default one) i even tried youtube-dl but it requires harder module code modifications which can be done but at that point you can just write your own module haha
hello,
concerning the error, i tried adding some options like "highWatermark", birtrate,... to the index.js from the package. it seemed to help a little bit, but i still get the errors from time to time.
apparently this is a new issue with node or discord.js.
Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden
From: TukanDev @.> Sent: Sunday, September 26, 2021 3:57:07 AM To: Koenie06/Discord.js-Music @.> Cc: K. Bosteels @.>; Author @.> Subject: Re: [Koenie06/Discord.js-Music] random songs play, after linking songs from a playlist (#5)
hello, This is intresting issue i never came across it myself (maybe becouse im not using playlists for now atleast) but randomly i receive
AudioPlayerError: aborted at connResetException (node:internal/errors:683:14) at TLSSocket.socketCloseListener (node:_http_client:407:19) at TLSSocket.emit (node:events:406:35) at node:net:662:12 at TCP.done (node:_tls_wrap:580:7)
And as far as i researched this is issue with ytdl library used to fetch videos and songs from youtube but my question is: Did you managed to experience the same error if yes then is there any quick fix for it? if you know any besides modifying the code of the module (as far as i tested not even discord-ytdl-core works and it works even worse then default one) i even tried youtube-dl but it requires harder module code modifications which can be done but at that point you can just write your own module haha
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FKoenie06%2FDiscord.js-Music%2Fissues%2F5%23issuecomment-927213359&data=04%7C01%7C%7C2654cacc7030467668ba08d98090f2ed%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637682182297197531%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=znWeqfm2FlpnlzAkmDumt5P%2B0YAJ035Hb8MNt%2BO2N%2F0%3D&reserved=0, or unsubscribehttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANHYV5DRWFGSIMW3BOAVWLTUDZ4XHANCNFSM5EXYL4OA&data=04%7C01%7C%7C2654cacc7030467668ba08d98090f2ed%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637682182297207535%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=AMwIhO53H3zhHU%2BPIb0YJx%2FeKC0AHRQGaiF9loauD2E%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7C2654cacc7030467668ba08d98090f2ed%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637682182297217519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=w%2Fq9aRkV9N%2F3nZo%2B4AFqER3dqJDYz9iIk7KvSm3pSEM%3D&reserved=0 or Androidhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7C2654cacc7030467668ba08d98090f2ed%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637682182297217519%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=3MLvqbqOYE6SjOz1KoNuAJrbIcjQvYKncRIPFKiGLmo%3D&reserved=0.
hello, conserving the error, i tried adding some options like "highwaterMark", birthrate,... to the index.js from the package. it seemed to help a little bit, but i still get the errors from time to time. apparently this is a new issue with node or discord.js. Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden …
May i ask what is the values you passed to those args and it seems its issue with paying videos with codecs of avc (if you open stats for nerds on youtube video) and it looks there is no way to fix it [https://github.com/discordjs/voice/issues/148#issuecomment-872723948](this issue) describes it as ytdl problem, guess like i might just depoy youtube-dl into it and hopefully that will fix it, if not i might just switch to discord-player (which has issue with skipping some songs with "write EPIPE" instead of "aborted" which brings as back to codecs issue of a video. And honestly idk if there will ever be any stable fix for this issues, discord js 12 music bots worked completly fine using ytdl since i have working one so at the end its myb just best to modify this module's playing or just use discordjs/voice manually.
hello, conserving the error, i tried adding some options like "highwaterMark", birthrate,... to the index.js from the package. it seemed to help a little bit, but i still get the errors from time to time. apparently this is a new issue with node or discord.js. Outlook voor Androidhttps://aka.ms/AAb9ysg downloaden …
May i ask what is the values you passed to those args and it seems its issue with paying videos with codecs of avc (if you open stats for nerds on youtube video) and it looks there is no way to fix it [https://github.com/[discordjs/voice/issues/148](https://github.com/discordjs/voice/issues/148)#issuecomment-872723948](this issue) describes it as ytdl problem, guess like i might just depoy youtube-dl into it and hopefully that will fix it, if not i might just switch to discord-player (which has issue with skipping some songs with "write EPIPE" instead of "aborted" which brings as back to codecs issue of a video. And honestly idk if there will ever be any stable fix for this issues, discord js 12 music bots worked completly fine using ytdl since i have working one so at the end its myb just best to modify this module's playing or just use discordjs/voice manually.
Hello I changed the resource variable and added after the audioonly filter the highwatermark and 'highestquality' quality option. This seems to have resolved the 'abort' error i was getting, but made the audio even more distorted.
let resource = await createAudioResource(ytdl(data.queue[0].url, { filter: 'audioonly',highWaterMark:1<<25,quality:'highestaudio'}), {
inputType: StreamType.Arbitrary,
inlineVolume: true,
});
"1<<25" apparently is 32Mb.
i also changed the last line in the volume export.
fetchedData.resource.volume.setVolume(volume/100)
Thank you very much i will see how it works with those optimizations.
random different songs play when using youtube links from a playlist. song being played:
song requested https://www.youtube.com/watch?v=b09YiH6UW2I&list=LL&index=9 (ghost in the shell cardigans paralyzed)