<?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>Sysadmin Ramblings &#187; iPod</title>
	<atom:link href="http://ramblings.narrabilis.com/wp/category/ipod/feed/" rel="self" type="application/rss+xml" />
	<link>http://ramblings.narrabilis.com/wp</link>
	<description>Scripts, settings, and fixes...</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:29:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPod not recognised by Songbird (Fedora 11, Songbird 1.1.2/1.2)</title>
		<link>http://ramblings.narrabilis.com/wp/ipod-not-recognised-by-songbird-fedora-11-songbird-11212/</link>
		<comments>http://ramblings.narrabilis.com/wp/ipod-not-recognised-by-songbird-fedora-11-songbird-11212/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 05:01:17 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iPod]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/?p=155</guid>
		<description><![CDATA[I was trying to get Songbird to recognise my ipod and it wouldn&#8217;t because the ipod was automounted under /media. 

I put the UUID of the iPod_Control partition in my fstab.  I used blkid to get the UUID of that partition.


[root@server0 ~]# blkid /dev/sdc2
/dev/sdc2: LABEL=&#34;IPOD&#34; UUID=&#34;ABCD-1234&#34; TYPE=&#34;vfat&#34; 


I then put the UUID in fstab

UUID=ABCD-1234&#160;&#160;&#160;&#160;/mnt/ipod&#160;&#160;&#160;&#160;vfat&#160;&#160;user&#160;&#160;0 [...]]]></description>
			<content:encoded><![CDATA[I was trying to get Songbird to recognise my ipod and it wouldn&#8217;t because the ipod was automounted under /media. 

I put the UUID of the iPod_Control partition in my fstab.  I used blkid to get the UUID of that partition.
<span id="more-155"></span>
<code><br />
[root@server0 ~]# blkid /dev/sdc2<br />
/dev/sdc2: LABEL=&quot;IPOD&quot; UUID=&quot;ABCD-1234&quot; TYPE=&quot;vfat&quot; <br />
</code>
<!--adsense#inline-->
I then put the UUID in fstab
<code><br />
UUID=ABCD-1234&nbsp;&nbsp;&nbsp;&nbsp;/mnt/ipod&nbsp;&nbsp;&nbsp;&nbsp;vfat&nbsp;&nbsp;user&nbsp;&nbsp;0 0<br />
</code>

After this, I ejected the iPod using &#8220;eject /dev/sdc&#8221;.  Reinserting the iPod i then mounted the iPod using &#8220;mount /mnt/ipod&#8221;.  After all that I restarted songbird and the ipod was detected right away.
<p>
The preferences button on the add-on was greyed out for me the whole time btw.]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/ipod-not-recognised-by-songbird-fedora-11-songbird-11212/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Extracting audio from a VOB/DVD</title>
		<link>http://ramblings.narrabilis.com/wp/extracting-audio-from-a-vobdvd/</link>
		<comments>http://ramblings.narrabilis.com/wp/extracting-audio-from-a-vobdvd/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 19:42:56 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iPod]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/extracting-audio-from-a-vobdvd/</guid>
		<description><![CDATA[I have a DVD from which I wish to extract an audio clip.  I used the raw VOB files and mplayer. The clip I wanted is 37 seconds long and starts 18 minutes and 53 seconds into the first VOB file.

mplayer -ss 18:53 -endpos 37 -vc null -vo null -aid 128 -ao pcm:file=vts.wav VTS_01_1.VOB

The [...]]]></description>
			<content:encoded><![CDATA[I have a DVD from which I wish to extract an audio clip.  I used the raw VOB files and mplayer. The clip I wanted is 37 seconds long and starts 18 minutes and 53 seconds into the first VOB file.<br />
<span id="more-79"></span>
<tt>mplayer -ss 18:53 -endpos 37 -vc null -vo null -aid 128 -ao pcm:file=vts.wav VTS_01_1.VOB</tt>

The important thing to note is that the end position (-endpos) is relative to the start position (-ss).  
This gives me a WAV file that I could use right away, but I wanted an MP3 for my iPOD.<br />
<tt>lame vts.wav vts.mp3</tt>
<!--adsense#ipod-->
Now I have an mp3 of the audio clip starting at 18:53 and lasting 37 seconds.
]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/extracting-audio-from-a-vobdvd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ejecting iPod under Linux</title>
		<link>http://ramblings.narrabilis.com/wp/ejecting-ipod-under-linux/</link>
		<comments>http://ramblings.narrabilis.com/wp/ejecting-ipod-under-linux/#comments</comments>
		<pubDate>Sun, 23 Apr 2006 00:43:22 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iPod]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/ejecting-ipod-under-linux/</guid>
		<description><![CDATA[Symptom: iPod is blinking &#8220;Do Not Disconnect&#8221; even after you&#8217;ve umounted the filesystem.

You need to eject the iPod.  Umounting is not enough.  You need to send an ALLOW_MEDIUM_REMOVAL to the usb device.  The easiest way is with eject.  Depending on your system, you may need to be root, or allow suid [...]]]></description>
			<content:encoded><![CDATA[Symptom: iPod is blinking &#8220;Do Not Disconnect&#8221; even after you&#8217;ve umounted the filesystem.
<span id="more-47"></span><!--adsense#bottom-->
You need to eject the iPod.  Umounting is not enough.  You need to send an ALLOW_MEDIUM_REMOVAL to the usb device.  The easiest way is with eject.  Depending on your system, you may need to be root, or allow suid on eject (<tt>chmod u+s `which eject`</tt>).  I&#8217;ve found that suid on eject is the most consistent solution, but I don&#8217;t like suid executables on the system.  sudo should also work, but I haven&#8217;t tested this yet.
<p>
There is a patch in the recent eject that should solve this if you own the device (<tt>chown `whoami` /dev/devicename</tt>).
Anyway, if your device was mounted under /media/usbdisk, do this:
<code><br />
eject /media/usbdisk<br />
</code>
(This just executes &#8220;eject /dev/sde&#8221; on my system, but it doesn&#8217;t require you knowing the device name)
After a few seconds your iPod will flash and you&#8217;ll be ready to go again&#8230; 
<p>
If you already umounted the filesystem, eject will not work.  You&#8217;ll need to try remounting the filesystem and ejecting or just pull the plug and reconnect.  ]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/ejecting-ipod-under-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Howto import songs and videos onto an iPod in Linux</title>
		<link>http://ramblings.narrabilis.com/wp/howto-import-songs-and-videos-onto-an-ipod-in-linux/</link>
		<comments>http://ramblings.narrabilis.com/wp/howto-import-songs-and-videos-onto-an-ipod-in-linux/#comments</comments>
		<pubDate>Tue, 07 Mar 2006 19:31:39 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iPod]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/howto-import-songs-and-videos-onto-an-ipod-in-linux/</guid>
		<description><![CDATA[There is an excellent package for working with an iPod on Linux.  gtkpod.  Since version 0.99.2 it supports importing of Video&#8217;s


To install gtkpod, you&#8217;ll need libgpod.  With both installed, you can run gtkpod (it&#8217;ll be in your menu under Sound &#038; Video, called iPod Song Manager) and tell it where your system [...]]]></description>
			<content:encoded><![CDATA[There is an excellent package for working with an iPod on Linux.  <a href="http://www.gtkpod.org/about.html">gtkpod</a>.  Since version 0.99.2 it supports importing of <a href="/wp/howto-encode-dvd-video-for-an-ipod-ffmpeg/">Video&#8217;s</a>
<span id="more-23"></span>
<!--adsense-->
To install gtkpod, you&#8217;ll need libgpod.  With both installed, you can run gtkpod (it&#8217;ll be in your menu under Sound &#038; Video, called iPod Song Manager) and tell it where your system mounted your iPod.  On my machine the mini mounts to /media/ipod and the video mounts to /media/usbdisk.
gtkpod 0.99.4 <a href="/RPMS/i386/gtkpod-0.99.4-1.PU_IAS.1.i386.rpm">RPM</a> <a href="/SRPMS/gtkpod-0.99.4-1.PU_IAS.1.src.rpm">SRPM</a> <a href="/SPECS/gtkpod.spec">SPEC</a><br />
libgpod 0.3.2 <a href="/RPMS/i386/libgpod-0.3.2-1.PU_IAS.1.i386.rpm">RPM</a> <a href="/SRPMS/libgpod-0.3.2-1.PU_IAS.1.src.rpm">SRPM</a> <a href="/SPECS/libgpod.spec">SPEC</a>
<p>
<a href="/images/time_machine.jpg"><img border=0 src="/images/time_machine-thumb.jpg" alt="Time Machine Track Details" style="float:right;margin=1em" /></a>The songs are in iPodControl/Music/f??/*mp3.  The videos are in the Videos dir.  To put a video on the iPod, first <a href="/wp/howto-encode-dvd-video-for-an-ipod-ffmpeg/">encode it properly</a>.  Next using nautilus, drag the file from your computer to the iPod in gtkpod.  Or just go to &#8220;+ Files&#8221; icon and click on it.  Once your file is imported, it should be at the bottom of the list of songs/videos.  Right click and select &#8220;Edit Details&#8221; to give your video an Artist, Album and Title.  Mp3&#8217;s with proper tags should already have their information set correctly.  Don&#8217;t forget to click &#8220;Sync&#8221; before ejecting your iPod.  (I find using &#8220;eject /media/usbdisk&#8221; to be the most effective way of undocking the iPod).
]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/howto-import-songs-and-videos-onto-an-ipod-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Howto encode DVD video for an iPod (ffmpeg)</title>
		<link>http://ramblings.narrabilis.com/wp/howto-encode-dvd-video-for-an-ipod-ffmpeg/</link>
		<comments>http://ramblings.narrabilis.com/wp/howto-encode-dvd-video-for-an-ipod-ffmpeg/#comments</comments>
		<pubDate>Tue, 07 Mar 2006 16:35:19 +0000</pubDate>
		<dc:creator>uphill</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iPod]]></category>

		<guid isPermaLink="false">http://ramblings.narrabilis.com/wp/howto-encode-dvd-video-for-an-ipod-ffmpeg/</guid>
		<description><![CDATA[My co-worker just got an iPod so I thought I would try and encode a DVD onto it (an unencrypted DVD that I own, for backup purposes only, not to be used for public performances, etc, only I looked at it, I shut it off when someone looked over my shoulder&#8230;blah blah).  The ffmpeg [...]]]></description>
			<content:encoded><![CDATA[My co-worker just got an iPod so I thought I would try and encode a DVD onto it (an unencrypted DVD that I own, for backup purposes only, not to be used for public performances, etc, only I looked at it, I shut it off when someone looked over my shoulder&#8230;blah blah).  The ffmpeg that comes stock on RHEL4 is insufficient to do the transcoding.  I built a newer version and mucked around a bit and got this going. I have a simple wrapper (there are numerous versions of such scripts floating around).
<span id="more-22"></span>
<p>
ffmpeg-20060306 <a href="/RPMS/i386/ffmpeg-0.4.9-0.20060306.3.PU_IAS.2.i386.rpm">RPM</A> <a href="/SRPMS/ffmpeg-0.4.9-0.20060306.3.PU_IAS.2.src.rpm">SRPM</a> <a href="/SPECS/ffmpeg-0.4.9-uphill.spec">SPEC</a>

<!--adsense#inline--><p>

Find your VOB files on the DVD<br />
<code><br />
[uphill@burnaby ]$ mount /dev/dvd<br />
[uphill@burnaby ]$ cd /media/cdrecorder/VIDEO_TS<br />
[uphill@burnaby ]$ ls *VOB<br />
[uphill@burnaby VIDEO_TS]$ ls *VOB<br />
VIDEO_TS.VOB&nbsp;&nbsp;VTS_03_0.VOB&nbsp;&nbsp;VTS_06_0.VOB&nbsp;&nbsp;VTS_09_0.VOB&nbsp;&nbsp;VTS_12_0.VOB<br />
VTS_01_0.VOB&nbsp;&nbsp;VTS_03_1.VOB&nbsp;&nbsp;VTS_06_1.VOB&nbsp;&nbsp;VTS_09_1.VOB&nbsp;&nbsp;VTS_12_1.VOB<br />
VTS_01_1.VOB&nbsp;&nbsp;VTS_04_0.VOB&nbsp;&nbsp;VTS_07_0.VOB&nbsp;&nbsp;VTS_10_0.VOB<br />
VTS_01_2.VOB&nbsp;&nbsp;VTS_04_1.VOB&nbsp;&nbsp;VTS_07_1.VOB&nbsp;&nbsp;VTS_10_1.VOB<br />
VTS_02_0.VOB&nbsp;&nbsp;VTS_05_0.VOB&nbsp;&nbsp;VTS_08_0.VOB&nbsp;&nbsp;VTS_11_0.VOB<br />
VTS_02_1.VOB&nbsp;&nbsp;VTS_05_1.VOB&nbsp;&nbsp;VTS_08_1.VOB&nbsp;&nbsp;VTS_11_1.VOB<br />
</code>

Then run ffmpeg on them to encode them for the iPod (this is for a 4:3 format file)
<code><br />
[uphill@burnaby VIDEO_TS]$ ffmpeg \<br />
&nbsp;&nbsp;-i VTS_01.VOB \ # input file name<br />
&nbsp;&nbsp;-f mp4 \&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# output file format<br />
&nbsp;&nbsp;-r 30 \&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # frame rate<br />
&nbsp;&nbsp;-vcodec mpeg4 \ # video codec <br />
&nbsp;&nbsp;-maxrate 1000 \ # maximum video bitrate tolerance<br />
&nbsp;&nbsp;-b 700 \&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# video bitrate in kbit/s<br />
&nbsp;&nbsp;-qmin 3 \&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # minimum video quantiser scale (VBR)<br />
&nbsp;&nbsp;-qmax 5 \&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # maximum video quantiser scale (VBR)<br />
&nbsp;&nbsp;-bufsize 4096 \ # rate control buffer size<br />
&nbsp;&nbsp;-g 300 \&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# gop (group of pictures) size<br />
&nbsp;&nbsp;-acodec aac \&nbsp;&nbsp; # audio codec to use<br />
&nbsp;&nbsp;-ar 44100 \&nbsp;&nbsp;&nbsp;&nbsp; # audio sampling frequency<br />
&nbsp;&nbsp;-ab 192 \&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # audio bitrate<br />
&nbsp;&nbsp;-s 320x240 \&nbsp;&nbsp;&nbsp;&nbsp;# output resolution<br />
&nbsp;&nbsp;-aspect 4:3 \&nbsp;&nbsp; # aspect ratio<br />
&nbsp;&nbsp;/tmp/output.mp4 # filename for output<br />
</code>

Your output file should then be able to transfer the file to your iPod and enjoy.  The VOB files on the DVD are not likely to be split up exactly as you would like to have them.  To get the whole movie off the dvd, you&#8217;ll need to feed all the VOB&#8217;s into ffmpeg, note that the menu&#8217;s are also stored in a VOB file, so you&#8217;ll want to figure out which ones those are and not include them.
<p>
For example, the menu&#8217;s on my DVD are in VTS_01_0.VOB, so I did the following:
<code><br />
[uphill@burnaby VIDEO_TS]$ for vob in `ls *VOB |egrep -v VIDEO\|01_0`; do echo -n &quot;$vob &quot;; done; echo<br />
VTS_01_1.VOB VTS_01_2.VOB VTS_02_0.VOB VTS_02_1.VOB VTS_03_0.VOB VTS_03_1.VOB VTS_04_0.VOB VTS_04_1.VOB VTS_05_0.VOB VTS_05_1.VOB VTS_06_0.VOB VTS_06_1.VOB VTS_07_0.VOB VTS_07_1.VOB VTS_08_0.VOB VTS_08_1.VOB VTS_09_0.VOB VTS_09_1.VOB VTS_10_0.VOB VTS_10_1.VOB VTS_11_0.VOB VTS_11_1.VOB VTS_12_0.VOB VTS_12_1.VOB<br />
[uphill@burnaby VIDEO_TS]$ <br />
</code>

Then I simply pasted this output into my ffmpeg line above.
<p>
<!--adsense#ipod-->
<p>
<code><br />
[uphill@burnaby VIDEO_TS] cat VTS_01_1.VOB VTS_01_2.VOB VTS_02_0.VOB VTS_02_1.VOB VTS_03_0.VOB VTS_03_1.VOB VTS_04_0.VOB VTS_04_1.VOB VTS_05_0.VOB VTS_05_1.VOB VTS_06_0.VOB VTS_06_1.VOB VTS_07_0.VOB VTS_07_1.VOB VTS_08_0.VOB VTS_08_1.VOB VTS_09_0.VOB VTS_09_1.VOB VTS_10_0.VOB VTS_10_1.VOB VTS_11_0.VOB VTS_11_1.VOB VTS_12_0.VOB VTS_12_1.VOB | ffmpeg -i - \ #the rest of the options&#46;..<br />
</code>
I still need to play a bit with the settings, I optimised for quality, I need to have a low quality setting also.  I will probably built yet another wrapper for all this too, why not, everyone else is :-D]]></content:encoded>
			<wfw:commentRss>http://ramblings.narrabilis.com/wp/howto-encode-dvd-video-for-an-ipod-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
