HorizonForumsone horizon
Log inSign up

[ms] · Est. May 2002

Music madethis place,we just kept itgoing...

One durable person. One social graph. Many communities—and every way people speak, share, listen, write, gather and remember.

Forums / General Yakkity Yak

How to download YouTube, Facebook & Instagram videos & audio in highest quality

18 durable postsStarted 2020-06-11Latest 2021-12-20
#180506Post 1 of 18

Came across this handy method to download YouTube, Facebook and Instagram videos and also rip high quality audio files.

First video tutorial shows you how to get setup on youtube-dl

[video=youtube_share;vQfNuc7odvs]https://youtu.be/vQfNuc7odvs[/video]

The second video explains how to download public and private videos on Facebook and Instagram

[video=youtube_share;EjwCSblnMKc]https://youtu.be/EjwCSblnMKc[/video]

By downloading and installing the latest version of the youtube-dl executable I was also able to use DVDFab Downloader properly. You can download a free trial here:[URL]https://www.dvdfab.cn/video-downloader/download-videos-from-any-site.htm[/URL]

#1797337Post 2 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

has this been certified or is it just a plug?

#1797342Post 3 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

Youtube-dL is legit I use it all the time

#1797353Post 4 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

I haven't tried it but based on its GitHub at [URL]https://github.com/ytdl-org/youtube-dl[/URL] it [I]should[/I] be working... once you learn how to use it. I never used it, primarily because I never have a Python installation around that makes it happy enough to run correctly.

Keep in mind that each source (Twitch, YouTube, etc) does Dynamic Adaptive Streaming over HTTP (DASH) in a different way, so basic knowledge of how this works should be required anyways, IMO.

And some sources like Mixcloud and Mixcloud Select don't even offer high-res streams and/or downloads, so tools like that would be pointless to be used there.

Once you learn that, it's basically easier to do it manually, with a bunch of Bash/Zsh scripts, aria2c, ffmpeg, etc.

#1797362Post 5 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

^^^I love you technical guys who think " It's basically easy to do it" :lol:

#1797378Post 6 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

[QUOTE=DIDI;1227293]^^^I love you technical guys who think " It's basically easy to do it" :lol:[/QUOTE]

you said it! :lol:

#1797390Post 7 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

If you want to download just audio watch this:

[video=youtube;zReDV9VjmeE]https://www.youtube.com/watch?v=zReDV9VjmeE&t=1s[/video]

#1797395Post 8 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

Very nice! According to the docs, you only need to pass [B]-x[/B] and omit [B]-audio-format [/B]and then it'll try to grab the 'best' stream by default for you.

#1797493Post 9 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

Ok guys , I need a simple, safe mp3 joiner for mac. Any recommendations

Found one :)

#1797502Post 10 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

If you use the Terminal, you could try something like this

brew install sox sox file1.mp3 file2.mp3 file3.mp3 output.mp3

#1797516Post 11 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

Found a nice elegant , simple app on the app store. :)

#1799018Post 12 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

Most commonly used Youtube-dl commands:

  1. Download video or playlist youtube-dl
  2. Download multiple videos youtube-dl
  3. Download audio-only from a video youtube-dl -x
  4. Download audio in mp3 format youtube-dl -x --audio-format mp3
  5. Download video with description, metadata, annotations, subtitles and thumbnail youtube-dl --write-description --write-info-json --write-annotations --write-sub --write-thumbnail
  6. Download private videos youtube-dl "" --username --password
  7. Display the size of Youtube videos youtube-dl -F
  8. Download videos in certain quality and/or format youtube-dl -f best youtube-dl -f bestaudio Merge files youtube-dl -f bestvideo+bestaudio Separate files youtube-dl -f 'bestvideo,bestaudio' -o '%(title)s.f%(format_id)s.%(ext)s' Best quality video 480 pixel resolution youtube-dl -f "best[height<=480]" Best quality no better than 480p youtube-dl -f 'bestvideo[height<=480]+bestaudio/best[height<=480]'
  9. Download videos using format code youtube-dl --list-formats youtube-dl -F Then use code displayed LHS youtube-dl -f Enter multiple formats LHS preferred youtube-dl -f <code/code/code>
  10. Download videos by file extension youtube-dl --format mp4 youtube-dl -f mp4 Download best available formats youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' Download with custom file name youtube-dl -f mp4 -o '%(title)s.f%(format_id)s.%(ext)s'
  11. Set size limits for videos youtube-dl --min-filesize 100M <playlist_url> youtube-dl --max-filesize 100M <playlist_url> Download best video-only not bigger than 100MB youtube-dl -f 'best[filesize<100M]'
  12. Download videos by date-wise youtube-dl --date <year/month/day> On or before a specific date youtube-dl --datebefore <year/month/day> On or after a specific date youtube-dl --dateafter <year/month/day> In the last 6 months youtube-dl --dateafter now-6months Between specific dates youtube-dl --dateafter <year/month/day> --datebefore <year/month/day>
  13. Download specific videos from playlist (eg. 10th file) youtube-dl --playlist-items 10 <playlist_url> Multiple random files (eg. 2,3,7,10) youtube-dl --playlist-items 2,3,7,10 <playlist_url> Download from certain video (eg. 10) youtube-dl --playlist-start 10 <playlist_url> Specific range of files (eg. 2nd to 5th) youtube-dl --playlist-start 2 --playlist-end 5 <playlist_url>
  14. Download only videos suitable for specific age (eg. 7 years, NSFW) youtube-dl --match-title "" --age-limit 7 --reject-title "nsfw" <playlist_url></li> <li>Resume downloads youtube-dl -c <url></li> <li>Download in an mp4 container youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' <url></li> <li>Download with a shorter name youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]' -o video.mp4 <url></li> </ol>
#1799204Post 13 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

Anyone know if these two dj sets can be ripped in something better than 128kbps or is that the max quality streams for them?

Tried to rip them using the basic YouTube stream rip sites and they only save them at 128kbps, which is crap.

Anyone else able to see if they can be ripped in higher quality?

[video=youtube_share;eDzagqM9Z4o]https://youtu.be/eDzagqM9Z4o[/video]

[video=youtube_share;5ak6Woxu95A]https://youtu.be/5ak6Woxu95A[/video]

#1799411Post 14 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

Unfortunately no. If you run the following script: youtube-dl --list-formats [I][/I] you will see that best audio is m4a 128k (44.1KHz)

DJ Yoda URL: [URL]https://youtu.be/eDzagqM9Z4o[/URL] [ATTACH=CONFIG]13706[/ATTACH]

Trance Wax URL: [URL]https://youtu.be/5ak6Woxu95A[/URL] [ATTACH=CONFIG]13707[/ATTACH]

#1799412Post 15 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

For those having trouble with downloading using youtube-dl because of certificate error, i.e. "Youtube-dl download failed [<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)>]", I came across several fixes that might help you.

The quick fix that worked for me was to simply add the following script after the --no-check-certificate

Found the solution here: [URL]https://github.com/ytdl-org/youtube-dl/issues/11573#issuecomment-269896421[/URL]

There's also mention of a fix that removes expired Certificates (but that didn't help me) here's the steps:

[QUOTE]For anyone else having the issue, here are the steps that were posted to manually remove a cert: run certmgr.msc menu -> action -> find certificates. choose "look in fields: issued to" at the "contains" field type "google". click "find now" mark all the expired certs (useful to sort by exp. date) right click and choose "delete" [/QUOTE] Finally another solution I found, but haven't tried yet is: [QUOTE] You can redirect the download directory for youtube-dl to avoid this error :1. first locate your "settings.json" usually in "C:\Users\AppData\Roaming\youtube-dlg" 2. edit the last line ("youtubedl_path".............. ") and change the path to something practical like C:\youtube-dl 3. paste the latest youtube-dl.exe downloaded from this url [URL]https://github.com/ytdl-org/youtube-dl/releases/[/URL] Probably you need to make the copy a a fresh .exe time to time to get the latest version but its straight and works. This is a way to manually update the library avoiding the certificate error.[/QUOTE]

If you didn't know already to make sure you're running the latest version of youtube-dl run the following script: youtube-dl -U

Hope this information helps. ;)

#1803280Post 16 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

For those wondering about the legal implications you might want to read this: [URL="https://thenextweb.com/dd/2020/10/27/github-took-down-youtube-dl-so-devs-made-more-copies/"]https://thenextweb.com/dd/2020/10/27/github-took-down-youtube-dl-so-devs-made-more-copies/[/URL]

Still works for me, late October 2020.

#1803325Post 17 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

Sometimes 128K MP3 is exactly what the uploader kept the music at.

#1811209Post 18 of 18

Re: How to download YouTube, Facebook & Instagram videos & audio in highest quality

For those still using Youtube-dl you'll be glad to know there's an updated version available here: [URL]https://github.com/ytdl-org/youtube-dl/releases/tag/2021.12.17[/URL] 8)

Log in to reply