This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
Replies: 2 comments 3 replies
-
FFMPEG ResultYouTube-DL Result |
Beta Was this translation helpful? Give feedback.
3 replies
-
I think it's also worth taking into account that the examples with It's definitely not wrong to use FFmpeg, but for our own music bot which doesn't use any extra filters, it makes sense to go with youtube-dl because:
At the end of the day, use whatever works best on your own system. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I did a research again on this topic.
FFMPEG codes here second one. [With FFMPEG reconnecting arguments]
YouTube-DL codes here Native Voice Example (music-bot).
Note : Example doesn't have
inLineVolume
enabled by default, so I have turned that ON for both codes.Procedure of conducting the test :
First
FFMPEG
code,Results here or find it down below
As we can see, after running bot in 1 guild, total resources that were used were 55 MB(approx.).
FFMPEG (using 2.7 MB) is used to create a volume interface for bot [IGNORE This one in all cases]
Real FFMPEG used 6.6 MB to play song.
As we connect bot in 2nd guild, total resources that were used were 80 MB (approx.).
Again FFMPEG used 6.8 MB to play song.
Per guild increase in resources(including all (creating audio player, audio resource, creating a FFMPEG instance etc.)) = 80 - 55 MB = 25 MB
Now moving on to
YouTube-DL
code,Results here or find it down below
As we can see, after running bot in 1 guild, total resources that were used 91 MB [Which is 10 MB more than running 2 guilds with FFMPEG]
YouTube-DL used 27 MB (compared to 6.8 MB for ffmpeg ) to play same song.
As we connect bot in 2nd guild, total resources that were used were 140 MB (approx.).
Again YouTube-DL used 27 MB (approx.) to play song
Per guild increase in resources (including all (creating audio player, audio resource, creating a YouTube-DL instance etc.)) = 140 - 91 MB = 49 MB
Now let's compare features of both:
For me personally, I will always prefer FFMPEG over YouTube-DL due to better memory management.
I want to know your thoughts. So let me know by commenting down below.
Beta Was this translation helpful? Give feedback.
All reactions