Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does a YouTube movie downloader work? - YouTube

I'm wordering how apps such as Video DownloadHelper work.


Any ideas?

like image 782
RadiantHex Avatar asked Jul 03 '10 21:07

RadiantHex


People also ask

How does a YouTube video downloader work?

It essentially reverse engineers the HTML/JavaScript (previously Flash/ActionScript) that serves the video and gets the source. It then prompts your browser to start downloading that FLV file, or it converts it in the cloud for you to download in the format you want.

How do I download a movie from YouTube?

In case you are watching a video and want to save it for offline viewing, just tap on the Download button (down arrow) below the video title. In this case as well, YouTube will ask you to choose the video quality. Once the download is complete, you'll see a “View” button at the bottom.

What is the point of YouTube downloader?

YouTube is designed only to allow users to watch and view (stream) videos and movies on their website. Many users want to download or save YouTube videos to their computer to watch offline, view on other devices, capture a picture or screenshot of a scene, or edit them.

Is there a YouTube downloader that actually works?

Of all the YouTube downloaders we've tried, WinX HD Video Converter Deluxe is the most impressive. It doesn't just grab videos – it can also convert them into virtually any format, rips content from DVDs and Blu-ray discs, and lets you burn your own. It handles 4K content with ease, too.


1 Answers

UPDATE: This answer may now be outdated, see comments below. This was going to happen eventually anyway, as YouTube phases out FLV and shifts toward HTML5 video...

They simply resolve the link to the actual FLV file, and download it.

This is done by copying the video identifier from the URL:

http://www.youtube.com/watch?v=WEeqHj3Nj2c

Which is used to request info about the video:

http://www.youtube.com/get_video_info?&video_id=WEeqHj3Nj2c

The video info includes a TOKEN, which you can then you use to make another request:

http://www.youtube.com/get_video?video_id=WEeqHj3Nj2c&t=TOKEN

If all goes well, YouTube will respond with HTTP 303 See Other, including a Location header with a direct link to the FLV file.

like image 91
Dolph Avatar answered Nov 14 '22 01:11

Dolph