Videoob¶

Videoob is a console application (part of Weboob) to search videos on supported websites (see CapVideo) and to get direct URLs for videos or play them.
- Videoob
- Get Videoob
- Usage
- Looking for a video
- Get information about a video
- Play a video
- Download a video
- Tip for rxvt-unicode users
Get Videoob¶
This application is a part of Weboob. Download it and install it with:
$ ./setup.py install
For more information about installation of Weboob read this page.
Usage¶
You can run videoob without any parameter to get an interactive prompt, or specify a command to run it directly and exit just after.
In this page we will use the interactive mode:
$ videoob Welcome to videoob Copyright(C) 2010 Christophe Benz, Romain Bignon, John Obbele This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License. Type "help" to display available commands. Loaded backends: arte, ina, youjizz, youporn, youtube, dailymotion videoob>
Use the help command to see what are available commands.
The first time you launch videoob, it will ask you what backends you want to add and configure. You can also use the backends command to manage them, and to enable only specific backends.
To get more information about advanced usage of videoob, see the console applications common options.
Looking for a video¶
Usage:
videoob> search PATTERN
Example:
videoob> search coluche flics
Search pattern: coluche flics
* (1) Coluche - Les Flics (youtube)
0:07:57
* (2) Coluche Intégral CD 1 - 12 / Le flic (youtube)
0:08:10
* (3) Coluche le flic (youtube)
0:11:33
* (4) COLUCHE L'INTEGRAL - Le flic.mov (youtube)
0:08:10
* (5) Coluche - C'est l'histoire d'un mec (youtube)
0:10:35
* (6) Beaucoup de flics pour rien.wmv (youtube)
0:06:35
* (7) Pinot simple flic pour Cortex - Zen for Z'anes (youtube)
0:04:10
* (8) A 2 pas du Perih - Sinik (youtube)
0:02:58
videoob>
Get information about a video¶
Usage:
videoob> info <# or ID or URL>
For example, you can use the number of the previous search results:
videoob> info 1 id: 6Cvj6NRpTXo@youtube title: Coluche - Les Flics url: http://www.youtube.com/get_video?video_id=6Cvj6NRpTXo&t=vjVQa1PpcFPjKzpoPFHRI3oAtjzNxmC5NkNYPQ2R6jg%3D&eurl=&el=&ps=&asv=&fmt=18 author: Melaaz duration: 0:07:57 thumbnail: http://i.ytimg.com/vi/6Cvj6NRpTXo/2.jpg nsfw: False
You can also use in these forms:
videoob> info "http://www.youtube.com/watch?v=JXb8V_8l41w"
videoob> info JXb8V_8l41w@youtube
Play a video¶
You can also play a video by using the command play instead of info:
videoob> play 1 Invoking "mplayer http://www.youtube.com/get_video?video_id=6Cvj6NRpTXo&t=vjVQa1PpcFPjKzpoPFHRI3oAtjzNxmC5NkNYPQ2R6jg%3D&eurl=&el=&ps=&asv=&fmt=18". [...] videoob>
Download a video¶
If you want to download a video, just use the download command:
videoob> download 1 [...]
It's possible to give the filename of video:
$ videoob download 9892834@dailymotion video.mp4 --2011-03-21 15:47:36-- http://www.dailymotion.com/cdn/H264-512x384/video/x5w1cy_bassist_music.mp4?auth=1300891656-7e55974c5de78f52843324636480ff96 Resolving www.dailymotion.com... 195.8.215.137, 195.8.215.138, 195.8.215.136 Connecting to www.dailymotion.com|195.8.215.137|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://proxy-61.dailymotion.com/video/438/298/9892834_mp4_h264_aac.mp4?auth=1300726056-32528c09733568744a9010672425da55&cache=0 [following] --2011-03-21 15:47:36-- http://proxy-61.dailymotion.com/video/438/298/9892834_mp4_h264_aac.mp4?auth=1300726056-32528c09733568744a9010672425da55&cache=0 Resolving proxy-61.dailymotion.com... 195.8.214.61 Connecting to proxy-61.dailymotion.com|195.8.214.61|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 764225 (746K) [video/mp4] Saving to: “video.mp4” 100%[====================================================================>] 764,225 2.45M/s in 0.3s 2011-03-21 15:47:36 (2.45 MB/s) - “video.mp4” saved [764225/764225]
Tip for rxvt-unicode users¶
You can use this config lines to make rxvt-unicode launch urls in videoob instead of browser :
urxvt.matcher.pattern.1: (?:http://)?(?:www\\.)?youtube\\.com/watch\\?v=([^&]*) urxvt.matcher.launcher.1: videoob play $1@youtube urxvt.matcher.pattern.2: (?:http://)?(?:www\\.)?youporn\\.com/watch/([^/]*) urxvt.matcher.launcher.2: videoob play $1@youporn urxvt.matcher.pattern.3: (?:http://)?(?:www\\.)?canalplus.fr/.*vid=([^&]*) urxvt.matcher.launcher.3: videoob play $1@canalplus urxvt.matcher.pattern.4: (?:http://)?(?:www\\.)?videos\\.arte\\.tv/.*/([^.]*)\\.html urxvt.matcher.launcher.4: videoob play $1@arte urxvt.matcher.pattern.5: (?:http://)?(?:www\\.)?ina.fr/(.*)/video/(.*)\\.html urxvt.matcher.launcher.5: videoob play $1\/$2@ina urxvt.matcher.pattern.6: (?:http://)?(?:www\\.)?youjizz\\.com/.*/([^.]*)\\.html urxvt.matcher.launcher.6: videoob play $1@youjizz