Interesting. Would you be ok to post the code? I'd love to see if I can get rid of the youtube-dl dependency in my browser application. (Though I have a feeling it wouldn't be a simple task)Mijikai wrote:Nice project, the last time i tried to write a downloader i was only able to download video (*.webm) and sound seperately.
I still have the project (i was brutefocing the data container until it contained valid video links).
Direct Youtube video downloader
Re: Direct Youtube video downloader
- NicTheQuick
- Addict
- Posts: 1227
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Direct Youtube video downloader
I don't know any video which can not be downloaded with youtube-dl. But remember to constantly update the python package because Youtube often changes its API.SPH wrote:Do you know a lib that can download any type of video youtube?
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Re: Direct Youtube video downloader
It can not be programmed in PB?NicTheQuick wrote:I don't know any video which can not be downloaded with youtube-dl. But remember to constantly update the python package because Youtube often changes its API.SPH wrote:Do you know a lib that can download any type of video youtube?
http://HexaScrabble.com/
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 5.73LTS - 32 bits
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 5.73LTS - 32 bits
- NicTheQuick
- Addict
- Posts: 1227
- Joined: Sun Jun 22, 2003 7:43 pm
- Location: Germany, Saarbrücken
- Contact:
Re: Direct Youtube video downloader
Why do you want to invent the wheel a second time? Of course you can program it with PB but then you also have to maintain it because it is not an official feature to download Youtube videos. The API can change every time. You can look at the source code of youtube-dl and then convert it to PB. But I don't see the point.SPH wrote:It can not be programmed in PB?NicTheQuick wrote:I don't know any video which can not be downloaded with youtube-dl. But remember to constantly update the python package because Youtube often changes its API.SPH wrote:Do you know a lib that can download any type of video youtube?
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Re: Direct Youtube video downloader
I would like to make a softwareNicTheQuick wrote:Why do you want to invent the wheel a second time? Of course you can program it with PB but then you also have to maintain it because it is not an official feature to download Youtube videos. The API can change every time. You can look at the source code of youtube-dl and then convert it to PB. But I don't see the point.SPH wrote:It can not be programmed in PB?NicTheQuick wrote:I don't know any video which can not be downloaded with youtube-dl. But remember to constantly update the python package because Youtube often changes its API.SPH wrote:Do you know a lib that can download any type of video youtube?
http://HexaScrabble.com/
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 5.73LTS - 32 bits
!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 5.73LTS - 32 bits
Re: Direct Youtube video downloader
Just tried:
https://www.youtube.com/watch?v=JFFMh2OXikY
http://youtube.rsbasic.de/?v=JFFMh2OXikY
results in 0 byte.
I think youtube changed something (again)
If the code of https://github.com/Athlon1600/youtube-downloader is adapted, maybe I try it to use it directly in PB with our libcurl.pbi
Ups ... your demo link still works.
https://www.youtube.com/watch?v=JFFMh2OXikY
http://youtube.rsbasic.de/?v=JFFMh2OXikY
results in 0 byte.
I think youtube changed something (again)
If the code of https://github.com/Athlon1600/youtube-downloader is adapted, maybe I try it to use it directly in PB with our libcurl.pbi
Ups ... your demo link still works.
Re: Direct Youtube video downloader
I've ripped HLS where there were timeouts and cookie checks on the segment keys and an obfuscator on the JS(the most secure you can make HLS) it's pretty easy to do. Hulu and Netflix and Discovery and Science channels all use it.. YouTube did too last I checked and converter services just use FFMPEG on the back-end..
I've been waiting on someone to use the HTML5 DRM which also uses a key session but actually requires advanced tools..
I've been waiting on someone to use the HTML5 DRM which also uses a key session but actually requires advanced tools..
The truth hurts.
Re: Direct Youtube video downloader
I totally forgot about this thread.
Yesterday revisited my code which surprisingly still downloads most videos(*.webm) + audio(*.weba) - only subtitles dont seem to work anymore.
I was mentioning bruteforcing the datacontainer but that was what i did (in a previous attempt) before discovering 'obfuscated' links in plain sight.
So in short i have a method that seems to work on most but not all videos.
I havent really had the time back then to really look into it but im confidend it may be a viable solution.
Maybe someone wants to help me - we can talk/chat on discord
Yesterday revisited my code which surprisingly still downloads most videos(*.webm) + audio(*.weba) - only subtitles dont seem to work anymore.
I was mentioning bruteforcing the datacontainer but that was what i did (in a previous attempt) before discovering 'obfuscated' links in plain sight.
So in short i have a method that seems to work on most but not all videos.
I havent really had the time back then to really look into it but im confidend it may be a viable solution.
Maybe someone wants to help me - we can talk/chat on discord
Re: Direct Youtube video downloader
'obfuscated' or whatever you want to call miniaturized JS that uses ajax to generate root m3u8 URI.. YouTube, Hulu, Netflix and all the big pay-TV networks use HLS for HTTP streaming.Mijikai wrote:I totally forgot about this thread.
Yesterday revisited my code which surprisingly still downloads most videos(*.webm) + audio(*.weba) - only subtitles dont seem to work anymore.
I was mentioning bruteforcing the datacontainer but that was what i did (in a previous attempt) before discovering 'obfuscated' links in plain sight.
So in short i have a method that seems to work on most but not all videos.
I havent really had the time back then to really look into it but im confidend it may be a viable solution.
Maybe someone wants to help me - we can talk/chat on discord
Anyone who wants to rip with no tools at all can always just use F12>Network to grab root m3u8 URL and feed it to FFMPEG or some program or the browser itself using segments. You'll actually find that all these big billion revenue networks don't even implement HLS security other than a 'paywall' in their CMS.. FFMPEG has been able to build output from just a root m3u8 over TLS and HTTP for years since nobody auths segment key requests....
The truth hurts.