PDA

View Full Version : Difficulty adding iTunes database - file URIs ?



jdp
2005-12-20, 07:54
I've put my iTunes library on my SlimServer box, but have to copy the XML over. For now I'm hand-changing the URIs to each media file, but can't get it working.

I changed the location in the XML file to
file://home/samba/public/iTunes/Podcasts/The%20Ricky%20Gervais%20Show/The%20Ricky%20Gervais%20Show%20-%20Episode%202.m4a

Slimserver seems to find the files:

2005-12-20 14:44:33.2099 iTunes: Attempting to get lock on iTunes Library XML file.
2005-12-20 14:44:33.2101 iTunes: Got file lock on iTunes Library
2005-12-20 14:44:33.2103 iTunes: Created a new Non-blocking XML parser.
2005-12-20 14:44:33.2108 iTunes: Parsing next bit of XML..
2005-12-20 14:44:33.2118 iTunes: found the music folder: file://home/samba/public/iTunes
2005-12-20 14:44:33.2122 iTunes: starting track parsing
2005-12-20 14:44:33.2143 iTunes: found path via config file at: /home/samba/public/iTunes/iTunes Music Library.xml
2005-12-20 14:44:33.2145 iTunes: set iTunes library to itunes_library_music_path value of: /home/samba/public/iTunes
2005-12-20 14:44:33.2159 iTunes: got a track named The Ricky Gervais Show - Episode 2 location: file://home/samba/public/iTunes/Podcasts/The%20Ricky%20Gervais%20Show/The%20Ricky%20Gervais%20Show%20-%20Episode%202.m4a
2005-12-20 14:44:33.2874 iTunes: found path via config file at: /home/samba/public/iTunes/iTunes Music Library.xml
2005-12-20 14:44:33.2877 iTunes: set iTunes library to itunes_library_music_path value of: /home/samba/public/iTunes
2005-12-20 14:44:33.2891 iTunes: got a track named The Ricky Gervais Show - Episode 3 location: file://home/samba/public/iTunes/Podcasts/The%20Ricky%20Gervais%20Show/The%20Ricky%20Gervais%20Show%20-%20Episode%203.m4a
2005-12-20 14:44:33.5662 iTunes: starting playlist parsing, cleared old playlists
2005-12-20 14:44:33.5696 iTunes: got a playlist array of 2 items
2005-12-20 14:44:33.5699 iTunes: got a playlist (itunesplaylist:Podcasts) named Podcasts
2005-12-20 14:44:33.7429 iTunes: playlists now has 2 items...
2005-12-20 14:44:33.7453 iTunes: Finished scanning iTunes XML
2005-12-20 14:44:33.7455 iTunes: done Scanning: unlocking and closing
2005-12-20 14:44:33.7469 iTunes: found path via config file at: /home/samba/public/iTunes/iTunes Music Library.xml
2005-12-20 14:44:33.7630 iTunes: scan completed in 0 seconds.

The songs appear in the menu / database just fine. But whenever I try to play them, I get:

2005-12-20 14:44:56.0751 ERROR: Couldn't open song.

Any ideas? What should the XML path actually be?

jdp
2005-12-20, 08:01
also tried file://localhost/home/samba/public/iTunes/Podcasts/The%20Ricky%20Gervais%20Show/The%20Ricky%20Gervais%20Show%20-%20Episode%202.m4a (as per instructions in Misc.pm) but no joy

jdp
2005-12-21, 02:57
I solved this anyway. The file/URI thing was a red herring, it was actually that Slimserver was unable to play the mp4 (mp4a) file. I don't even need to manually change the XML file, as it even converts the Windows share name into a unix path just fine.

Found this code in a search on here, entered it into slimserver-convert.conf:



mov mp3 * *
[mplayer] -novideo -vc dummy -vo null -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>&2 2>/dev/null | [lame] --silent -q $QUALITY$ -b $BITRATE$ - -

mov flc * *
[mplayer] -novideo -ao pcm:file=/dev/fd/4 $FILE$ 4>&1 1>/dev/null|[flac] -cs --totally-silent --compression-level-0 -


And it works just fine :)