<?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>newthink.net &#187; iPod</title>
	<atom:link href="http://www.newthink.net/tag/ipod/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.newthink.net</link>
	<description>Less Talk. More Do.</description>
	<lastBuildDate>Tue, 26 Jan 2010 18:28:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Converting TV Shows To Play On Your iPod In Linux</title>
		<link>http://www.newthink.net/2007/03/02/converting-tv-shows-to-play-on-your-ipod-in-linux/</link>
		<comments>http://www.newthink.net/2007/03/02/converting-tv-shows-to-play-on-your-ipod-in-linux/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 20:30:40 +0000</pubDate>
		<dc:creator>Ash Christopher</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://newthink.net/blog/2007/03/02/converting-tv-shows-to-play-on-your-ipod-in-linux/</guid>
		<description><![CDATA[There are numerous Windows programs out there to convert video for use in your mobile devices. The problem however, is that unless you have a new dual-core machine your PC is more or less unusable until the conversion is complete.
Now, I know not everyone has a Linux machine just lying around, but I do, and [...]]]></description>
			<content:encoded><![CDATA[<p>There are numerous Windows programs out there to convert video for use in your mobile devices. The problem however, is that unless you have a new dual-core machine your PC is more or less unusable until the conversion is complete.</p>
<p>Now, I know not everyone has a Linux machine just lying around, but I do, and maybe in the future it might be enough to convince you to build your own file-server for your home (for media perhaps?).</p>
<p>Before starting, you need to make sure you have the <strong>ffmpeg</strong> binary installed on your Linux box. As of this posting, I have ffmpeg-0.4.9-0.3.20051207.2.el4.rf installed on my CentOS4 machine. I will leave it as an exercise to you to figure out how to install it if you don&#8217;t have it.</p>
<blockquote><p>ash@galactica:[/tmp]> ffmpeg -vcodec xvid -b 500 -qmin 1 -qmax 7 -bufsize 4096 -g 300 -acodec aac -ab 96 -i doctor.who.102.the.end.of.the.world.avi -s 320&#215;240 -aspect 16:9 doctor.who.102.the.end.of.the.world.mp4</p></blockquote>
<p>Here is a run down of what the switches mean and how they affect your converted video:</p>
<blockquote><p><em>-vcodec</em> &#8212; this is the video codec you want the converted video to use. For iPod use, I suggest xvid. It is basically the same codec as mpeg4 (except open source) and you don&#8217;t run into buffer-underflow problems as often.</p>
<p><em>-b</em> &#8212; this is the video bitrate in kbit/s (higher bitrate means higher quality).</p>
<p><em>-qmin &#038; -qmax</em> &#8212; this controls the quality when dealing with VBR (variable bit rate). Basically a range to keep the quality between.</p>
<p><em>-acodec</em> &#8212; the audio codec to use. When converting to iPod video, this must be aac since that is the only format the iPod supports.</p>
<p><em>-ab</em> &#8212; this is the audio bitrate in kbit/s. 96 kbit/s offers decent audio quality for iPod use.</p>
<p><em>-i</em> &#8212; input file (obviously?).</p>
<p><em>-s</em> &#8212; size of the output video. The iPod supports 320&#215;240, 480&#215;480 and with the newest firmware, now supports 640&#215;480. If you want to retain the source aspect ratio, make sure you calculate the new size to follow the sources aspect ratio.</p>
<p><em>-aspect</em> &#8212; aspect ratio for the converted video. This is especially important if your input video is 16:9 and you want to keep the ratio and replace the extra space with black bars. The aspect ratio is usually 4:3 or 16:9.</p></blockquote>
<p>Now,after you have run this command, your video should begin to be converted. The time it takes to convert depends greatly on the hardware being used. I often offload this task to a P-III 800 machine, and it seems to be able to encode a video in the same time it would take to watch it. Again, the nice thing about offloading this task is that you can now use your main system for other fun tasks.</p>
<p>Might I suggest maybe using your main machine to whip up a quick script to encode a list of videos, perhaps at night when spare cpu cycles are pleniful? The nice thing about batching up video conversions like this, is that it is also compatible with mac&#8217;s running OSX. Sure, you could use the mac-GUI program to do it, but that is going to require a whole lot more human interaction to convert 10 shows.</p>
<p>For mor information of supported codecs, see the <a href="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#SEC24">FFMPEG Documentation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.newthink.net/2007/03/02/converting-tv-shows-to-play-on-your-ipod-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
