DenBeke / YouTube-Downloader-for-macOS

Simple menu bar app to download YouTube movies on your Mac
461 stars 47 forks source link

Download Resolution? #5

Closed erfgsthj closed 2 years ago

erfgsthj commented 4 years ago

Hi! Thanks for fixing the crash error from before! You're awesome. Anyway, This downloads at 720p, while this downloads at 360p! How do I pick a resolution? Thank you so so much!

DenBeke commented 4 years ago

It has probably to do something with the encoding. I opted for this app to not use any external dependencies, and thus it only downloads the highest resolutions that can be played on the Mac. (in an mp4 file).

I use the underlying tool youtube-dl with the -f mp4/best command line argument.

If you want full control you can use youtube-dl on the command line and install ffmpeg (you can install both with Homebrew). This gives you full control and enables you to download in the highest possible resolution.

Lord-V15 commented 3 years ago

@DenBeke Can you try removing mp4 and just use -f best for the youtube-dl command ? I use youtube-dl -f best and always get HD format (720p) but when I use your tool, I quite often get 360p videos. Let me know if it's feasible for you to try !

EDIT I just found this out from the youtube-dl docs :

Most people asking this question are not aware that youtube-dl now defaults to downloading the highest available quality as reported by YouTube, which will be 1080p or 720p in some cases, so you no longer need the -b option.

DenBeke commented 2 years ago

I migrated from youtube-dl to yt-dlp. By doing those changes I also changed the command per your suggestions. Downloads are now in 720 for everything I tested.