ATV2 and Time Capsule

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
MrTraverso Offline
Junior Member
Posts: 8
Joined: Dec 2011
Reputation: 0
Post: #1
Hi guys,

I'm italian, so sorry for my bad english.

I've bought AT2 and Time Capsule. I've jailbreak AT2 and install XBMC. If i try to strem a 1080p film from my PC(windows 7) i don't have any problem but if i try to stream a same film from time capsule it are every 30 second in buffering.
If i play a film on my pc from tc have any problem. I Can't understand what is the problem.

thanks

PS: my Lan is all wired
find quote
MrTraverso Offline
Junior Member
Posts: 8
Joined: Dec 2011
Reputation: 0
Post: #2
someone help me please!!!
find quote
Jester Offline
XBMC for iOS* forums Moderator
Posts: 980
Joined: Oct 2008
Reputation: 10
Post: #3
screaming for help after 3 hours doesn't really help...

also

http://forum.xbmc.org/showthread.php?tid=92480

Current XBMC Platform: ATV2
Extra XBMC Platform: Raspberry Pi
Read the iOS FAQ
find quote
MrTraverso Offline
Junior Member
Posts: 8
Joined: Dec 2011
Reputation: 0
Post: #4
I'm sorry but I do not have any crash. I have a problem only with files in time capsule therefore i think is not necessary the log file.
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 21,160
Joined: Jan 2011
Reputation: 276
Location: Arizona, USA
Post: #5
Don't use a Time Capsule. Far too many reports of it not working. Also, no log = no soup
find quote
activate Offline
Fan
Posts: 603
Joined: Feb 2011
Reputation: 1
Post: #6
Lol@Jester....

Have to agree with Ned. I tried all sorts of combinations with atv2. Time Capsule was almost at the bottom of the list as far as performance goes. It might still work depending upon a host of other things, network, drive, connection, codec etc... Generally speaking though, you may struggle especially with high bitrate streams and the codecs requiring more processing.

Macmini Server 2011 i7 Quad Core, OS 10.8.2, Amp Onkyo TX-SR308 USB WD drives 3x2TB TV Samsung Plasma 720p EyeTV Integration
There are only 10 kinds of people in this world, those who understand binary, and those who don't.



find quote
DStu Offline
Junior Member
Posts: 45
Joined: Sep 2011
Reputation: 0
Post: #7
I had a Time Capsule...tossed it out.

Got a Router with a USB host and plugged in 1TB portable drive instead. Works brilliantly, and you should be able to sell the Time Capsule and not have to fork out too much extra for the new gear.
find quote
bonic38 Offline
Junior Member
Posts: 10
Joined: Dec 2011
Reputation: 0
Post: #8
Hello,

I've got a timecapsule (4th gen) and ran initially into problems (with AFP giving even worse results than SMB). Those seems to be solved by changing TCP ACK settings in sysctl.conf on the ATV2 :

/etc/sysctl.conf :
net.inet.tcp.delayed_ack=1

Note that the value "0" simply don't work.

Playing high bitrates 1280p mkv now works like a charm with AFP - occasional stuttering may appear with SMB, but it is ways better than before (systematic buffering). Using Wifi.

Worth a try i think.
find quote
GnarusLeo Offline
Junior Member
Posts: 39
Joined: Nov 2011
Reputation: 0
Post: #9
Interesting!

http://en.wikipedia.org/wiki/TCP_window_scale_option

Seems like windows, linux and osx have this enabled by default, and iOS doesn't? (At work, not confirmed). It may not be set due to compability issues with some devices - if I know Apple right, it is better to be safe than sorry.

Read elsewhere that people with lin/osx had 5-6 times performance gain on AFP file transfer by playing with these values. Shocked

Thanks for the info, I will definitely try this when I come home.
find quote
MrTraverso Offline
Junior Member
Posts: 8
Joined: Dec 2011
Reputation: 0
Post: #10
Hi Bonic,

Thank you for reply. I've tried to connect with ssh in my AT2 but in ect/ i can't find sysctl.conf i've only found syslog.conf.
Could you help me please?

I've bought TC only for this because i thought there's no problem from apple device to apple device....

thanks
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 21,160
Joined: Jan 2011
Reputation: 276
Location: Arizona, USA
Post: #11
bonic38 Wrote:Hello,

I've got a timecapsule (4th gen) and ran initially into problems (with AFP giving even worse results than SMB). Those seems to be solved by changing TCP ACK settings in sysctl.conf on the ATV2 :

/etc/sysctl.conf :
net.inet.tcp.delayed_ack=1

Note that the value "0" simply don't work.

Playing high bitrates 1280p mkv now works like a charm with AFP - occasional stuttering may appear with SMB, but it is ways better than before (systematic buffering). Using Wifi.

Worth a try i think.

Sounds like we're on to something here!
find quote
Jester Offline
XBMC for iOS* forums Moderator
Posts: 980
Joined: Oct 2008
Reputation: 10
Post: #12
bonic38 Wrote:Hello,

I've got a timecapsule (4th gen) and ran initially into problems (with AFP giving even worse results than SMB). Those seems to be solved by changing TCP ACK settings in sysctl.conf on the ATV2 :

/etc/sysctl.conf :
net.inet.tcp.delayed_ack=1

Note that the value "0" simply don't work.

Playing high bitrates 1280p mkv now works like a charm with AFP - occasional stuttering may appear with SMB, but it is ways better than before (systematic buffering). Using Wifi.

Worth a try i think.


Nice one !

you can use
Code:
sysctl -w net.inet.tcp.delayed_ack=1
to try it "live"
the setting will be lost on reboot, if it works fine, create a /etc/sysctl.conf and put the line in there as indicated by bonic38

Current XBMC Platform: ATV2
Extra XBMC Platform: Raspberry Pi
Read the iOS FAQ
(This post was last modified: 2011-12-13 13:59 by Jester.)
find quote
Jester Offline
XBMC for iOS* forums Moderator
Posts: 980
Joined: Oct 2008
Reputation: 10
Post: #13
P.S.

as i'm now playing around with this, I just noticed the default maximum Segment Size is only 512 (probably done for wifi ??) however if you run a wired setup this is a bit low, as with ethernet you can use frame sizes of 1500 (minus TCP overhead) so this can be increased to 1440

so

Code:
sysctl -w net.inet.tcp.mssdflt=1440

Might give some more wired network speed, again this is only doing the setting live, you will loose it on reboot, for permanent, put it in /etc/sysctl.conf

Current XBMC Platform: ATV2
Extra XBMC Platform: Raspberry Pi
Read the iOS FAQ
find quote
MrTraverso Offline
Junior Member
Posts: 8
Joined: Dec 2011
Reputation: 0
Post: #14
I've open the post but i have not solved the problem. I can't find a sysctl in AT2.
Help me please.
find quote
GnarusLeo Offline
Junior Member
Posts: 39
Joined: Nov 2011
Reputation: 0
Post: #15
Hi,

this did definately change something. The moment I used delayed_ACK=1, all my movies would buffer much more rapidly I'm affraid.

Nevertheless, this might be onto something. I have played with alot of these sysctl settings, but yet to find a good setup for my rig. (Which should be pretty standard: ATV2 -> CAT6 -> Time Caspule

As to the OP:

If the file isn't there, simply create it. I prefer installing nano first, and edit my files directly through SSH:

1. apt-get install nano
2. nano /etc/sysctl.conf
3. type whatever you want accoring to previous posts
4. Press ctrl-o, confirm by "y", and ctrl-x to quit again.
find quote
Post Reply