 And welcome in this video. We're gonna add on to what we did last time last time We looked at a few different news channels and we looked at how to stream them using MPV So if you want to use your own media player that way you don't have to worry about You know ads and whatnot on the channel or just because you like using your media players such as I do But today we're gonna look at actually downloading some of those videos So let's work in reverse well last time we ended on NBC dash to comm which is my local news channel One of the local news channels and again, these are just the first channels that came up in a web search I'm not promoting any news channel. I know that's a touchy subject these days. I actually Try not to watch any news channel But here this they stream using YouTube so it's very easy. I can grab their YouTube URL here and I have YouTube DL installed So YouTube dash DL which you can install from your repositories most time But it's one of the few programs. I do suggest YouTube dash DL going to their website and Going to downloads and they give you instructions right here easy using curl or W get it's just two commands It's download it and make it executable download makes useful can also use pip if you want to I usually just use one of these first two commands and the reason for that is because YouTube DL allows you to download files not only from YouTube, but a lot of different sites and Especially YouTube they change their website a lot to help to prevent people from from doing this And usually within 24 hours YouTube DL is updated, but it's not necessarily updated in your repositories that fast So it's very I Would want since it needs to be updated so much I would use this and then you can just use once it's installed you can do pseudo YouTube DL dash capital U And type in your super secret password and we'll check to see if you're at the latest version and I am up to date I updated yesterday or day before in fact, I've been meaning to put it in a cron job So it tries to do that once a day anyway You have to have YouTube DL installed and what we're gonna do is we're gonna say YouTube DL And they're just gonna give it the URL. So we'll go back here. We'll go back here I'll just copy this and paste that URL and it will start downloading that live stream Great. So if we open this up, I open up another shell here I can list this out. I can list these files out. You can see this file right here. It's downloading. It's 2.8 megabytes I check it again. It's now for I'll check it again, and it's at five So it's downloading that file. It's downloading live stream YouTube DL Does all the work for you on a channel like YouTube such as that and then when I'm done I can come up here and I can just hit control C to kill that the only issue with that is Oh, no, it worked at times. Sometimes if you I did hit Q first I'm not sure if Q killed it or my control C if you kill it and still has the dot part You might just want to remove that but we should be able to check that and it says here that it is an MP4 file I can now MP4 or MPV that MP4 and when I hit that it's gonna play what we just Downloaded so we downloaded the stream as it was going You know, we didn't get anything before we were recording But as we're recording it's downloading it as it goes So that's one way to download live stream as you're going if it's on a simple YouTube website But luckily YouTube DL also makes it easy to download from other sites as well So let's go back here and we'll go back up now We'll go to CBS news calm and and we'll open up our console again You can hit F12 or control shift I in Chrome I'm going to clear this and click watch and then we'll filter here again We'll look for our M3U. We'll grab that first one here I'll say copy this URL and we should just be able to say YouTube DL and then in quotations paste that M3U file and YouTube DL knows how to look at that M3U file and now it's downloading that M3U again we can go like this and It's going to by fault name it name of that file which we'll talk about in a moment So if I list this out you can see here that we've downloaded 6.8 megabytes so far if I run it again you see now that it's 8 so it is growing if I come back up here Let me hit Q real quick See what happens It's still going okay, so this particular case. I'm gonna hit control C to kill that I don't know if there's a better way to do that. I'll control C because it's second to finish up and Now we will list out our files again and this particular case it left that dot part there So what I'll do is I'll in this case. I'll just move that file So master to master so it's just named MP4 just so it doesn't have that part at the end But I should be able to say play that file now and it is playing what we have recorded You can see we recorded 42 seconds worth of the stream So few things there We did it when we hit control C it left that dot part at the end and then we had to rename it And it's also named here at master or CBS news dot MP4, which isn't too bad But if we go back up to our YouTube DL here, you can see I guess it did pull that name from there I was gonna say anyway We should be able to say dash oh and give it a name and I'll just call it CBS news Dot MP4 I'm pretty sure that's the argument for that and there we go it's now downloading it and I can hit control C and in this particular case since I gave it a Name there. Let's see what happens Now I did do a dot there is a command in for for it so it doesn't add that part split real quick. Let's just move This to this and now we can do this CBS news and again It streamed it there downloaded the stream real quick. I forgot the command. Let's do man YouTube dash DL Oh, I guess I don't have the man page for it install probably because I downloaded from the website rather than using our repositories There is a command to tell it not to put the dot part the dot part is just because it's while it's downloading it calls Dot part because it's partially downloaded and then when it's done it usually removes it since I killed it It's not removing it. There's probably a better way to kill it kill the process But I know there's also an argument. Let's do YouTube DL dash H for help and let's rep part There we go no part boom, so we should be able to run this command again and We'll say dash dash no part And let us call this underscore 2 here. So I'll run that for a moment Give it a couple seconds So that it downloads some of it And after a few seconds I'll hit control C and in this particular case it didn't have the dot part So that's how you would prevent that dot part in this particular case MPV I should be able to play what we captured. So there we go. So, yeah, MPR YouTube DL is a great Program for downloading not only from YouTube from other sites a lot of other sites You can give it just you know the the URL from the page, but lots of times it that doesn't work But I didn't want to show you that's what I want to show you. I just remembered so we have this URL to the playlist if you try to just W get that what you're going to get is the playlist So I did that and you can see it's right here if we cut that out Master that and through you. It's it's the playlist information So it's grabbing the playlist information, which is giving a list of other playlists again I think these are different qualities and M3 sorry YouTube DL is smart enough to know that I gave it a URL that it's going to use that domain that base URL to add to this to get these files So it's just it does a lot of late work for you and actually it says right here. Yeah, these are different qualities So this master one is looks like the highest resolution. Here's the frame rate With a different bandwidth and then you have different resolutions here So you could specify if you wanted the lower quality one you could tell it to look at this file instead of this master file So we should be able to Just replace that in here. I think let's see Cross my fingers that this oh, and we don't want that we want the YouTube dash DL and we'll do dash. Oh CBS Underscore test mp4 Let's see if that works Yep, so now we should theoretically be downloading the lower quality the lower resolution stream So I will kill that list out my files here That's done That's message repeated one time control C list. So here it is We will move that to that without part because I didn't do the no part thing and if we were to play that CBS underscore test oh Something that time it didn't work if I do file CBS underscore test It says it's medium. Maybe I killed it before it captured enough something went wrong there But theoretically you should be able to capture different Qualities if you want it anyway, I do thank you for watching here That's just options on how to download the videos. So check it out have fun with that and If you didn't watch previous video watch previous video because I showed you how to use the W get to pull the m3u files From at least the CBS website. I do thank you for watching if you enjoyed this video Go ahead and visit my website films by chris.com there. You can search through all my videos You can also go to the support section and There you can donate with PayPal or become a patreon supporter just by clicking on these links And if you like my videos, I would appreciate that if you can't afford the money go ahead and think about You know just liking this video and sharing it with others So I get more views because the more people who watch the better I do thank you for watching It's always I hope that you have a great day