AFP Best Practices + Library Loading Issue
#1
Hi all,

I'm writing to inquire on how best to set up AFP sharing to XBMC. Some details about my home networking setup:

XBMC: XBMC v11 Eden (Git:20120321-14feb09) running on Apple TV 2 (AppleTV2,1, Version 5.0.1 (Build 9A406a)) in living room connected via WiFi-N to
Media Server: MacBook Pro running OS X 10.7 Lion with media located on FW800 drives connected via Gigabit LAN to
Router: Buffalo WZR-HP-G300-NH running dd-wrt v24-sp2

Currently, File Sharing on OS X Media Server is set up using AFP. The Media Server is hard wired to the router and has a static IP address.

My questions are as follows

- Is it better to configure XBMC Sources.xml to read from the static IP address (afp://192.168.11.8) or should I connect via the computer's name "Frost"?

The 'Other Issue'.. In the past, Media Server was not configured with a static IP address. I deleted the Videos library DB files on the XBMC box, fixed the IP address issue in Sources.xml, and updated the library. Now I am getting issues whenever I try to play a video file - the XBMC box will hang for a long time before playing the file. Here's some information from the xbmc.log file..

Code:
14:30:22 T:103931904  NOTICE: DVDPlayer: Opening: afp://user:[email protected]/LaCie/Movies/Watchmen[2009]DvDrip[Eng]-FXG.avi
14:30:22 T:103931904 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
14:30:22 T:115212288  NOTICE: Creating InputStream
14:31:39 T:115212288   ERROR: LIBAFPCLIENT: Could not connect, never got a response to getstatus, Operation timed out
14:31:39 T:115212288   ERROR: AFP: Error connecting to afp://user:[email protected]/LaCie2/Movies/
14:31:39 T:115212288   ERROR: GetDirectory - Error getting afp://user:[email protected]/LaCie2/Movies/
14:31:39 T:115212288  NOTICE: Creating Demuxer
14:31:43 T:115212288  NOTICE: Opening video stream: 0 source: 256
14:31:43 T:115212288  NOTICE: Creating video codec with codec id: 13
14:31:43 T:115212288  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
14:31:43 T:115212288  NOTICE: Creating video thread
14:31:43 T:132698112  NOTICE: running thread: video_thread
14:31:43 T:115212288  NOTICE: Opening audio stream: 1 source: 256
14:31:43 T:115212288  NOTICE: Finding audio codec for: 86017
14:31:43 T:115212288  NOTICE: Creating audio thread
14:31:43 T:133259264  NOTICE: running thread: CDVDPlayerAudio::Process()
14:31:43 T:132698112  NOTICE:  fps: 23.976024, pwidth: 672, pheight: 272, dwidth: 672, dheight: 272

As you can see, the player takes over a minute from the time that I select the file to the time that playback begins. I suspect that most of the hangup is due to the fact that it is still attempting to connect to the old IP address, where the shares used to be located. I'm baffled because I have already deleted the Videos DB file. Looking through the Videos DB file yields no mention of the old IP (192.168.11.54) and all the references are correct.

Your help is appreciated.
Reply
#2
Continue to use ip adresses. Check out the wiki to find out where media sources adresses are stored. From the log it looks like xbmc is still using the old one.
My skins:

Amber
Quartz

Reply
#3
I've already fixed the media locations in Sources.xml located at /private/var/mobile/Library/Preferences/XBMC/userdata

Any other ideas as to where XBMC is still calling the old reference?
Reply
#4
Fixed:

GUISettings.xml had the Subtitles folder pointing to the old IP address

Load times are short now Wink
Reply
#5
Nice catch! I would have never thought of that.
My skins:

Amber
Quartz

Reply

Logout Mark Read Team Forum Stats Members Help
AFP Best Practices + Library Loading Issue0