youtube download without youtube-dl

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jay lee
Posts: 83
Joined: 14 Oct 2021, 11:17

youtube download without youtube-dl

Post by jay lee » 24 Mar 2023, 15:57

Is there a way for autohotkey to download a video as audio file from youtube without using external programs like youtube-dl?

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: youtube download without youtube-dl

Post by swagfag » 24 Mar 2023, 16:20

conceptually, yes. at its core, all youtube-dl is doing is sending a series of httprequests to download chunks of the video, then hands them off to ffmpeg to compile together into a file(s)
u can download youtube-dl source, run it under a python debugger, single-step through the code as ure executing a particular command ure thinking of and see whats its doing internally
then do the same for ffmpeg(a tad more involved given its a C program, but do-able)
then rewrite it all in AHK

jay lee
Posts: 83
Joined: 14 Oct 2021, 11:17

Re: youtube download without youtube-dl

Post by jay lee » 24 Mar 2023, 16:32

swagfag wrote:
24 Mar 2023, 16:20
conceptually, yes. at its core, all youtube-dl is doing is sending a series of httprequests to download chunks of the video, then hands them off to ffmpeg to compile together into a file(s)
u can download youtube-dl source, run it under a python debugger, single-step through the code as ure executing a particular command ure thinking of and see whats its doing internally
then do the same for ffmpeg(a tad more involved given its a C program, but do-able)
then rewrite it all in AHK
well that will be hard, maybe I have to use youtube-dl :D

Post Reply

Return to “Ask for Help (v1)”