<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The _khAttAm_ blog &#187; downloader</title>
	<atom:link href="http://www.khattam.info/tag/downloader/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.khattam.info</link>
	<description>Sharing views and experiences</description>
	<lastBuildDate>Sat, 22 Oct 2011 06:18:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[HOWTO] Modify youtube-dl to make it bandwidth friendly by adding option to download lowest quality video</title>
		<link>http://www.khattam.info/howto-modify-youtube-dl-to-make-it-bandwidth-friendly-by-adding-option-to-download-lowest-quality-video-2010-08-17.html</link>
		<comments>http://www.khattam.info/howto-modify-youtube-dl-to-make-it-bandwidth-friendly-by-adding-option-to-download-lowest-quality-video-2010-08-17.html#comments</comments>
		<pubDate>Tue, 17 Aug 2010 01:14:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Lucid Lynx 10.04]]></category>
		<category><![CDATA[Maverick Meerkat 10.10]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bandwidth friendly]]></category>
		<category><![CDATA[downloader]]></category>
		<category><![CDATA[lowest quality]]></category>
		<category><![CDATA[video downloader]]></category>
		<category><![CDATA[worst quality]]></category>
		<category><![CDATA[youtube]]></category>
		<category><![CDATA[youtube downloader]]></category>
		<category><![CDATA[youtube-dl]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=1017</guid>
		<description><![CDATA[youtube-dl is a command line utility that can be used to download Youtube videos. It has many command line switches ; most notably -t to save the video with title of the video as filename, -c to continue the download instead of starting over. It can be installed in Ubuntu Lucid Lynx and Maverick Meerkat [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>youtube-dl is a command line utility that can be used to download Youtube videos. It has many command line switches ; most notably -t to save the video with title of the video as filename, -c to continue the download instead of starting over. It can be installed in Ubuntu Lucid Lynx and Maverick Meerkat via Synaptic by enabling universe repository. Then running the following command will update it to the latest version:<span id="more-1017"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> youtube-dl <span style="color: #660033;">-U</span></pre></div></div>

<p>If you want to use it in older Ubuntu releases or other Linux distros, visit the <a href="http://bitbucket.org/rg3/youtube-dl/" onclick="pageTracker._trackPageview('/outgoing/bitbucket.org/rg3/youtube-dl/?referer=');">official site</a>.<br />
It also has a switch -f with which you can select a <a href="http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/YouTube_Quality_and_codecs?referer=');">Youtube Video Format</a> to download. Like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">youtube-dl <span style="color: #660033;">-f</span> <span style="color: #000000;">34</span> <span style="color: #ff0000;">&quot;http://www.youtube.com/watch?v=2_VFKqw1q2Q&quot;</span></pre></div></div>

<p>That will download video with format code 34 if available. 34 is 360p flv format. You will need to know the formats to be able to use this options and all this information is available in <a href="http://en.wikipedia.org/wiki/YouTube#Quality_and_codecs" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/YouTube_Quality_and_codecs?referer=');">Youtube Wikipedia Article</a>. If the format you requested is not available, it will print the message:</p>
<blockquote><p>ERROR: unable to download video (format may not be available)</p></blockquote>
<p>I don’t know why someone would like to do it, but an option f-1 is available which downloads all available qualities of the video. If you don’t provide any format information, it will download the best quality version of the video. You can always try your luck with the following formats that are supported for youtube, arranged in decreasing quality:<br />
38, 37, 22, 45, 35, 34, 43, 18, 6, 5, 17, 13<br />
That is, if format 38 is available, it will download it and if it isn’t it will download 37 and so on.</p>
<p>But what if you want to download the lowest quality or worst quality of video to be able to download quickly? It currently does not have such an option and we will add it. To do so, open it up in a text editor. I’m using gedit:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gksu gedit <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>youtube-dl</pre></div></div>

<p>and then find the following code (in the version 2010.08.04 that I have, it starts in line 938):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>938
939
940
941
942
943
</pre></td><td class="code"><pre class="python" style="font-family:monospace;">			<span style="color: #ff7700;font-weight:bold;">if</span> requested_format <span style="color: #ff7700;font-weight:bold;">is</span> <span style="color: #008000;">None</span>:
				video_url_list = <span style="color: black;">&#91;</span><span style="color: black;">&#40;</span>existing_formats<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>, get_video_template <span style="color: #66cc66;">%</span> existing_formats<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span> <span style="color: #808080; font-style: italic;"># Best quality</span>
			<span style="color: #ff7700;font-weight:bold;">elif</span> requested_format == <span style="color: #483d8b;">'-1'</span>:
				video_url_list = <span style="color: black;">&#91;</span><span style="color: black;">&#40;</span>f, get_video_template <span style="color: #66cc66;">%</span> f<span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">for</span> f <span style="color: #ff7700;font-weight:bold;">in</span> existing_formats<span style="color: black;">&#93;</span> <span style="color: #808080; font-style: italic;"># All formats</span>
			<span style="color: #ff7700;font-weight:bold;">else</span>:
				video_url_list = <span style="color: black;">&#91;</span><span style="color: black;">&#40;</span>requested_format, get_video_template <span style="color: #66cc66;">%</span> requested_format<span style="color: black;">&#41;</span><span style="color: black;">&#93;</span> <span style="color: #808080; font-style: italic;"># Specific format</span></pre></td></tr></table></div>

<p>and now add an elif block as shown below:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>938
939
940
941
942
943
944
945
</pre></td><td class="code"><pre class="python" style="font-family:monospace;">			<span style="color: #ff7700;font-weight:bold;">if</span> requested_format <span style="color: #ff7700;font-weight:bold;">is</span> <span style="color: #008000;">None</span>:
				video_url_list = <span style="color: black;">&#91;</span><span style="color: black;">&#40;</span>existing_formats<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span>, get_video_template <span style="color: #66cc66;">%</span> existing_formats<span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span> <span style="color: #808080; font-style: italic;"># Best quality</span>
			<span style="color: #ff7700;font-weight:bold;">elif</span> requested_format == <span style="color: #483d8b;">'-1'</span>:
				video_url_list = <span style="color: black;">&#91;</span><span style="color: black;">&#40;</span>f, get_video_template <span style="color: #66cc66;">%</span> f<span style="color: black;">&#41;</span> <span style="color: #ff7700;font-weight:bold;">for</span> f <span style="color: #ff7700;font-weight:bold;">in</span> existing_formats<span style="color: black;">&#93;</span> <span style="color: #808080; font-style: italic;"># All formats</span>
			<span style="color: #ff7700;font-weight:bold;">elif</span> requested_format == <span style="color: #483d8b;">'0'</span>:
				video_url_list = <span style="color: black;">&#91;</span><span style="color: black;">&#40;</span>existing_formats<span style="color: black;">&#91;</span><span style="color: #008000;">len</span><span style="color: black;">&#40;</span>existing_formats<span style="color: black;">&#41;</span>-<span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span>, get_video_template <span style="color: #66cc66;">%</span> existing_formats<span style="color: black;">&#91;</span><span style="color: #008000;">len</span><span style="color: black;">&#40;</span>existing_formats<span style="color: black;">&#41;</span>-<span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span><span style="color: black;">&#93;</span> <span style="color: #808080; font-style: italic;"># worst quality</span>
			<span style="color: #ff7700;font-weight:bold;">else</span>:
				video_url_list = <span style="color: black;">&#91;</span><span style="color: black;">&#40;</span>requested_format, get_video_template <span style="color: #66cc66;">%</span> requested_format<span style="color: black;">&#41;</span><span style="color: black;">&#93;</span> <span style="color: #808080; font-style: italic;"># Specific format</span></pre></td></tr></table></div>

<p>Now, to download the worst quality version available, you can just pass -f 0 option i.e.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">youtube-dl <span style="color: #660033;">-f</span> <span style="color: #000000;">0</span> <span style="color: #ff0000;">&quot;http://www.youtube.com/watch?v=2_VFKqw1q2Q&quot;</span></pre></div></div>

<p>This should download the worst quality version and make the download size smaller. However, sometimes worst quality in the list does not mean smallest size (I had seen examples of this while I was doing a youtube downloader project a year ago, but don’t know any examples to point out right now), they should almost always be so.</p>
<p>If the developers want to implement this (the lowest size download feature) in the main project, I think the best way to do it is to actually query header information of the video url and find the actually sizes, compare them and then download the one with the least size.</p>
<div class="shr-publisher-1017"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/howto-modify-youtube-dl-to-make-it-bandwidth-friendly-by-adding-option-to-download-lowest-quality-video-2010-08-17.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>xVideoServiceThief &#8211; Youtube Video Downloader for Ubuntu Linux</title>
		<link>http://www.khattam.info/xvideoservicethief-video-downloader-for-linux-windows-and-mac-2009-12-30.html</link>
		<comments>http://www.khattam.info/xvideoservicethief-video-downloader-for-linux-windows-and-mac-2009-12-30.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 16:42:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[add packages to your offline ubuntu]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[downloader]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[google video]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[Koala]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[lynx]]></category>
		<category><![CDATA[qt4]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[video downloader]]></category>
		<category><![CDATA[xvideoservicethief]]></category>
		<category><![CDATA[xvideothief]]></category>
		<category><![CDATA[yahoo]]></category>
		<category><![CDATA[yahoo videos]]></category>
		<category><![CDATA[youporn]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=564</guid>
		<description><![CDATA[xVideoServiceThief is a Desktop based video downloader for Linux, Windows and Mac. It is capable of downloading videos from Youtube, Google, Yahoo and various other sites. You can even queue the videos and it downloads with resume support (if the server supports it). It can resume Youtube videos. It can be downloaded from: http://xviservicethief.sourceforge.net/index.php?action=downloads#Linux To [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><br />
xVideoServiceThief is a Desktop based video downloader for Linux, Windows and Mac. It is capable of downloading videos from Youtube, Google, Yahoo and various other sites. You can even queue the videos and it downloads with resume support (if the server supports it). It can resume Youtube videos.</p>
<p><a href="http://www.khattam.info/wp-content/uploads/Screenshot-2.png"><img class="alignnone size-medium wp-image-565" title="Screenshot-2" src="http://www.khattam.info/wp-content/uploads/Screenshot-2-300x214.png" alt="Screenshot 2 300x214 xVideoServiceThief   Youtube Video Downloader for Ubuntu Linux" width="300" height="214" /></a></p>
<p><span id="more-564"></span></p>
<p>It can be downloaded from:<br />
<a href="http://xviservicethief.sourceforge.net/index.php?action=downloads#Linux" target="_blank" onclick="pageTracker._trackPageview('/outgoing/xviservicethief.sourceforge.net/index.php?action=downloads_Linux&amp;referer=');">http://xviservicethief.sourceforge.net/index.php?action=downloads#Linux</a></p>
<p>To install it in Ubuntu, all you need to do is extract it and run install.sh (double click and &#8220;Run in Terminal&#8221; or open terminal and execute ./install.sh). It will be installed to your home directory (eg /home/khattam/xVideoServiceThief). To run it, just double click the xvst executible. If it fails to run, make sure you have installed libqt4.</p>
<p></p>
<p>Hope this helps.</p>
<div class="shr-publisher-564"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/xvideoservicethief-video-downloader-for-linux-windows-and-mac-2009-12-30.html/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Download Youtube Videos in Various Formats</title>
		<link>http://www.khattam.info/download-youtube-videos-in-various-formats-2009-08-22.html</link>
		<comments>http://www.khattam.info/download-youtube-videos-in-various-formats-2009-08-22.html#comments</comments>
		<pubDate>Sat, 22 Aug 2009 04:44:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[downloader]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=397</guid>
		<description><![CDATA[Here you go: http://vid.khattam.info This video downloader lets you download various formats and you can even preview the size before downloading.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p> Here you go:<br />
<a title="YouTube Video Download Tool" href="http://vid.khattam.info" target="_blank" onclick="pageTracker._trackPageview('/outgoing/vid.khattam.info?referer=');">http://vid.khattam.info</a></p>
<p><span id="more-397"></span></p>
<p>This video downloader lets you download various formats and you can even preview the size before downloading.</p>
<div class="shr-publisher-397"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/download-youtube-videos-in-various-formats-2009-08-22.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download all Naruto Movies for Free</title>
		<link>http://www.khattam.info/download-all-naruto-movies-for-free-2009-05-15.html</link>
		<comments>http://www.khattam.info/download-all-naruto-movies-for-free-2009-05-15.html#comments</comments>
		<pubDate>Fri, 15 May 2009 05:30:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[download naruto]]></category>
		<category><![CDATA[downloader]]></category>
		<category><![CDATA[free download naruto]]></category>
		<category><![CDATA[naruto]]></category>

		<guid isPermaLink="false">http://www.khattam.info/?p=191</guid>
		<description><![CDATA[My friend, who is a great fan of Naruto, the animated series, has created a Naruto download page which fetches links from some other site to provide the users with the links. Hope it is helpful to the fans. http://naruto.khattam.info]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p></p>
<p></p>
<p>My friend, who is a great fan of Naruto, the animated series, has created a <a title="Free Naruto Download" href="http://naruto.khattam.info" target="_blank" onclick="pageTracker._trackPageview('/outgoing/naruto.khattam.info?referer=');">Naruto download page</a> which fetches links from some other site to provide the users with the links.</p>
<p><span id="more-191"></span></p>
<p>Hope it is helpful to the fans.</p>
<p><a title="Free Naruto Download - All episodes" href="http://naruto.khattam.info" target="_blank" onclick="pageTracker._trackPageview('/outgoing/naruto.khattam.info?referer=');">http://naruto.khattam.info</a></p>
<div class="shr-publisher-191"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.khattam.info/download-all-naruto-movies-for-free-2009-05-15.html/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

