StefanLobbenmeier / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
1.54k stars 61 forks source link

Add "extract audio" option to reduce the size of the downloaded file and automatically extract the audio track from dailymotion/facebook videos #119

Open trimechee opened 6 months ago

trimechee commented 6 months ago

Hello, when we sleep we often listen to rare documentaries in French on crime which only exist on the dailymotion site, for example:

https://www.dailymotion.com/video/x8xx4py

and to save disk space ot quicly transfer the audio files to our samrtphone via snapdrop website for exemple, it will be great to automatically extract the audio track with this automatic audio extraction preset for dailymotion and facebook videos :

-f bestaudio/worst

or

-f bestaudio/worst -x

Thank you so much !

StefanLobbenmeier commented 6 months ago

Can you elaborate on the /worst part of the format selection? Shouldn’t -f bestaudio -x be enough?

trimechee commented 6 months ago

With the "bestaudio" preset, according to my test, very fast and smooth downloading no problem, perfect 128 kb/s audio quality, with the "worsaudio" preset, very slow downloading and I was used to using yt-dlp with aria2c to speed up the download with the worstaudio preset, in addition with the "worstaudio" preset, it is impossible to move in the audio file hence the importance of adding "-x" i.e. the perst worst audio must be in the form " -f bestaudio -x", the problem I often use the "bestaudio" preset, but neither dailymotion nor facebook are compatible with this bestaudio preset and I have to delete this preset " bestaudio" when I download dailymotion and facebook videos and reactivate this "bestaudio" preset only with youtube videos which is tiring and boring, so our dream please is to have a universal preset that works with all sites and the preset" -f bestaudio/worst -x" seems to fix this problem and downloads audio from all sites and seems to convert the dailymotion video to an "m4a" audio file in some cases according to my tests like for this video:

https://www.dailymotion.com/video/x8mdd2c ....so my request please is to add an optional preset "-f bestaudio/worst -x" or "-f bestaudio/worst" which works with all sites, thank you very much!

StefanLobbenmeier commented 6 months ago

I see, I guess for dailymotion bestaudio does not work, if there are no pure audio formats. You could use-f bestaudio* -x but it might have a big video attached to it. But you would rather have worse audio than having to download a bigger video?

ba, bestaudio: Select the best quality format that contains audio. It may also contain video.

trimechee commented 6 months ago

Ohh very very instructive interesting sensational ! I will try to test these new presets !!

Yes i prefer of course worse audio than having to download a bigger video !

Regarding dalymotion videos, yes bestaudio preset doesn't work, and with recent changes in facebook videos, bestaudio preset no longer works with facebook videos.....in dailymotion, there are only 360p, 480p, 720p or 1080p video quality....and unfortunately no dash audio.....so the difference in size between a dailymotion 380p video and a full HD video is huge.....the ideal is that our beloved Youtube-dl-gui downloads the 360p video then tries to automatically extract the audio track from the video so we save disk space especially since there are SSDs in entry-level notebooks of only 128Gb and with frequent Windows updates, disk space can be lacking especially if we download a lot of documentaries from dailymotion, or from Facebook....in any case thank you very much to have considered my request and thank you so much for your precious help ! 💯 🥇