I spent a little time last night and this morning playing with the new Walkman and came up with a nice Python script for copying tracks to it — you can grab it here. It does a few things:
- sanitises the tags using “mid3v2” tool from mutagen
- looks for “cover.jpg”, “Folder.jpg”, “folder.jpg”, or “.folder.jpg” files in the same folder as the MP3 files, and adds them as cover art if found
- looks for disc number tags and adds some “Disc n” text on the end of the album field if found, to work around the lack of disc tag support
- writes the file in to the appropriate artist/album folder on the Walkman, saving the tag as ID3 v2.3
Apart from python-mutagen, it needs python-eyed3 (used for all the tag manipulation, since mutagen is really geared toward writing v2.4 only) and ImageMagick’s “convert” tool (for shrinking album art before embedding it). It might come in handy for users of other mass-storage MP3 players, either as-is or with minor modifications.
I’ve also got a little bash script here for converting videos to H.264/AAC MPEG-4 format for the Walkman. It uses ffmpeg (with FAAC and x264 for encoding) to do the conversion, and to create a JPEG thumbnail file.
My Sony Walkman A818 arrived in the post yesterday (after buying it on Tuesday — best eBay store evar), and so far I’m very happy with it. I knew it would be small, but it’s still smaller than I expected, being just a smidge shorter and wider than Kat’s first-generation Nano. The hardware is very solid, with metal casing all the way around, a clear, bright screen, and buttons that give a very satisfying click. Despite being about 56g or so, it feels dense. The UI is also very solid, simple, and easy-to-use, without needless frills. I don’t know if I can say it sounds any better than my iPod (my ears aren’t golden enough), but either way, it sounds great, and the one thing I was worried about — that its 10mW amp wouldn’t be enough for my headphones — is not a problem in the slightest.
Niggles? Yep, there are a few, mostly in regards to tagging. Unlike an iPod, where the track database is built by an app on the PC, you simply copy tracks to the Walkman, and it builds its database when you disconnect, which takes about 20-30 seconds. The problem is that the Walkman’s firmware is more picky about tags than gtkpod was — ID3v1 tags don’t display properly, and v2.4 tags sometimes don’t display at all, so v2.3 seems to be the magic number. It also ignores TPOS (disc number) fields, so multi-disc albums have their tracks lumped together rather than being sorted by disc, and then by track.
I’ve worked out a simple process for converting the tags and embedding album art if it’s available, but I’m not sure about the disc number issue. I’ll probably knock up a Python “copy file to Walkman” script that does the tag conversion, embeds the album art, and then appends “disk n” to the end of the album tag for multi-disc albums. It shouldn’t take long to come up with something like that, so I’ll give it a go tonight.