Linux.com

Feature: Tools & Utilities

YouTube tools for the Linux desktop

By Razvan T. Coloja on May 01, 2008 (7:00:00 PM)

Share    Print    Comments   

You can see YouTube videos everywhere nowadays: on blogs, Google search results, even some news sites. From time to time, you can even manage to find something interesting. This article will show you some Linux tools you can use to save and convert YouTube videos.

clive is video extraction software for Flash content stored on sites like YouTube, Google Video, and Metacafe. The syntax is simple: clive video_url. The application takes the given URL, downloads the FVL file, and converts it into MP4 format by default. One smart way to use clive is to create a text file containing links to videos you want to save and pass it to the program by using a pipe. Use cat video.list | clive and be sure to separate each URL in the file with a new line.

Clive can also re-encode the files into different formats by using FFmpeg. If you want to create an AVI out of the online video in one shot, you can use clive --ffmpeg="/usr/bin/ffmpeg -y -i %i %o" --reencode=avi video_url. FFmpeg will overwrite output files, use the link as input, and provide an AVI file in the end. Some people prefer to use predefined settings for converting online videos. By editing ~/.clive/config you can make alter the default settings to your liking. A sample config file would look like this:

play_format="avi" # output format
path_player="/usr/bin/mplayer %i" # player used
path_ffmpeg="/usr/bin/ffmpeg -y %i %o" # encoder used

As you can see, clive can also play files using MPlayer or VLC.

A similar tool is youtube-dl, a script that downloads YouTube videos without converting them. To save an FLV file from a video sharing site, open up a terminal and type youtube-dl followed by a video URL. There's also a GUI for youtube-dl called YouTube Downloader GUI. It's a Kommander script that uses KDialog to pop up a window where you can paste a direct link to the online video in order to download it. Another GUI, QtTube, is just as easy to use. Paste the links and it will download the files by using youtube-dl.

If you like GUIs, there's PyTube, a Python application that downloads the videos, then encodes them by using FFmpeg. PyTube offers a thumbnail preview of the online videos you import and arranges them in a drop-down list. Unfortunately, the list displays the URLs to the videos and not their titles. You can import a whole video list at once and batch convert the videos into one of the available video formats: FLV, AVI, MPG, OGM, animated GIF, MP4, 3GP, and AMV. You can also extract only the audio track of a video file, a feature that might come in handy when you find an interesting music video on YouTube and want to save it as an MP3, Ogg, or WAV file. When converting to video, you can either keep the original size values or specify custom ones to scale the frames.

PyTube is not just about downloading and converting. It can also search YouTube for videos without leaving the application's GUI and apply effects to the files. PyTube can merge, resize, and rotate videos, insert a different audio track, or generate a ringtone for your cell phone.

UTube Ripper is another software useful utility downloading and converting online videos. It's written in GTK and has Gambas among its dependencies; be sure to upgrade to the latest Gambas version before using it. You can paste a file in the text field and UTube Ripper will download it for you. Then you can choose whether you want to convert it into another video format or just extract the audio part.

gvdown has both a PyGTK interface and a command-line interface. It presents you with a simple window with a text field where you can input the URL. Press the Download it! button and it will retrieve the file for you.

GNetVideoPlayer is a more complex application. It's a player and downloader for YouTube and Stage6 videos, and depends on wget, MPlayer, and GtkMediaPlayer. For now, the application is in beta and the interface is available only in Spanish. It displays eight YouTube video previews at a time, allowing you to download the ones you like by accessing the context menu.

If you want to download YouTube videos from KDE, there's Get YouTube Video, a KDE service menu that you can use with Konqueror. Just right-click onto a Web page that hosts a YouTube video and choose to download it from the context menu.

A nice example of how all these applications work is the Crouse bash script. It makes use of wget to get a file and FFmpeg to convert it. For now, the script works only with direct links (that is, videos with no "feature=related" included in the URL).

Of the above tools, I found clive and PyTube to be the most useful. In less than a year, PyTube morphed from a simple wget front end to a more complex application, but clive is the best at its job. One final note of caution: Because YouTube makes changes in its site from time to time, all of the applications that deal with YouTube videos will likely also need to be updated.

Razvan T. Coloja has published more than 150 Linux and IT-related articles in print and online magazines. He is an editor for a Romanian magazine and one of the maintainers and editors of www.mylro.org, a Romanian Linux/OSS portal and community.

Share    Print    Comments   

Comments

on YouTube tools for the Linux desktop

Note: Comments are owned by the poster. We are not responsible for their content.

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 79.225.217.204] on May 01, 2008 07:50 PM
Hey guys, you forgot my beloved ClipGrab => http://clipgrab.de which also supports other sites like Veoh and is written in Qt4. (It's even in OpenSUSE's Packman repo)

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 91.45.142.82] on May 01, 2008 08:24 PM
As of recently there's also a Totem plugin which allows browsing and playing YouTube videos in the player. -- Dennis

#

Don't forget Miro!

Posted by: Anonymous [ip: 71.230.172.208] on May 01, 2008 09:02 PM
Miro has had the ability to play Flash video for along with a nice interface for searching YouTube and downloading things to your video collection.

http://www.getmiro.com

#

Pieces are in place

Posted by: Anonymous [ip: 98.222.63.83] on May 01, 2008 09:28 PM
I guess it's nice to see unified tools for this. But the pieces are readily available -- Firefox has several plugins to download from YouTube and many other video sites. ffmpeg and mencoder both have builtin support for flv files, and can even create flv files.

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 79.225.217.204] on May 01, 2008 09:31 PM
Well, ClipGrab doesn't only download videos, it also converts them into OGG Vorbis, MP3, WMA or MPEG4 ... So, give it a try! http://clipgrab.de

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 87.196.90.73] on May 01, 2008 10:49 PM
One clive parameter is incorrect. It's --re-encode and not --reencode, at least in gNewSense.
Oh, and the version included in gNewSense doesn't download youtube videos. Haven't tryed with other services

#

Re: YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 79.113.56.150] on May 02, 2008 07:42 AM
The parameter is --reencode. See http://home.gna.org/clive/faq.shtml#ffmpeg

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 99.235.224.69] on May 02, 2008 07:00 PM
Even easier. You don't need to do much of anything to save those videos. I saw this article ( http://www.cookingwithlinux.com/node/38 ) which makes it dead simple. Just look in your /tmp directory.

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 68.42.193.244] on May 02, 2008 08:46 PM
Also deserving of mention is yougrabber:

http://yougrabber.sourceforge.net

It is a command line utility written in C. It does the job.

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 71.121.97.193] on May 03, 2008 05:32 AM
I don't have any trouble viewing YouTube or Google videos in Debian Etch and have no real interest in downloading them (though there's Firefox plugins for that). What I want is to create youtube videos on Linux and I don't have any sort of clue how to go about it.

Don Crowder
http://www.don-guitar.com

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 85.97.128.81] on May 04, 2008 03:25 PM
Don, ffmeg is the mpeg encoder for videos. You can use to create youtube like videos?

[Modified by: Joe Barr on May 04, 2008 01:21 PM]

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 66.92.74.36] on May 04, 2008 07:04 PM
Tools? You don't need no stinkin' tools. Copy the file from /tmp and rename to .swf will play in totem on Xubuntu 7.10. :-)
This assumes only that you have the xubuntu-restricted-extras package installed.

#

Re: YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 68.230.99.107] on May 27, 2008 11:07 AM
Except... you need /something/ to get it to the cache, if you don't do EULAware and thus won't touch Adobe's plugin. (The freedomware plugins, both gnash and swfdec-mozilla, seem to work part of the time only, probably when various dependencies are upgraded in the right order but not when the order is wrong.)

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 58.37.210.109] on May 21, 2008 08:12 AM
YouTubeRobot.com today announces YouTube Robot 2.0, a tool that enables you to download video from YouTube.com onto your PC, convert it to various formats to watch it when you are on the road on mobile devices like mobile phone, iPod, iPhone, Pocket PC, PSP, or Zune.

YouTube Robot allows you to search for videos using keywords or browse video by category, author, channel, language, tags, etc. When you find something noteworthy, you can preview the video right in YouTube Robot and then download it onto the hard disk drive. The speed, at which you will be downloading, is very high: up to 5 times faster than other software when you download a single file and up to 4 times faster when you download multiple files at a time.

Manual download is not the only option with YouTube Robot. You may as well schedule the download and conversion tasks to be executed automatically, even when you are not around. Downloading is followed by conversion to the format of your choice and uploading videos to a mobile device (if needed). For example, you can plug in iPod, select the video, go to bed, and when you wake up next morning, your iPod will be ready to play new YouTube videos.

Product page: http://www.youtuberobot.com
Direct download link: http://www.youtuberobot.com/download/utuberobot.exe
Company web-site: http://www.youtuberobot.com
E-mail: support@youtuberobot.com

#

YouTube tools for the Linux desktop

Posted by: Anonymous [ip: 92.8.197.239] on May 29, 2008 10:40 PM
Similar to PyTube, there is now also "YourTube Downloader". Allows to store a preferred directory for videos, conversion, resolution and naming of files.

Try it here:
http://yourtubedownloader.awardspace.com/

Feedback is most appreciated (via the forums or email)

Thanks.

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya