ffmpeg potential memory leak

Hello, so I'm here because I m searching what's causing these ffmpeg execution to be kept 2 hours in memory. So as I know my bot's having memory leaks and in my search to find out why I'm here to ask you about this line :
node_modules/ffmpeg-static/ffmpeg -i - -analyzeduration 0 -loglevel 0 -acodec libopus -f opus -ar 48000 -ac 2 pipe:1
node_modules/ffmpeg-static/ffmpeg -i - -analyzeduration 0 -loglevel 0 -acodec libopus -f opus -ar 48000 -ac 2 pipe:1
So I know it's ffmpeg and it's used to convert the songs into a proper way so that discord api can send it in vocal. But I'm searching how to clear them properly.
5 Replies
d.js toolkit
d.js toolkit2mo ago
- 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!
✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨
username hidden cause of potential information leaks :[
No description
✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨
In htop it's looking like that, as you can see there's one with over 2h48
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
✨𝓜𝓪𝓲𝓽𝓻𝓮𝓖𝓔𝓔𝓚ツ✨
Yeah, but it's the process used by discord js to launch a song and since my question isn't really related to ffmpeg in particular but more in how discord js use it Ohh I see, so is there any alternative to it right now ?
Want results from more Discord servers?
Add your server