{Req} Dịch bài viết hướng dẫn cách download video ở youtube

Started by saos@ngmo, 05/01/07, 13:42

Previous topic - Next topic

saos@ngmo

Mong ai đó có nhiều thời gian dịch hộ saos@ngmo bài này ra tiếng Việt để chia sẻ với mọi người. Mình đã đọc lướt qua, cái này có thể sẽ là 1 trong những công cụ của huongtinhyeu, cho em mọi người download video từ youtube.

Nội dung như sau:
-----------------

What is it?

youtube-dl is a small command-line program to download videos from YouTube.com. It requires the Python interpreter, version 2.4 or later, and it's not platform specific. It should work in your Unix box, in Windows or in Mac OS X. The latest version is 2007.01.01. It's licensed under the MIT License, which means you can modify it, redistribute it or use it however you like complying with a few simple conditions.

I'll try to keep it updated if YouTube.com changes the way you access their videos. After all, it's a simple and short program. However, I can't guarantee anything. If you detect it stops working, check for new versions and/or inform me about the problem, indicating the program version you are using. If the program stops working and I can't solve the problem but you have a solution, I'd like to know it. If that happens and you feel you can maintain the program yourself, tell me. My contact information is at freshmeat.net.

Thanks for all the feedback received so far. I'm glad people find my program useful.

Related projects: metacafe-dl pornotube-dl
Usage instructions

In Windows, once you have installed the Python interpreter, the program should be runnable. If it's not, try to change its name to youtube-dl.py (that is, add the .py extension). Then, copy it to somewhere in your PATH. I recommend you to keep it inside its own directory (probably inside the Program Files folder) and add that directory to your PATH.

In Unix, download it, give it execution permission and copy it to one of the PATH directories (typically, /usr/local/bin).

After that, you should be able to call it from the command line as youtube-dl or youtube-dl.py. I will use youtube-dl in the following examples. Usage instructions are easy. Use youtube-dl followed by a video URL. Example: youtube-dl "http://www.youtube.com/watch?v=foobar". The video will be saved to the file foobar.flv in that example. As YouTube.com videos are in Flash Video format, their extension should be flv. In Linux and other unices, video players using a recent version of ffmpeg can play them. That includes MPlayer, VLC, etc. Those two work under Windows and other platforms, but you could also get a specific FLV player of your taste.
More usage tips

    * You can change the file name of the video using the -o option, like in youtube-dl -o vid.flv "http://www.youtube.com/watch?v=foobar".
    * Some videos require an account to be downloaded, mostly because they're flagged as mature content. You can pass the program a username and password for a YouTube.com account with the -u and -p options, like youtube-dl -u myusername -p mypassword "http://www.youtube.com/watch?v=foobar".
    * The simulate mode (activated with -s or --simulate) can be used to just get the real video URL and use it with a download manager if you prefer that option.
    * The quiet mode (activated with -q or --quiet) can be used to supress all output messages. This allows, in systems featuring /dev/stdout and other similar special files, outputting the video data to standard output in order to pipe it to another program without interferences.
    * The default filename is video_id.flv. But you can also use the video title in the filename with the -t or --title option.
    * youtube-dl honors the http_proxy environment variable if you want to use a proxy. Set it to something like http://proxy.example.com:8080, and do not leave the http:// prefix out.
    * You can get the program version by calling it as youtube-dl -v or youtube-dl --version.
    * For usage instructions, use youtube-dl -h or youtube-dl --help.
    * You can cancel the program at any time pressing Ctrl+C. It may print some error lines saying something about KeyboardInterrupt. That's ok.

Download it

Note that if you directly click on these hyperlinks, your web browser will most likely display the program contents. It's usually better to right-click on it and choose the appropriate option, normally called Save Target As or Save Link As, depending on the web browser you are using.

2007.01.01

    * MD5: a052f03b4fa4a6bda086d4cafceaefe8
    * SHA1: fb3647ac9143bd641658439d2d5f5efca9ac8f19
    * RMD160: 676da7983753b2987ae883cf93248be99f0a8491

Nội dung của bài viết này được lấy từ: http://www.arrakis.es/~rggi3/youtube-dl/

SEO ngành nghề, cỏ nhân tạo, chuyên sửa máy rửa bát tại hà nội, tình yêu độ xe Mercedes, chuyên sửa chữa tivi tại nhà ở Hà Nội, đặt hàng tượng phật đồ thờ tâm linh làng nghề Sơn Đồng | Điện lạnh Bách Khoa Hà Nội