Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
URL to video file #3583
URL to video file #3583
Comments
|
That all totally depends on the the video site.
So in general, you need to download the video on your server first. I am not a lawyer, so I cannot answer legal questions. Unless you specify a psasword, youtube-dl only downloads public videos though, and those often cached anyways between users. Many major ISPs also have their own official or unofficial active caching and recompression boxes. I guess it also depends a lot on where you are actually running your server - law can be quite different from country to country. To allow the video to be downloaded by a client, you must implement the extraction (i.e. run youtube-dl) client-side. Due to security restrictions, this won't work in a web application though. |
Hello, i am building small application (API) for youtube-dl and i have several questions about possibility to return video URL for downloading in file.
API set would be:
Would it be possible to:
For user enter video view URL in Client PHP website, then with Client API functions provided send API request to my DServer, where youtube-dl/Python application would parse URL, access video provider website and get direct video URL, and then return it to Client PHP website where user after URL submition (On next page) would be able to press "download" and then be able to download video file?
Do i need return cookies from my DServer to Client PHP website and then set user cookie?
How could i do that?
Would there be some problems with some providers with this workflow?
If yes, is it legal to download video file to server and then let users to download it, or download-to-stream without storying video file in server?
How could i return direct video URL instead of downloading it server?
Thank you