A collection of opinions, thoughts, tricks and misc. information.
Sorry I haven't been posting recently. It was Christmas, after all. A time when persons of all religions may gather in harmony ;).
I got what I wanted. A nice 60GB 5th gen. iPod... Beautiful piece of technology. And, being the linux user I am, I thought it would take quite a bit for me to get this thing functioning, but was wrong. Here's what I had to do:
- Plug it in.
- Check dmesg for the location. It entered my /dev filesystem at sda. Yours may be sdb, or sdc, if you're using several USB storage devices.
- Download gtkPod sources.
- ./configure && make && make install
- Mount /dev/sdX2 to /mnt/ipod
I ended up getting the windows formatted system. Not too sure if that's the standard these days. If not, you'll
probably have to specify the mac filesystem (otherwise it's fat32) It's easier to set it up in fstab, and make sure you give your normal user permissions to access the drive.
- Start gtkpod as a user with access to the drive.
- Add all the music you've got.
- Click sync, and let gtkpod write the itunesdb file.
- Unmount the partition: umount /dev/sda2
- From what I've seen, that should do it for you, and you can unplug it even if you see the "Do not Disconnect" message. If you're still scared (or just want to charge it and play music at the same time), just # eject /dev/sda
- You're set... You can use ffmpeg to convert video to the proper format. I've written a very small python script so I don't have to remember everything:
#! /usr/bin/env python
import sys,os
try:
avifile = sys.argv[1]
output = sys.argv[2]
# os.system("""/usr/bin/ffmpeg -vcodec xvid -b 300 -qmin 3 -qmax 5 -bufsize 4096 -g
# 300 -acodec aac -ab 96 -i %s -s 320x240 -aspect 4:3 %s""", (avifile,
# output))
print "Input file: %s" % avifile
print "Output file: %s" % output
os.system("""/usr/bin/ffmpeg -b 300 -qmax 5 -g 300 -i %s -f mov %s""" % (avifile,output))
print "Done."
except:
print "Error occurred!"
Till next time,
James