Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Choppy video streaming from samba on wireless network

Hey all,
I have a macbook pro with leopard 10.5.7 installed. The server setup is a Linux server running samba which is wired to a wireless router. I connect my macbook pro wirelessly to the router. Everything is all set up; my computer can connect to the server and browse the files without a problem. However, when I try to watch videos stored on my server through samba, the video is extremely choppy and practically unwatchable. I know this is a wireless problem with my macbook pro because my windows desktop has no problems at all watching videos over the wireless connection and when I wire the laptop directly to the router, the video streams just fine i.e, no choppiness. I have browsed the fourms and the internet but no solution has come up yet. I was hoping someone here might have a solution.

Thanks,
schne1derman

15" Macbook Pro, Mac OS X (10.5.7)

Posted on May 25, 2009 12:47 PM

Reply
12 replies

May 25, 2009 2:24 PM in response to Morgan Schneider

You may want to look at this link, http://ubuntuforums.org/showthread.php?t=938902
The suggestion is to use NFS for the OS X connection and Samba for the Windows machines. Quote "if you are running OS X and want to mount a share, use NFS, and not Samba. But obviously, you still need Samba if you have Windows computers. So both NFS and Samba servers are now running on my Ubuntu computer."

Not at lot I can add but best of luck.

regards
Frank

May 25, 2009 3:33 PM in response to Morgan Schneider

Okay, in the nfs exports file on the file sever, I added the no_wdelay and sync options and that seems to have helped also, but the video is still somewhat choppy (although it is definitely better than before). Still, it is not as good as the windows desktop. I seem to recall seeing something about plugin interactions when using vlc, Quicktime plugins or something along those lines but I can't find it anymore.

May 26, 2009 3:33 AM in response to Morgan Schneider

Thank God! I thought I was the only one having this problem.

I also have a Ubuntu box with all my movies and I stream videos wirelessly from it to my macbook using XBMC (ubuntu) and Plex (mac). At first I thought the problem was the wireless G speeds from my previous router so I bought an Airport Extreme Base Station and connected it via ethernet to my existing ADSL/Wireless router on a bridge configuration. Both ubuntu and macbook are now connected at 300Mbps but I'm still experiencing occasional choppy video. The wireless connection stays up at all times so it's not a wireless connectivity issue.

I tried NFS but the problem persisted. I also installed Windows 7 RC on my bootcamp partition and had the exact same problem. Which means it can be an issue with the Airport on the macbook. I don't have another computer with Windows so I cannot say if it would work better on a PC.

At first I suspected the problem was with ubuntu so I posted this on the ubuntu forums: http://ubuntuforums.org/showthread.php?p=7324538

As you can see on the description I was getting those messages on the mac logs:

26/05/09 6:02:19 PM KernelEventAgent[198] tid 00000000 type 'smbfs', mounted on '/Volumes/MediaCenter', from '//ed@ed-linux/MediaCenter', not responding
26/05/09 6:02:19 PM KernelEventAgent[198] tid 00000000 found 1 filesystem(s) with problem(s)
26/05/09 6:02:19 PM loginwindow[197] 1 server now unresponsive


At first I thought it was a problem with the arp tables on the mac. I created a static entry for my ubuntu box. Now the connection is better and the samba volume doesn't disconnect as often and when it does, it reconnects after a while. Before the arp table static entry I had to reconnect manually:

26/05/09 6:02:32 PM kernel smb iodreconnect: Reconnected to ed-linux

One other thing to add. Before installing 10.5.7 (i.e running 10.5.6), I had this problem and the video used to get frozen (samba share disconnection) once or twice on a 1 hour video and reconnected 15 to 20 seconds right after it. Not a big deal. Now it happens several times (5 or 6 times on a 30 minute video) and it takes around 30 to 40 seconds to reconnect.

Message was edited by: edvar

May 26, 2009 2:46 PM in response to Frank Greenough

I'll change the cache settings on Plex and test. However if caching on the application is the problem why do I get this on my system logs:


26/05/09 6:02:19 PM KernelEventAgent198 tid 00000000 type 'smbfs', mounted on '/Volumes/MediaCenter', from '//ed@ed-linux/MediaCenter', not responding
26/05/09 6:02:19 PM KernelEventAgent198 tid 00000000 found 1 filesystem(s) with problem(s)
26/05/09 6:02:19 PM loginwindow197 1 server now unresponsive

May 27, 2009 1:31 AM in response to edvar

Tried all of that but the problem still persists:

27/05/09 6:16:28 PM KernelEventAgent[198] tid 00000000 type 'smbfs', mounted on '/Volumes/MediaCenter', from '//ed@ed-linux/MediaCenter', not responding
27/05/09 6:16:28 PM KernelEventAgent[198] tid 00000000 found 1 filesystem(s) with problem(s)
27/05/09 6:16:28 PM loginwindow[197] 1 server now unresponsive
27/05/09 6:16:28 PM loginwindow[197] 1 server now unresponsive
27/05/09 6:16:58 PM loginwindow[197] 1 server now unresponsive
27/05/09 6:17:39 PM kernel smb iodreconnect: Retrying connection to ed-linux
27/05/09 6:17:39 PM kernel smb iodreconnect: Retrying connection to ed-linux
27/05/09 6:18:13 PM kernel smb iodreconnect: Reconnected to ed-linux
27/05/09 6:18:13 PM KernelEventAgent[198] tid 00000000 received VQ_NOTRESP event (1)
27/05/09 6:18:13 PM loginwindow[197] No servers unresponsive
27/05/09 6:18:13 PM loginwindow[197] No servers unresponsive

May 28, 2009 1:58 AM in response to edvar

Great news! I just streamed a 30 minutes video from my samba share and I haven't had any disconnection.

Just for the sake of testing, I completely removed samba (apt-get remove --purge and deleted /etc/samba) from my Ubuntu box and reinstalled it with a vanilla config. After that I reconfigured everything as it was before. Tested the connection and the share was up and running again.

After reinstalling and reconfiguring my samba share from scratch I did a couple things on my Linux box:

- Added "netbios name = <computer name>" on smb.conf
- Added "socket options = TCP_NODELAY SO_KEEPALIVE IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192" on smb.conf
- Changed "wins support" to yes on smb.conf
- Installed winbind
- Restarted samba
- Configured my Ubuntu box as a WINS Server on my macbook (SYSTEM PREFERENCES -> NETWORK -> ADVANCED)

I'll keep testing with longer videos on the next couple of days and keep you guys posted. Hopefully it'll sove the problem once and for all!

Choppy video streaming from samba on wireless network

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.