ATV2 and XBMC bufferring

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
roygbiv Offline
Junior Member
Posts: 19
Joined: Feb 2011
Reputation: 4
Post: #61
kimsharma Wrote:@elcaballo

I have a couple of things to add :
1. On the initial version of XBMC from January (the first release ever), I had no problems playing files up to 8GB on over wired windows SMB share (but ATV2 was on wireless N)
2. On the new version of XBMC, per the Feb 14th/15th release, and using the greenpois0n JB, I have the same issues as you do - buffereing for the same exact files on wired SMB. I tried installing a UPnP server(twesity / ps3 media server) and the buffering is awful! Exact same setup, but significant buffering on the same files that playerd relatively smooth before.

I am going to try a complete wired only test later in the evening to see if that makes it better and will post my observations then. Just so we are on the same page, streaming over wireless ATV2 is totally useless.. I dont believe it is XBMC's fault.. it is just the filesize / bitrate that is not sustainable on wireless N.

Hope this adds to the perspective / discussion.

And yet using the Feb 14 release on a greenpois0n JB I can stream an 11gig 1080p .mkv of Inception on Wireless N with no drops using PS3 Media Server...
find quote
Eric_S Offline
Member
Posts: 65
Joined: Feb 2011
Reputation: 0
Post: #62
After some experimentation with UPnP servers and 720P video streamed over wireless N at 5GHz:

smb - Much Stuttering

UPnP (Majestic Server on early 2007, 2.16 GHz iMac) - Much less stuttering

" (Serviio " " " " " " ) - No Stuttering at all.

The Serviio link is here:

http://www.serviio.org/download
find quote
roygbiv Offline
Junior Member
Posts: 19
Joined: Feb 2011
Reputation: 4
Post: #63
Eric_S Wrote:After some experimentation with UPnP servers and 720P video streamed over wireless N at 5GHz:

smb - Much Stuttering

UPnP (Majestic Server on early 2007, 2.16 GHz iMac) - Much less stuttering

" (Serviio " " " " " " ) - No Stuttering at all.

The Serviio link is here:

http://www.serviio.org/download

I'm curious, what size files 720p are you testing. I am now finding that 720p .mkv rips of television shows aren't stuttering over SMB. They are usually around 1gig+ in size, but 720p movies, which are usually 4gig+ are stuttering.
find quote
Eric_S Offline
Member
Posts: 65
Joined: Feb 2011
Reputation: 0
Post: #64
The file I am benchmarking is a home video, H.264, m4v, 1.31 GB, and 17 minutes duration
find quote
dazex Offline
Donor
Posts: 544
Joined: Nov 2009
Reputation: 0
Smile  Here's my observation with video...
Post: #65
elcaballo Wrote:You're right. It's a D-Link DGS-2205 switch, had a five star rating on Newegg so I don't think that is the problem. The fileserver has been rock solid in every other way and all it is doing is serving files to the ATV2. Like I said, there is only 0-5% CPU utilization.

And what I'm saying is not that the ATV2 can't do HD at all. It streams my 2< GB HD TV files with no problems. I'm saying that with any high-bitrate HD file (typically a movie) larger than 4.5 GB, it buffers like crazy, which makes it useless for movies. I bought the ATV2 so that I didn't have to deal with PS3 Media Server but XBMC just can't keep up with larger files.

And all this is with 2/14/11 and a greenpoison JB.

Again, I'm sure the devs will get there eventually. I'll just have to check back in a few months once the program has been optimized.

elcaballo,
Just wanted to say that I understand you're having difficulties with "buffering" when playing large movie files greater than 2GB. As well as having issues playing high bitrate HD files.

For some of the newbies on the forum, file size and the bitrate at any given scene in the movie are different things and the terms shouldn't be used interchangeably.

I agree that it's early in the ATV2-XBMC port and the are bugs to be worked out. However, I just wanted to share my experience so you can help troubleshoot your issues should you want to continue tinkering with XBMC on the ATV2.

I just played and recorded a 1080p (vtb-h264) rips without ANY buffering whatsoever. I don't see the buffering message appear while watching these 1080p movies that can be properly decoded by the ATV's GPU. The file sizes are usually around 7GB-10GB so they are bigger than the 2GB limit you've witness.

Using the xbmc remote and pressing "o", you can see the bitrate go as high as 23Mbps without any buffering in the video below. I have seen the occasionally frame drops on some content. But for the most part, things play nicely for this stage of the port and again, no buffering that many have mentioned they run into.

/**VIDEO Removed **/

Good luck with figuring out your problem. Perhaps it will be resolved in a future build. I wonder if there are different revision of the ATV2's hardware out on the market. I purchased mine the day it was released so it's probably the first version of the ATV2 for all intent and purposes.
(This post was last modified: 2011-02-16 23:36 by dazex.)
find quote
Reverb Offline
Member
Posts: 59
Joined: Jan 2011
Reputation: 0
Post: #66
dazex Wrote:elcaballo,
J
http://www.youtube.com/watch?v=EVUHiVuMg9k

Good luck with figuring out your problem. Perhaps it will be resolved in a future build. I wonder if there are different revision of the ATV2's hardware out on the market. I purchased mine the day it was released so it's probably the first version of the ATV2 for all intent and purposes.

What protocol did you use? SMB or UPnP? You YouTube movie is btw blocked. Anywhere else where you can show it to us?

Hope that that add in a future release UPnP scraping support, that solve for a lot of people the buffering issues.
(This post was last modified: 2011-02-16 22:48 by Reverb.)
find quote
joshua.lyon Offline
Donor
Posts: 87
Joined: Dec 2009
Reputation: 1
Location: North Texas
Post: #67
elcaballo Wrote:And what I'm saying is not that the ATV2 can't do HD at all. It streams my 2< GB HD TV files with no problems. I'm saying that with any high-bitrate HD file (typically a movie) larger than 4.5 GB, it buffers like crazy, which makes it useless for movies. I bought the ATV2 so that I didn't have to deal with PS3 Media Server but XBMC just can't keep up with larger files.
I tested my ATV2 setup with a 16GB 1080p high bit-rate h.264 version of {a movie} over my wired network (on the 2/8/2011 XBMC release). I was amazed that the AppleTV played the video without any stuttering. When the video first started up there were a few frame-drops and I would see occasional frame-drops during high action scenes, but I didn't have any buffering issues.

The video was streamed from my Revo 1600 in the living room which has a 3TB hard drive hooked up with USB 2.0 and a gigabit network connection. The Revo 1600 is running Ubuntu 10.04 and is serving up the files via Samba (v 3.4.7). Like you hinted at, it's probably not a processor issue as file shares don't take a lot of resources, but for purposes of full disclosure the Revo only has a Atom 230 @ 1.60GHz.
PHP Code:
[3TB Seagate] --USB 2.0--> 
   [
Revo 1600 (Gigabit)] --3 feet of CAT6--> 
      [
8 port Switch (Gigabit)] --40 feet of CAT6--> 
         [
5 port Switch (Gigabit)] --30 feet of CAT6--> [AppleTV (10/100)] 
(This post was last modified: 2011-02-17 01:50 by joshua.lyon.)
find quote
dazex Offline
Donor
Posts: 544
Joined: Nov 2009
Reputation: 0
Post: #68
Reverb Wrote:What protocol did you use? SMB or UPnP? You YouTube movie is btw blocked. Anywhere else where you can show it to us?

Hope that that add in a future release UPnP scraping support, that solve for a lot of people the buffering issues.

Darn...that was fast. It was only a short clip mainly to show the OSD. Perhaps I can crop just to show the OSD with the framerate info?

Anyways, it was over SMB. Content shared via headless Windows box in the closet over 10/100 network. More pertinent info was in the Youtube link that is now block. :|
find quote
UnHumaN Offline
Junior Member
Posts: 1
Joined: Feb 2011
Reputation: 0
Post: #69
I would be happy if i had this problem only with HD files but i also have slowdowns every 10 seconds in SD tv show files which are about 350 MB of size for 40 minutes playtime. Due to the fact that my synology nas broke recently, i had to use my pc to share files for my new atv2. The pc is connected only by 100 Mbit lan and the atv2 is connected via wireless-n. I use upnp for that and tried tversity, twonky and xbmc for windows so far and with each of them i get short slowdowns in all my SD tv shows, HD playback i don't even wanna mention! When i use my ps3 instead of atv i have no problems at all with any of my media, SD and HD, so it is definitely not my network setup. Atv on the other hand is playing my itunes files just perfectly, both SD and HD. So i assume this must be a problem with xbmc itself Sad
Am i the only one with this kind of problem? Can it be that my pc is the problem and that steaming from a nas would be better for atv at least with SD files?
find quote
wedgehead Offline
Junior Member
Posts: 25
Joined: Jan 2011
Reputation: 0
Post: #70
Figured I would vent out what I have been seeing after some quick testing. Ran into some buffering on ATV2 with a 720p .M4V file of How To Train Your Dragon. File sits on a synology nas. ATV2 is wireless on a N network. Played around a little with the wireless setting on a Cisco E3000 router and was only able to make slight improvement. Note Router sits in basement and ATV2 is on second floor and pretty much at the ceiling too. So it is a good long haul.
Next I ran a wired connection (Gigabit) to the ATV2 and it played perfect. Also checked file on a ATV1 wired and played perfect on that as well. So looks like the wireless connection is a possible problem.
However I then decide to open a itunes home share on my office PC and stream the file from there. PC wired but wireless to ATV2. No problems no buffering. And the progress bar showed the entire 2.5GB file loaded in about 5-7 minutes into the movie. So the wireless network is actually fast enough.
So how can we figure out how to get XBMC to handle the network like itunes and more importantly how to get it to write or buffer a larger part of the movie? What protocol is itunes homeshare using?
I feel like XBMC is only taking small chunks at a time and if you get a small network slowdown you run into problems as the buffer is not large enough and/or it is allowed to run to close to empty before pulling more content. But maybe that is part of the equation, maybe itunes is actually pushing content to the ATV2 where we have XBMC trying to pull to the ATV2.
Daville we need for you to work some more magic! I don't know maybe see if we can get some more temporary storage allocated or something. Got to be something we can do. Maybe figuring out the itunes home share may yield some insight.
find quote
Reverb Offline
Member
Posts: 59
Joined: Jan 2011
Reputation: 0
Post: #71
Indeed the network speed is not often the issue. I have the weird thing that i have more buffers with wired Apple TV then Wireless N... How bizzare. And for some UPnP is the solution, but unfortunately it won't support scraping. Think there is definitely a problem with XBMC and network protocols/sharing, because iTunes to Apple Tv work without buffers with a same m4v. Hope the will find a solution for this issue.
find quote
GuyDanger Offline
Junior Member
Posts: 28
Joined: Nov 2010
Reputation: 3
Location: Ontario, Canada
Post: #72
Just to add to the conversation, I am having issues with buffering and stuttering on some of my media files. I was first connected through SMB share. After some reading I then tried connecting through FTP. The buffering wasn't as bad through FTP but it was still present. FTP didn't help with the stuttering at all. I am now looking at my files. My best guess is that XBMC is downsampling the audio. AC3 5.1 being downsampled to Stereo 2.0. This would cause stuttering as video and audio go out of sync. I am going to try and reRip some blurays with this in mind and see if anything changes. Hopefully someone will find out exactly whats going on and we can squash this bug for good.

P.S. I had the same stuttering issue with some files on my xbox running xbmc. I am using DVD Fab to create my rips.
find quote
Starstream Offline
Donor
Posts: 671
Joined: Apr 2009
Reputation: 16
Post: #73
XBMC can actually scrape a UPnP/DLNA server however the problem is the UPnP servers media file path which XBMC looks at to ID a file and can look something like this;

It varies on UPnP/DLNA servers, you may see other stuff
Code:
http://192.168.1.15:8896/resource/50/MEDIA_ITEM/AVC_MP4_MP_SD_AAC_MULTI5

When it needs to be this, specifically the name of the movie.mp4
Code:
http://192.168.1.15:8896/resource/50/MEDIA_ITEM/The_Fugitive.MP4

I haven't found any UPnP servers that do that so far but the closest are
* Synology NAS, their server outputs a 1367.mkv filename unfortunately this means XBMC ID's all the movies incorrectly (not possible to refresh either it seems and change the movie info).
* Mezzmo same as Synology has a partial file name in the media path but XBMC get all the identification wrong.

Perhaps XBMC's own UPnP server could be adjusted to display the file name ?

If anyone else feels like testing out more UPnP/DLNA servers the ones below also do not expose the file name so you can skip these.
Serviio
Wild Media Server
PlayOn
TVMOBiLi
Twonky

Update;
Just tested PS3 Media Server and it does expose the file names and scraping works with XBMC
* Add PMS media server as a source
* Browse to the folder holding your movies and just use set content on that and XBMC will scrape the folder.
* One last observation make sure all your movies are named appropriately to get the scan right first time as you cant use the refresh option, you have to manually rename the file so UPnP server scans it then run a re-scan by XBMC so it picks up the new file name & hopefully ID's it correctly this time.
(This post was last modified: 2011-02-18 01:04 by Starstream.)
find quote
Reverb Offline
Member
Posts: 59
Joined: Jan 2011
Reputation: 0
Post: #74
Starstream Wrote:Update;
Just tested PS3 Media Server and it does expose the file names and scraping works with XBMC
* Add PMS media server as a source
* Browse to the folder holding your movies and just use set content on that and XBMC will scrape the folder.
* One last observation make sure all your movies are named appropriately to get the scan right first time as you cant use the refresh option, you have to manually rename the file so UPnP server scans it then run a re-scan by XBMC so it picks up the new file name & hopefully ID's it correctly this time.

Nice to read and great you found that out. Think many users are happy to read this Smile. Going to download PS3mediaserver asap and give asap feedback or it worked here also.

EDIT:
* PS3server works...
* Uhmzz when i try to scrape on my iPad(only one movie), XBMC crashes and go back the the iOS homescreen.
* Test it on XBMC on my MAC. Won't scrape and stop.
(This post was last modified: 2011-02-17 23:58 by Reverb.)
find quote
megah Offline
Junior Member
Posts: 1
Joined: Feb 2011
Reputation: 0
Post: #75
I have having bad buffering issues From my ATV2 using SMB to my PC with an NVidia ION chipset.

Last night I upgraded to the latest nForce drivers (new ethenret driver) and I also disabled VLAN / Priority in the advanced NIC settings and enabled Flow Control on TX/RX.

MKV videos now start playing instantly with NO buffering EVER. I can fard forward though a massive MKV without any pauses. MP3 albums play perfect and do not pause from track to track anymore either.
find quote
Post Reply