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

0 Members and 2 Guests 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: 6415
  • 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: 6415
  • 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: 6415
  • 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: 6415
  • 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 »
 

Offline 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: 2387
  • 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: 6415
  • 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.
 

Offline 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 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf