bbhoss / shairport

UNOFFICIAL MIRROR - Airtunes emulator! Inactive, please use the albertz fork.
https://github.com/albertz/shairport
71 stars 12 forks source link

Missing frames iPhone -> Shairport Server #6

Open davidohne opened 13 years ago

davidohne commented 13 years ago

Okay. Server is working on: MacBook Pro (mid09) Mac Mini Mac Server (Hackintosh c2d)

Sending music through iTunes between the three machines works flawless:

but there seems to be a problem by sending sound from iPhone (4, 4.3.1, JB) to to servers (tested every server - everywhere the same problem: missing frames)

I think i can eliminate the WiFi connection between the two devices because it works fine in every other application - it is a n-draft connection (dlink dir825).

The Server terminal brings out the following message:

new connection from ::ffff:192.168.0.102 REQ: OPTIONS REQ: ANNOUNCE REQ: SETUP launched decoder: 32100 on port: 6000 REQ: RECORD REQ: SET_PARAMETER

missing frame. requesting resend on 2 packets (port 57409)

missing frame. requesting resend on 2 packets (port 57409)

missing frame. requesting resend on 2 packets (port 57409)

missing frame. requesting resend on 2 packets (port 57409)

missing frame. REQ: FLUSH requesting resend on 3 packets (port 57409) requesting resend on 2 packets (port 57409) requesting resend on 2 packets (port 57409)

missing frame.

missing frame.

missing frame.

missing frame. requesting resend on 2 packets (port 57409)

missing frame. requesting resend on 3 packets (port 57409)

missing frame.

missing frame. requesting resend on 2 packets (port 57409)

missing frame. requesting resend on 2 packets (port 57409) requesting resend on 2 packets (port 57409)

missing frame. requesting resend on 3 packets (port 57409)

missing frame.

missing frame.

missing frame. requesting resend on 3 packets (port 57409)

missing frame.

missing frame. requesting resend on 2 packets (port 57409)

missing frame. requesting resend on 2 packets (port 57409)

sjmorrow commented 13 years ago

I get the same problem, and a google search returns many others with the same problem as well. The audio is being output, but it is corrupted and sounds like aliens with a lot of clicking as well. Those error messages are coming from hairtunes.c

Crazor commented 13 years ago

Have you tried streaming via wifi from one of your other computers?

For me, all wired connections are fine, but all wireless connections (iPhone, MacBook) are missing frames and requesting resends.

I'm using 802.11g.

sjmorrow commented 13 years ago

All my clients have been wi-fi clients. Havn't tried it with wired yet, but can later on. Using 802.11g as well, but that shouldn't make a difference.

Crazor commented 13 years ago

Hm so right now I've streamed music from my MacBook via wireless and hand next to no distortion, apart from very few short hickups. My iPhone also streams nearly flawless right now, though not as good as my MacBook. Maybe my wifi was disturbed or something like that. I haven't changed anything on the debian box. No other stuff running there etc.

davidohne commented 13 years ago

hm i still got lags with my iphone. the wifi connection can't be the problem because i changed the access point and macbook wifi works without any missing frames..

VincentGijsen commented 13 years ago

I still think it's wifi-related, perhaps making the buffer sizes bigger will reduce some of the hickups. Seen this behavior on real apple airport expresses ass well, due to clogged-up 2.4 band. Don't know about your situation but in the city, wifi reception is bad due to overcrowded ap's on 2.4 band. Ipod/iphone seem to have more trouble with this phenomena than macbooks, but still. Try switching your AP to a less crowded band, turn off auto-channel-hopping feature as well.

Crazor commented 13 years ago

At least for me, overcrowded wifi is not the cause. There is only one other weak network on a channel with maximum distance. I'll try increasing the buffer size..

Am 17.04.2011 um 13:28 schrieb vinietje reply@reply.github.com:

I still think it's wifi-related, perhaps making the buffer sizes bigger will reduce some of the hickups. Seen this behavior on real apple airport expresses ass well, due to clogged-up 2.4 band. Don't know about your situation but in the city, wifi reception is bad due to overcrowded ap's on 2.4 band. Ipod/iphone seem to have more trouble with this phenomena than macbooks, but still. Try switching your AP to a less crowded band, turn off auto-channel-hopping feature as well.

Reply to this email directly or view it on GitHub: https://github.com/bbhoss/shairport/issues/6#comment_1016497

davidohne commented 13 years ago

Well after i changed nearly everything u can change on an DIR-825 D-Link router gui i found a solution to eliminate nearly every missing frame when u connect an iphone to the shairport. (6minutes playback, 2 songchanges = 2 missing frames)

The D-Link DIR-825 routers have a feature called WMM and Short GI. I know that nearly every access point beside this model has got the WMM feature. -> YOU HAVE TO DEACTIVATE THIS and if there is also something like the Short GI function you also have to DEACTIVATE THIS!!

I hope this helps more people to blow off the missing frames and lags with shairport.

iLLNESS commented 13 years ago

im having the same issue here. i get ALOT of dropped frames from my IPT to my ubuntu distro.

disabling WMM helped quite a bit, but there are still a fair bit of missing frames. the audio comes out fine, but its got choppyness because of these missed frames.

im using DDWRT and it doesnt seem to have any short gi option in the gui to disable. im having a hard time finding documentation on it for DDWRT as well so im unsure if the router has the option to toggle thats just not in the gui.

playing from osx itunes hardwired to the ubuntu box, it plays fine and has no missing frames just like others.

VincentGijsen commented 13 years ago

I had a lot of headaches due to DDWRT, i found the Tomato firmware although less options far more stable. Still problems but more stability

i live in the city and the 2.4 band is very crowdy.

try switching to another band and DON't use the auto channel modus. just set it to 1 of the 12. Keep in mind that each channel overlaps others. so best to use 1, 4, 8 or 12 for best separation.

2011/4/22 iLLNESS reply@reply.github.com:

im having the same issue here. i get ALOT of dropped frames from my IPT to my ubuntu distro.

disabling WMM helped quite a bit, but there are still a fair bit of missing frames. the audio comes out fine, but its got choppyness because of these missed frames.

im using DDWRT and it doesnt seem to have any short gi option in the gui to disable. im having a hard time finding documentation on it for DDWRT as well so im unsure if the router has the option to toggle thats just not in the gui.

playing from osx itunes hardwired to the ubuntu box, it plays fine and has no missing frames just like others.

Reply to this email directly or view it on GitHub: https://github.com/bbhoss/shairport/issues/6#comment_1044090

Met vriendelijke groet,

Vincent Gijsen

Verstuurd vanaf mijn IGoogle

iLLNESS commented 13 years ago

ive already been set to channel 8 the whole time. i have 1 other network in my area which is on a different channel so i shouldnt have any issues with interference from other routers.

also, id like to avoid switching firmwares. its something that should be adressed in the software if at all possible. airplay itself does not have this issue on the same device when i send it to my apple devices.