Quote:
Originally Posted by lucas34
When I try watching a video keeps saying I need to install flash.I tried with FF, Chromium and Xombrero.
|
x11/youtube-dl does not integrate itself into a browser. It is a command-line Python application which is used as an intermediate step.
As an example, assume I want to watch the interview with Theo de Raadt found at
http://www.youtube.com/watch?v=mahBZ4lSZHQ. To view this with
x11/mplayer as a media player, use the following steps:
- Download the interview in MP4 format with the following command:
$ youtube-dl -f 18 http://www.youtube.com/watch?v=mahBZ4lSZHQ
The -f 18 option is used to limit downloading to MP4 format.
Downloading may take several minutes depending upon your network connection. youtube-dl will update download information until completed:
Code:
$ youtube-dl -f 18 http://www.youtube.com/watch?v=mahBZ4lSZHQ
[youtube] Setting language
[youtube] mahBZ4lSZHQ: Downloading video webpage
[youtube] mahBZ4lSZHQ: Downloading video info webpage
[youtube] mahBZ4lSZHQ: Extracting video information
[download] Destination: mahBZ4lSZHQ.mp4
[download] 100.0% of 134.86M at 230.96k/s ETA 00:00
$
- View the MP4 file with any media player. I have successfully used x11/mplayer and/or x11/vlc. Using mplayer as an example, use the following command:
$ mplayer mahBZ4lSZHQ.mp4
Note that mplayer & vlc are X applications.
- When finished, save or delete the MP4 file as desired.
Yes,
youtube-dl requires manual intervention, however with minimal imagination, one can write a simple shell script to take out some drudgery. The advantage of downloading locally is
if videos are worthwhile, you now have a local copy which you can store yourself. Stuff posted on YouTube tends to vaporize at rather inconvenient times.