LM Lists IMDB Information For Your Movies, Downloads Subtitles From The Command Line

10:41 PM

lm is a command line tool that you can use to list the IMDB information for all the movies in a directory on your computer as well as to download subtitles from OpenSubtitles.

lm features:
  • display IMDB information
  • filter movies by genre, director, actor, size
  • generate a html page with cover and trailer links
  • download subtitles for all your movies for any language supported by OpenSubtitles


Install "lm"


lm requires "python-imdbpy" and optionally "BeautifulSoup" to speed up HTML parsing. Install them in Ubuntu using the following command:
sudo apt-get install python-imdbpy python-beautifulsoup

Then, download lm from HERE, extract it in your home directory and use the following commands to install it (you can also run it from its directory):
sudo cp ~/RedRise-lm-7c7dbc7/lm.py /usr/local/bin/lm
sudo chmod +x /usr/local/bin/lm


Using "lm"


To get a basic list of your movies, simply type "lm" in your movies folder, or use:
lm /path/to/your/movies

The first time you run lm, it takes a while to get information via IMDB for all your movies. This only happens the first time (and when you add more movies, obviosuly).

To get more info about your movies, like the year, genre, rating and file size, use the "-l" parameter, like this:
lm -l /path/to/your/movies

For a complete description (besides the info included for "-l", this also displays the director, cast and movies summary), use the following command:
lm -L /path/to/your/movies
Since the above command displays a lot of information, it's best to use it with only a movie.

To download subtitles (English) for all your movies, use:
lm --download eng /path/to/your/movies
For another language, replace "eng" with the desired subtitle language (Use ISO639-1 codes, like eng/fre/dut/ger).

You can also use lm to open the IMDB page for a movie / all your movies (it's not recommended to use this if you have many movies). To do this, use:
lm -s /path/to/your/movies

lm can also generate a nice web page with a list of all your movies that includes movie covers and links to their IMDB pages and trailers:
lm -S /path/to/your/movies

If you run "lm" in your movies folder, there's no need to enter any path (so you can simply run "lm -S", etc.).

For more info on using "lm", type:
lm --help

Or check out its GitHub page.

0 comments

» read more....

Movgrab: Command Line Video Downloader

10:44 PM

movgrab linux

Movgrab is a command line tool for downloading video clips from websites such as YouTube, Daily Motion, Break.com, Vimeo, Blip.tv, Liveleak and others.

Movgrab features:
  • proxy support
  • write the download to std-out so you can easily play the video in an external application
  • lets you pick the preferred video/audio formats for sites that offer more than one
  • generic downloader which means Movgrab might be able to download videos from other websites not listed as supported
  • can resume downloads (use "-r" - only works when writing a single file)
  • fork into background (use "-b" flag)
  • written in straight C so it has no dependencies

Full list of supported websites: 
  • YouTube
  • Metacafe
  • Dailymotion
  • Vimeo
  • Break.com
  • eHow
  • 5min.com
  • vbox7
  • blip.tv
  • Ted
  • MyVideo
  • ClipShack
  • MyTopClip
  • RedBalcony
  • Mobando
  • Yale University
  • Princeton University
  • Reuters
  • LiveLeak
  • Academic Earth
  • Photobucket
  • VideoEmo
  • VideosFacebook
  • Aljazeera
  • Mefeedia
  • IViewTube
  • Washington Post
  • CBS News
  • Euro News
  • MetaTube
  • MotionFeeds
  • Escapist
  • Guardian
  • RedOrbit
  • Sciive
  • Izlese
  • uctv.tv
  • royalsociety.tv
  • British Academy
  • Kitp
  • Dotsub
  • Astronomy.com
  • Teachertube.com
  • Discovery
  • Bloomberg.com

Using Movgrab


To download a video using the default options, simply run:
movgrab 'URL'

Where 'URL' is the URL of the video you want to download, e.g. "http://www.youtube.com/watch?v=1QP-SIW6iKY". It's a good idea to use quotes for the URL, in case it contains special characters.

To specify the filename, use "-o" flag, like this:
movgrab -o VIDEONAME.mp4 'URL'

To be able to resume a video download, use "-r":
movgrab -r 'URL'


If you want to specify the video format and quality, firstly you'll need to get a list of supported video formats. Example:
movgrab -T 'http://www.youtube.com/watch?v=1QP-SIW6iKY'

Which should return something like this:
Formats available for this Movie: webm:640x360 flv-h264:640x360 mp4:480x360 flv:400x240

Now you can specify in which format to download your video. Let's say we want to download the video in webm, with a 640x360 resolution:
movgrab -f webm:640x360 'http://www.youtube.com/watch?v=1QP-SIW6iKY'


Now, let's say you want to watch a video using mplayer, without having to download it firstly - since Movgrab can write the download to std-out, all you have to do is run:
movgrab -o - 'URL' | mplayer -

Example:
movgrab -o - 'http://www.youtube.com/watch?v=1QP-SIW6iKY' | mplayer -

For more options and info, run "movgrab" (without any flags) in a terminal.


Install Movgrab


Ubuntu users can install Movgrab by using the main WebUpd8 PPA:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install movgrab

For Arch Linux, get the latest Movgrab via AUR.

And finally, for any Linux distribution, download the source from HERE, extract it and compile it:
./configure
make
sudo make install

application seen on UpUbuntu

0 comments

» read more....

Easily Create Impressive Presentations From PDF Files Or Images

2:10 AM

Impressive is a cross-platform tool to display presentations in a stylish way. The application supports PDF files or a folder containing images and besides beautiful slide transitions, Impressive features some useful presentation tools like: highlight boxes, which can be used to draw attention to a specific part of the slide, spotlight effect which is kind of like a highlight box but dynamic, and a screen overview which you can use to easily select a slide.

Impressive is highly customizable too, but unfortunately there's no GUI front-end (at least, that I know of). However, the default settings should be good enough for most people and to run it, all you have to do is open a terminal and type: "impressive /path/to/some_presentation.pdf" or "impressive /path/to/image/folder/" and the presentation should start.


Basic Impressive usage:

- Use left click to advance to a new slide and right click to go back to the previous slide (the arrow keys work too).

- To create a highlight box, draw a rectangle using your left mouse button:


- For a dynamic highlighting (spotlight effect), press the ENTER key - you can adjust its size using the mouse wheel:


- To zoom in/out, press the "z" key

- For an overview of all your slides, press TAB:


Impressive also comes with many command line options: you can configure the transitions, rotate pages, specify the window geometry, set the start page, change the duration and so on. To see all the available options, type:
impressive --help

You can also check out the Impressive documentation online.


Here's quick video I've recorded, demoing Impressive:


(if the video doesn't show up, click here)



Download Impressive


Impressive is available in the Ubuntu repositories so if you use Ubuntu, simply click the button below to install it:


If you prefer to install Impressive from the command line, open a terminal and copy/paste the following command:
sudo apt-get install impressive

Download Impressive source or Windows (portable) binaries download it via Sourceforge.

0 comments

» read more....

Beets Music Tagger: Command Line Tool To Fix Metadata And Organize Your Music Library

8:53 PM

beets is a cross-platform command line music tagger and organizer which you can use to "get your music collection right once and for all".

It can improve your music collection metadata by using MusicBrainz, download cover art for all your albums, reorganize your music files, fix filenames and more.

Further more, beets is extensible through plugins which add extra functionality like  embedding or extracting album art from files, fetch lyrics for all your songs, clean up tags and and there's even a HTML5 web player (though it's very basic and can't do too much for now).


beets

While beets tries to automatically get the metadata based on already existing tags,  if the similarity is under 95%, beets will prompt you to select the best match so the process is not fully automated (though you can set it to automatically skip albums that need user input). Also, beets might not be able to automatically get the metadata if some albums don't have any tags at all.

In my test, beets worked great to fix bad or missing tags, but fetching the album art didn't work so great: it was able to download album art for only about 25% of the albums.


Beets introduction video


Here's a introduction video for beets, created by its developer:





Installation


To install beets in Ubuntu, you need to install its dependencies firstly:
sudo apt-get install python-dev python-setuptools python-pip

Then, install beets using the following command
sudo pip install beets

In Ubuntu 12.04 Precise Pangolin, you can install beets from the official repositories.

For Arch Linux, get the latest version via AUR.


beets installation for other Linux distributions, Windows and Mac OS X: Getting Started with beets.



How to use beets


Firstly, create a new file called '.beetsconfig' in your home directory and open it with a text editor. For instance, run this command if you have Gedit installed:
gedit ~/.beetsconfig

And in this file, copy/paste the following:
[beets]
directory: /path/to/music
library: /path/to/musiclibrary.blb

Where:
  • "directory" is the path to the directory where your music will be copied after it has been re-organized by beets (to get beets to use your current directory structure and don't copy your music, see below).
  • "library" is the path do your music library database (the file doesn't initially exist, so just enter the path to where you want it to be stored)

Then save the file. All available configuration options are available HERE.


Now you can start importing your music to the beets library. By default, beets will copy the imported music into the directory you specified in the config file - to start this process (it may take a long time!), use the command below:
beet import /path/to/music

If you want beets to use your current directory structure and don't copy the music to the directory defined in its configuration, use "-C":
beet import -C /path/to/music

To only import files, without autotagging, use "-A":
beet import -A /path/to/music

You can also set beets not to write the tags to the files but keep them in its database only ("-W"), never prompt for input when importing ("-q" - quiet mode) and more.


Enabling acoustic fingerprinting for beets


beets can use acoustic fingerprinting (through Chromaprint/Acoustid), a technique for identifying songs based on audio signal instead of using metadata information via a plugin. There is a downside to using it though: it uses a lot more CPU and memory than the default tagger. If this is not an inconvenient for you, install it using the following commands:
sudo apt-get install apt-get install python-gst0.10-dev gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly
sudo pip install pyacoustid

Then, to enable the Chromaprint/Acoustid plugin, open the beets config file (see above) and paste this under "[beets]":
plugins: chroma


For more info about beets, including: using the auto-tagger, more 'beet' commands (list, add, etc), plugins, etc., see the beets documentation.


Thanks to Pablo Jimeno for the tip!

0 comments

» read more....

Transmission Remote GTK

7:49 PM


Transmission Remote GTK is a cross-platform tool for controlling Transmission Bittorrent Client remotely, through its RPC interface.

The application is very similar to Transmission Remote GUI in terms of Bittorrent functionality, however, Transmission Remote GTK integrates better with the GNOME desktop (since it's a GTK app; sadly it's GTK2 only), comes with torrent added/downloaded notifications as well as tray / Ubuntu AppIndicator support.

What is this tool for? Well, if you've set up Transmission Daemon on a server (it doesn't really has to be a server but anyway), you can use Transmission Remote GTK to control it remotely. For how to set up Transmission Daemon on Ubuntu / Debian, see our old (should still work) post: Setting Up Transmission-Daemon in Ubuntu / Debian.


Transmission Remote GTK features:
  • Cross-platform
  • Remotely add (file/url), start, stop, remove, remove & delete, verify, reannounce torrents.
  • Works as a .torrent handler (eg. from a web browser).
  • Set torrent properties such as speed, seed, peer limits, file priorities, add/edit/remove trackers.
  • Change remote settings like global limits, download directory, and connectivity preferences.
  • Run commands when download finishes
  • Directory labels


Transmission Remote GTK comes with a PPA for Ubuntu Precise, Oneiric and Natty users. Add the PPA and install it using the commands below:
sudo add-apt-repository ppa:ajf/trg
sudo apt-get update
sudo apt-get install transmission-remote-gtk

For Fedora, Windows and source files, see the Transmission Remote GTK downloads page.

0 comments

» read more....

Terminator (Multiple Terminals In The Same Window) 0.96 Released

8:10 PM

Terminator

Terminator is a very interesting terminal emulator that lets you use multiple terminals in the same window (split view). It supports notifications (through 'watch for activity' plugin), tabs, can save / restore custom layouts and more.


The latest Terminator 0.96 re-adds a so called "quake mode" feature (more info and how to launch Terminator using a custom layout, here). Other features in the latest Terminator 0.96 include:
  • Unity support for opening new windows
  • Searching by regular expression
  • Improve and extend drag&drop support to include more sources of text, e.g. Gtk file chooser path buttons
  • Add a plugin to watch a terminal for inactvity
  • Add configuration to remove terminal dimensions from titlebars
  • many bug fixes

A Terminator BZR build with built-in "quake-mode" was already available in our Unstable PPA, but now it's finally available as a stable release. Here's a video I've recoded a while back, demoing this feature as well as using multiple terminals in the same window:





Install Terminator



The latest Terminator 0.96 is not yet available in its official PPA, but you can already install it in Ubuntu 11.10, 11.04, 10.10 and 10.04 by using the WebUpd8 PPA:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install terminator


If you're not using Ubuntu, download Terminator via Launchpad.

0 comments

» read more....

Zenity For Appindicators: Ubuntu Indicator For Commands Or Bash Scripts

2:48 PM

WebUpd8 reader Reda El Khattabi has created a small tool that makes it very easy to create an Ubuntu AppIndicator for Zenity, YAD (a Zenity fork with many improvements) or basically any bash script or command.


Features:

  • supports submenus and separators
  • you can specify a custom icon
  • persistent mode or quit after executing command

For now the tool doesn't support specifying a timeout after which it should quit, but this feature might be added in the future.



Usage (examples)



The script takes input from stdin and when you select an entry, the whole path is printed to stdout. Here's working example that will create an AppIndicator for Y PPA Manager:

echo "Add
Advanced
List
Search
Settings" | ./cappind.py -p -i y-ppa-manager | while read s; do
case "$s" in
Add ) y-ppa-cmd add ;;
Advanced ) y-ppa-cmd advanced ;;
List ) y-ppa-cmd list ;;
Search ) y-ppa-cmd search ;;
Settings ) y-ppa-cmd settings ;;
esac
done

  • "-p" makes the indicator persistent and adds a quit menu item at the end - without it, the indicator quits after executing the select action.
  • "-i" specifies an icon from the current icon theme (don't use an exact path to an icon, it won't work. Just enter an icon name).

Here's another example, this time with submenus (just for the sake of this example) and a separator above the "Media" menu item that creates an AppIndicator for Nautilus (for opening Downloads, Music folders, etc.):

Bash appindicator

echo "Home Folder
Documents
Downloads
Pictures

Media:Music
Media:Videos" | ./cappind.py -p -i nautilus | sed -u 's/Media://g' | while read s; do
case "$s" in
Home* ) nautilus ;;
Documents ) nautilus ~/Documents/ ;;
Downloads ) nautilus ~/Downloads/ ;;
Pictures ) nautilus ~/Pictures/ ;;
Music ) nautilus ~/Music/ ;;
Videos ) nautilus ~/Videos/ ;;
esac
done


More examples and download

Thanks to Réda for the tip!

0 comments

» read more....