Author Topic: Youtube-dl front end  (Read 4197 times)

0 Members and 1 Guest are viewing this topic.

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Youtube-dl front end
« on: March 26, 2018, 12:00:14 pm »
After looking at Dave raint about not finding easy video download tool,I decided to finally make this code public. It was written in netbeans like a noob.


For whosoever is good at programming and can improve my code,use it...

how it was originally designed to be used-instructions-
  • load the page of playlist you intend to download,on chrome
  • press cltr+shift+i
  • copy the '<body>' element
  • paste it into ,where it says 'input source here'
  • click 'generate commands' for highest quality video, or click 'quick 360p' for 360p video with best audio
  • copy the output and paste it into command line of linux if you have youtube-dl installed

attached- executable- executable.zip
source code-video command maker source.zip
 

Offline IanMacdonald

  • Frequent Contributor
  • **
  • Posts: 944
  • Country: gb
    • IWR Consultancy
Re: Youtube-dl front end
« Reply #1 on: March 26, 2018, 12:46:21 pm »
Arrrgh, 'ere be just the thing to deal with the likes of you..



 :popcorn:
 

Offline Ampera

  • Super Contributor
  • ***
  • Posts: 2566
  • Country: us
    • Ampera's Forums
Re: Youtube-dl front end
« Reply #2 on: March 26, 2018, 12:52:37 pm »
Technically, since YouTube is a video site upon which you stream (download) videos, capturing that stream and storing it isn't really doing anything want.

YouTube isn't exactly happy that you can do that, largely because they want to sell you that nice feature on YouTube Red, and downloading MP3s (or M4As for the civilized among us) full of YouTube music is something that almost everybody has done.

I mean, you are downloading the content to begin with. It's being stored locally, but then deleted shortly after. You're just not getting rid of the information after you receive it, similar to how TV recording works. Recording something you can be sent instantaneously (or near instantaneously) is not illegal with my (unprofessional) knowledge, and in my nation, as far as I know.

What I normally do for downloading YouTube videos is just go to a random YouTube downloader site off Google, and try it. If it doesn't work, onto the next one.
« Last Edit: March 26, 2018, 12:54:40 pm by TwoOfFive »
Professional complainer-in-chief criticizing other people's code
Programmer and bumbling Unix fool
Op @ EEVBlog IRC: irc.austnet.irc #eevblog
 

Offline aveekbh

  • Regular Contributor
  • *
  • Posts: 62
  • Country: in
Re: Youtube-dl front end
« Reply #3 on: March 26, 2018, 01:31:01 pm »
For youtube-dl, one also needs ffmpeg to merge the audio and video (they are separate streams for HD). Also, it's possible to select the best quality for a given vertical resolution.

Code: [Select]
-f bestvideo[height<=?1080]+bestaudio/best
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #4 on: March 26, 2018, 03:33:56 pm »
For youtube-dl, one also needs ffmpeg to merge the audio and video (they are separate streams for HD). Also, it's possible to select the best quality for a given vertical resolution.

Code: [Select]
-f bestvideo[height<=?1080]+bestaudio/best

My program allows that...
1-check 'custom wrapper' check box
2-write ' youtube-dl -f bestvideo[height<=?1080]+bestaudio/best "https://www.youtube.com/watch?v= "       'in  the start of wrapper text box
3-write ' "; in the end of wrapper text box
4- click generate custom wrapper and vola...
then paste the output in linux terminal
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #5 on: March 26, 2018, 03:36:37 pm »
Technically, since YouTube is a video site upon which you stream (download) videos, capturing that stream and storing it isn't really doing anything want.

YouTube isn't exactly happy that you can do that, largely because they want to sell you that nice feature on YouTube Red, and downloading MP3s (or M4As for the civilized among us) full of YouTube music is something that almost everybody has done.

I mean, you are downloading the content to begin with. It's being stored locally, but then deleted shortly after. You're just not getting rid of the information after you receive it, similar to how TV recording works. Recording something you can be sent instantaneously (or near instantaneously) is not illegal with my (unprofessional) knowledge, and in my nation, as far as I know.

What I normally do for downloading YouTube videos is just go to a random YouTube downloader site off Google, and try it. If it doesn't work, onto the next one.

To be honest..I made this tool cause I download 500+ videos where I get fast and free internet and then I watch it one by one offline

now try pasting that many links into a download website.

I know this is borderline illegal but not illegal though
 

Online BrianHG

  • Super Contributor
  • ***
  • Posts: 3766
  • Country: ca
Re: Youtube-dl front end
« Reply #6 on: March 26, 2018, 03:40:53 pm »
I used to just capture my system video desktop & audio & re-encode.  I wonder if it still works.  I wonder if it can even be prevented?
__________
BrianHG.
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 6416
  • Country: gb
Re: Youtube-dl front end
« Reply #7 on: March 26, 2018, 03:45:57 pm »
For youtube-dl, one also needs ffmpeg to merge the audio and video (they are separate streams for HD). Also, it's possible to select the best quality for a given vertical resolution.

Code: [Select]
-f bestvideo[height<=?1080]+bestaudio/best

My program allows that...
1-check 'custom wrapper' check box
2-write ' youtube-dl -f bestvideo[height<=?1080]+bestaudio/best "https://www.youtube.com/watch?v= "       'in  the start of wrapper text box
3-write ' "; in the end of wrapper text box
4- click generate custom wrapper and vola...
then paste the output in linux terminal

So how is this superior to just running the command? You uh, go through a long series of steps to extract information youtube-dl extracts for itself, click some buttons, then copy and paste the same command you could've just run in the first place?
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #8 on: March 26, 2018, 03:55:58 pm »
For youtube-dl, one also needs ffmpeg to merge the audio and video (they are separate streams for HD). Also, it's possible to select the best quality for a given vertical resolution.

Code: [Select]
-f bestvideo[height<=?1080]+bestaudio/best

My program allows that...
1-check 'custom wrapper' check box
2-write ' youtube-dl -f bestvideo[height<=?1080]+bestaudio/best "https://www.youtube.com/watch?v= "       'in  the start of wrapper text box
3-write ' "; in the end of wrapper text box
4- click generate custom wrapper and vola...
then paste the output in linux terminal

So how is this superior to just running the command? You uh, go through a long series of steps to extract information youtube-dl extracts for itself, click some buttons, then copy and paste the same command you could've just run in the first place?


Like I said..Compared to copying 500+ links one by one. I let the playlist of videos that I want to see,get accumulated then I download them all in one go.

Instead of copying links 500 times to a website,this is much simpler 


Oh...I think you misunderstood the instructions
you have to copy the while output (cltr+a then cltr+c) and then paste it into terminal and it does downloading automatically.

I hope you know how to run multiple commands sequentially...this uses that method
« Last Edit: March 26, 2018, 03:57:53 pm by Raj »
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 6416
  • Country: gb
Re: Youtube-dl front end
« Reply #9 on: March 26, 2018, 03:56:40 pm »
For youtube-dl, one also needs ffmpeg to merge the audio and video (they are separate streams for HD). Also, it's possible to select the best quality for a given vertical resolution.

Code: [Select]
-f bestvideo[height<=?1080]+bestaudio/best

My program allows that...
1-check 'custom wrapper' check box
2-write ' youtube-dl -f bestvideo[height<=?1080]+bestaudio/best "https://www.youtube.com/watch?v= "       'in  the start of wrapper text box
3-write ' "; in the end of wrapper text box
4- click generate custom wrapper and vola...
then paste the output in linux terminal

So how is this superior to just running the command? You uh, go through a long series of steps to extract information youtube-dl extracts for itself, click some buttons, then copy and paste the same command you could've just run in the first place?


Like I said..Compared to copying 500+ links one by one. I let the playlist of videos that I want to see,get accumulated then I download them all in one go.

Instead of copying links 500 times to a website,this is much simpler

youtube-dl understands playlists.
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #10 on: March 26, 2018, 03:59:19 pm »
try it.
normally youtube dl can download small playlists only
when you have a large playlist like in my case,you have to use this method
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 6416
  • Country: gb
Re: Youtube-dl front end
« Reply #11 on: March 26, 2018, 04:01:14 pm »
I'm afraid I don't have any unusably large playlists to try.
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #12 on: March 26, 2018, 04:04:27 pm »
I'm afraid I don't have any unusably large playlists to try.
I'm afraid I can't give you mine since that'll destroy my anonymity

but i'll google one for you
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #13 on: March 26, 2018, 04:05:39 pm »
here-https://www.youtube.com/playlist?list=PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI

Don't want to use my tool...no problem.If you want to use it or improve it,go ahead but let me know of the upgrades done to it
« Last Edit: March 26, 2018, 04:10:38 pm by Raj »
 

Offline Ampera

  • Super Contributor
  • ***
  • Posts: 2566
  • Country: us
    • Ampera's Forums
Re: Youtube-dl front end
« Reply #14 on: March 26, 2018, 04:17:32 pm »
"borderline illegal"

Something's either illegal or it's not. As an American, I believe I am within my rights to capture whatever traffic can be legally sent to me at any instant.
Professional complainer-in-chief criticizing other people's code
Programmer and bumbling Unix fool
Op @ EEVBlog IRC: irc.austnet.irc #eevblog
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #15 on: March 26, 2018, 04:21:52 pm »
it'll be illegal as soon as someone else gets hold of my downloads or if i attempt to reupload it somewhere or if I download songs.
 

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 6416
  • Country: gb
Re: Youtube-dl front end
« Reply #16 on: March 26, 2018, 04:28:31 pm »
here-https://www.youtube.com/playlist?list=PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI

$ youtube-dl https://www.youtube.com/playlist?list=PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading webpage
[download] Downloading playlist: The Longest Mixtape - 1000 Songs For You
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading page #1
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading page #2
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading page #3
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading page #4
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading page #5
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading page #6
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading page #7
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading page #8
[youtube:playlist] PL4lEESSgxM_5O81EvKCmBIm_JT5Q7JeaI: Downloading page #9
[youtube:playlist] playlist The Longest Mixtape - 1000 Songs For You: Downloading 997 videos
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #17 on: March 26, 2018, 04:50:09 pm »
Good for you. Most of the times I get an error or it skips some videos
Plus ever since I've made that applet,I don't have to refer to my notes each and every time I have to download videos

I'll have to say, it's usefulness is subjective from person to person.
It might be totally useless to you but it's very useful to me

It took less time for me to write the code than what it was taking me figuring out why the playlist download function wasn't working. Basically it's a noob's way out of a headache
« Last Edit: March 26, 2018, 04:59:28 pm by Raj »
 

Online rdl

  • Super Contributor
  • ***
  • Posts: 2985
  • Country: us
Re: Youtube-dl front end
« Reply #18 on: March 26, 2018, 05:20:19 pm »
I have a hard time understanding what could be illegal about downloading youtube videos when I can watch it for free by streaming. After all, youtube doesn't create anything. Pretty much all their content is provided free by their users. If I find something on youtube I want to keep in case they go away in the future, then I'll download a copy.
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #19 on: March 26, 2018, 05:26:19 pm »
I know, laws are stupid to engineers
Download and keeping them is ok but sharing is not
 

Offline Ampera

  • Super Contributor
  • ***
  • Posts: 2566
  • Country: us
    • Ampera's Forums
Re: Youtube-dl front end
« Reply #20 on: March 26, 2018, 06:52:31 pm »
It's the same deal with recording TV shows. You can't knowingly give someone a copy of your taped TV show. I wonder if you could give them your only copy though....

Despite pondering at now useless real life applications of something that would never be caught anyways (giving a physical tape of a TV show to someone) I used to do this regularly when internet wasn't reliable or I had to go away somewhere without it. Full YouTube catalogue of all my favourites right on an external hard drive!
Professional complainer-in-chief criticizing other people's code
Programmer and bumbling Unix fool
Op @ EEVBlog IRC: irc.austnet.irc #eevblog
 

Offline HighVoltage

  • Super Contributor
  • ***
  • Posts: 4441
  • Country: de
Re: Youtube-dl front end
« Reply #21 on: March 26, 2018, 07:02:46 pm »
Why not using a tool like IDM (Internet Download Manager) that even gives you the option on resolution to download?
It has always worked for me.

There are 3 kinds of people in this world, those who can count and those who can not.
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 2388
  • Country: ro
Re: Youtube-dl front end
« Reply #22 on: March 26, 2018, 07:09:03 pm »
"borderline illegal"

Something's either illegal or it's not. As an American, I believe I am within my rights to capture whatever traffic can be legally sent to me at any instant.

Well, it's illegal then, American or not.
YouTube license is pretty clear with that: no download allowed (unless YouTube offers you a download feature for the specified video). Also, no add blocker allowed.

Online Monkeh

  • Super Contributor
  • ***
  • Posts: 6416
  • Country: gb
Re: Youtube-dl front end
« Reply #23 on: March 26, 2018, 07:22:18 pm »
Good for you. Most of the times I get an error or it skips some videos

--ignore-errors - removed or region locked videos won't work any better doing them one by one..

Why not using a tool like IDM (Internet Download Manager) that even gives you the option on resolution to download?
It has always worked for me.

Why not using a tool like youtube-dl that even gives you the option on resolution to download?
It has always worked for me.
 

Online rdl

  • Super Contributor
  • ***
  • Posts: 2985
  • Country: us
Re: Youtube-dl front end
« Reply #24 on: March 26, 2018, 08:06:20 pm »

YouTube license is pretty clear with that: no download allowed (unless YouTube offers you a download feature for the specified video). Also, no add blocker allowed.

Where exactly is that? I gave a quick look at their "Terms" but didn't see downloading or ad blockers specifically mentioned.

edit: I found the "no downloading" part (good luck with that youtube), but I'm still looking for "no ad blockers".
« Last Edit: March 26, 2018, 08:12:29 pm by rdl »
 

Offline Ampera

  • Super Contributor
  • ***
  • Posts: 2566
  • Country: us
    • Ampera's Forums
Re: Youtube-dl front end
« Reply #25 on: March 26, 2018, 08:08:32 pm »
"borderline illegal"

Something's either illegal or it's not. As an American, I believe I am within my rights to capture whatever traffic can be legally sent to me at any instant.

Well, it's illegal then, American or not.
YouTube license is pretty clear with that: no download allowed (unless YouTube offers you a download feature for the specified video). Also, no add blocker allowed.

As stated, I'm not a lawyer and work off what I know, but I believe you may be confusing a civil agreement and the breaking of a law.

Licenses list terms of service, upon the breach of which (unless it is a signed, notarized document detailing the civil promises made to a body, upon the breach of which no law has been broken, yet you have violated a civil agreement and can be sued and be required to pay damages or, if applicable, submit to some other criteria) all YouTube can really do is deny you access to their services, unless you have also committed some other crime against them.

The capturing and keeping of packets legally sent to you for personal use I do not believe is illegal in the same way capturing and keeping television (formerly signals now digital data) content for personal use. It's the reason, as I said, to my knowledge, you can tape a radio station and use the recording for your own personal uses (defining personal uses as, consuming the content again without redistribution).

Terms of services are written as legal documents, but their effect as contracts is dubious at best and completely worthless at worst. They are intended to set terms they intend you to follow for continued use of their services (hence why it's called terms of service) and often include details on liability of said services, for example as a way to absolve their liability should you do anything illegal on their sites, so long as they actively seek to remove that content.

Again, this is the US law as I know it. You're from Romania, so the laws and extent of unsigned, and often unread civil agreements may be different, but there's a VERY important distinction between civil and criminal courts, and just because YouTube tells you not to download their videos, doesn't mean is a law nor legally binding in any way. They can tell you not to breathe too, but that's not likely to stand up in any court either.
Professional complainer-in-chief criticizing other people's code
Programmer and bumbling Unix fool
Op @ EEVBlog IRC: irc.austnet.irc #eevblog
 

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 2388
  • Country: ro
Re: Youtube-dl front end
« Reply #26 on: March 26, 2018, 08:50:42 pm »
Thank you for pointing out the differences between something being illegal and the terms of service infringement, I didn't know that. It seems that I was wrong calling that illegal.
 
The following users thanked this post: Ampera

Offline TerraHertz

  • Super Contributor
  • ***
  • Posts: 3707
  • Country: au
  • Why shouldn't we question everything?
    • It's not really a Blog
Re: Youtube-dl front end
« Reply #27 on: March 28, 2018, 09:57:42 am »
Till recently I had been using keepvid.com. An online downloader which worked very well, usually amazingly fast.

Then a few days ago keepvid got copyright-Borged. The site is suddenly just some bizarre exhortation to not violate copyright, and why you should obey youtube terms of service.  Apparently written by mentally ill robots. Article about that:
https://betanews.com/2018/03/21/youtube-download-site-keepvid-dead/
 "Popular YouTube download site KeepVid no longer allows downloads -- educates against copyright theft."

Personally, I think it has little to do with copyright; more to do with Alphabet/Youtube/FB/Twitter wanting to stop people downloading and passing around videos which the censors would rather disappeared completely and forever, the instant youtube deletes them. Samizdat video sharing makes it harder to control the narrative. I can think of some notable recent instances.


A quick look around turned up a few alternatives, and I first tried  http://jdownloader.org
It's an installable. Works with a very large number of streaming sources and web sites. So far I'm impressed. Also I notice it doesn't have any trouble downloading videos that youtube refused to allow to download via keepvid. It gets rapidly updated to deal with streaming site attempts to kill it. First use isn't so intuitive, just look for youtube videos on how to install & run it. Ironic.

Other names that turned up, that I haven't tried:
* Free Mp3 Finder
* XDM - an alternative to IDM and is open source.
* aTube Catcher   Youtube only
* Any Audio Converter   http://www.any-audio-converter.com/any-audio-converter.php
* Any Video Conterter   http://www.any-video-converter.com/products-freeware/
* y2mate.com  (online, no install)
* youtube-dl. http://rg3.github.io/youtube-dl/  Open-source Python utility, runs on the command line (no fancy GUI) and does everything you'd expect it to do, including downloading YouTube metadata (upload date, description, etc.) as an auxiliary JSON file.
   

Collecting old scopes, logic analyzers, and unfinished projects. http://everist.org
 

Offline Ampera

  • Super Contributor
  • ***
  • Posts: 2566
  • Country: us
    • Ampera's Forums
Re: Youtube-dl front end
« Reply #28 on: March 28, 2018, 11:47:28 am »
Something I recently found out VLC could do (It's a jack of all trades innit?)

To download a YouTube video with it, just load the YouTube video as a stream (File>Open Network Stream). You just need to put the link in that dialog.

Next go to Tools>Codec Information and copy the link in the location box into any web browser. That's the direct link to the video, and it will either save it, or in the case of my browser (Chrome) you can right click and save video as just like you would do an image.
Professional complainer-in-chief criticizing other people's code
Programmer and bumbling Unix fool
Op @ EEVBlog IRC: irc.austnet.irc #eevblog
 
The following users thanked this post: Raj, BrianHG

Online RoGeorge

  • Super Contributor
  • ***
  • Posts: 2388
  • Country: ro
Re: Youtube-dl front end
« Reply #29 on: March 28, 2018, 03:11:56 pm »
A downloader is very useful, thank you Raj.  :-+

Censorship and privacy are not the only concerns. "Data rot"-like problems are also real, even if it shouldn't be.

Look what may happen to your video if you let it on youtube for too long:



That was a fluid, crystal sharp video that I added to my favorites list in the year 2006. I am absolutely sure the quality was very good, and it is the same link.
Now, the same video has an un-watcheable quality.

For occasional use, y2mate.com worth mentioning. No install or subscription required, similar with what keepvid used to be before it was killed.

Offline mdijkens

  • Regular Contributor
  • *
  • Posts: 138
  • Country: nl
Re: Youtube-dl front end
« Reply #30 on: March 28, 2018, 04:17:14 pm »
I downloaded youtube-dl-gui for Windows Portable and just run it
youtube-dl-gui at Github

To test playlists I downloaded this one during the night:
Code: [Select]
https://www.youtube.com/watch?v=AUwbtG6z6pI&list=PL5Qevr-CpW_yZZjYspehnFc-QRKQMCKHB]EEVblog complete playlist
So now I have all 1089 EEVblog episodes locally  ;D
« Last Edit: March 29, 2018, 09:46:15 am by mdijkens »
 
The following users thanked this post: Ampera

Offline Ampera

  • Super Contributor
  • ***
  • Posts: 2566
  • Country: us
    • Ampera's Forums
Re: Youtube-dl front end
« Reply #31 on: March 28, 2018, 04:46:52 pm »
Now THAT looks useful.
Professional complainer-in-chief criticizing other people's code
Programmer and bumbling Unix fool
Op @ EEVBlog IRC: irc.austnet.irc #eevblog
 

Offline Raj

  • Frequent Contributor
  • **
  • Posts: 527
  • Country: in
  • Self taught, experimenter, noob(ish)
Re: Youtube-dl front end
« Reply #32 on: March 29, 2018, 06:35:19 am »
That looks quite handy
 

Offline Kelima

  • Newbie
  • Posts: 1
  • Country: ao
Re: Youtube-dl front end
« Reply #33 on: April 06, 2020, 05:57:24 am »
I think https://www.freeonlineconverter.net is at the moment a great yt converter
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf