Kodi Community Forum
ATV2 and XBMC bufferring - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: iOS & tvOS (https://forum.kodi.tv/forumdisplay.php?fid=137)
+---- Thread: ATV2 and XBMC bufferring (/showthread.php?tid=93514)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20


- g-off - 2011-10-17

Looks like you really managed to trim the noise from that log file. It seems to be invisible Big Grin


xanadum Wrote:Hi,

I hadn't used my atv2 for a while as I got a new TV recently which can play 1080p/DTS MKV from USB, however I decided to see how xbmc was getting on.

I was previously using I think (June) stable release and had for me this version worked really well, all very smooth no problems.
I updated to the current stable build and have had nothing but buffering problems and a large percentage of my movies no longer play at all.

Ideally I would like to revert to a historical stable build just to see however I could not find it so installed a nightly build (15 Oct 2011). It is slightly better however not watchable.

All movies are streamed from my QNAP using smb on a 100Mb wired LAN.

Could be a issue with connection although other devices on network have no issues however firmware of QNAP has been updated since xbmc last used so is a possibility, would like to rule it out regardless.

I have noticed in the xbmc.log quite a few 'unix' errors relating to permissions denied while the movies plugin is running however other devices can access fine while using a guest account. I have disabled this plugin to cut out log noise for now.


Yes he does know what he is talking about when it comes to what XBMC can and can't do.
Juan_Garcia Wrote:I don´t understand why I can to play 1080p (12 GB) from TimeCapsule withouth bufferring and a divx 720 file (500 MB) it´s bufferring constantly. This can´t be a SMB o network unique problem....



are you really sure ATV2 can´t decode mpeg4 with hardware decoder? I tested to encode a movie in MPEG4 with Handbrake and mp4 container, I could run with hardware acceleration in iPhone 4 (AVPlayer).



- xanadum - 2011-10-17

g-off Wrote:Looks like you really managed to trim the noise from that log file. It seems to be invisible Big Grin

I will be sure to post a log once I've ruled out any possible issues on my own end first Smile I helped a friend install XBMC on a vanilla ATV2 box yesterday with the current stable release and had the same issues so could well be on this end.


- kitus_san - 2011-10-17

Ned Scott Wrote:You need to upgrade to the latest nightlies: http://wiki.xbmc.org/index.php?title=HOW-TO:Install_XBMC_on_Apple_TV_2#Installing_the_latest_nightly_build
Hi there,

I was advised to upgrade my version in a different thread. I must admit that by upgrading I've gained a lot of stability. Thanks for that!!! Smile

I've pasted my log file here: http://pastebin.com/pyFw7tcW

here is the media info dump again for the film I was trying to play while capturing that log file.

Code:
General
ID                                       : 0 (0x0)
Complete name                            : 00002.m2ts
Format                                   : BDAV
Format/Info                              : Blu-ray Video
File size                                : 27.7 GiB
Duration                                 : 1h 48mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 36.4 Mbps
Maximum Overall bit rate                 : 48.0 Mbps

Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : 27
Duration                                 : 1h 48mn
Bit rate mode                            : Variable
Bit rate                                 : 29.8 Mbps
Maximum bit rate                         : 35.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.599
Stream size                              : 22.6 GiB (82%)
Color primaries                          : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics                 : BT.709-5, BT.1361
Matrix coefficients                      : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio #1
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Muxing mode                              : Stream extension
Codec ID                                 : 134
Duration                                 : 1h 48mn
Bit rate mode                            : Variable
Bit rate                                 : 2 017 Kbps / 1 510 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossless / Lossy

Audio #2
ID                                       : 4353 (0x1101)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Muxing mode                              : Stream extension
Codec ID                                 : 134
Duration                                 : 1h 48mn
Bit rate mode                            : Variable
Bit rate                                 : 1 561 Kbps / 1 510 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossless / Lossy

Audio #3
ID                                       : 4354 (0x1102)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Muxing mode                              : Stream extension
Codec ID                                 : 134
Duration                                 : 1h 48mn
Bit rate mode                            : Variable
Bit rate                                 : 1 558 Kbps / 1 510 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossless / Lossy

It is rather weird: I don't see the CPU collapsing around 99% of load. It stays around 65% but framerate is certainly around 15fps and I don't know why. My NAS is not the bottleneck and neither is my network (my NAS delivers 4MBps when playing this film).

Is this the most I can expect from my AppleTV? if so, I will get rid of all my Full Bluray films (AppleTV can't itself do more than 720p actually) and settle for h264 mkvs.

Thanks a million,

Marc


- Ned Scott - 2011-10-18

mpeg 4 can refer to a lot of codecs. Xvid is based on mpeg4, but is different enough from other mpeg4 based codecs that it won't work with ios hardware decoding APIs.


- g-off - 2011-10-18

The atv should be able to play bluray mts files - if you can get the data to it quickly enough.

Are you running this wired or wireless? The bitrate (36-48mb/s) is pretty steep.

You are using upnp to serve the file which should be fast but it might be worth testing ftp or smb to see if the NAS works better with those when talking to XBMC.


- kitus_san - 2011-10-18

g-off Wrote:The atv should be able to play bluray mts files - if you can get the data to it quickly enough.

Are you running this wired or wireless? The bitrate (36-48mb/s) is pretty steep.

You are using upnp to serve the file which should be fast but it might be worth testing ftp or smb to see if the NAS works better with those when talking to XBMC.

I'm on a gigabit wired network, my NAS has also a gigabit interface, therefore I don't expect the NAS to be the bottleneck (while running the tests I can tell you that the CPU didn't seem to be overwhelmed, it is a qnap ts-239 pro).

Unfortunatelly I don't have a an extremely powerful computer around with a wired network interface to run test with (just a MacBook air). I tested Samba and got similar poor results.. Sad


- Memphiz - 2011-10-18

I think this couldn't be handled by the atv2. And i'm still

Code:
Bit rate                                 : 29.8 Mbps

Also it has HD Audio streams. Don't know if this bitrate (which is high also for audio) will jump into place when only using 5.1 though.

As of the xbmc.log the VTB decoder eats the file. So it is h.264. But this high bitrate and the 4 RefFrames on 1080p just might be to much. (davilla could say for sure i bet...)


- xanadum - 2011-10-18

xanadum Wrote:I will be sure to post a log once I've ruled out any possible issues on my own end first Smile I helped a friend install XBMC on a vanilla ATV2 box yesterday with the current stable release and had the same issues so could well be on this end.

Had a panic yesterday as wife had left box on and it had updated to 4.4 (hadn't got round to modifying hosts), anyway did a restore of the box to 4.3 and a fresh xbmc install and put on a nightly build (xbmc-20111015-56d8d46-master-atv2)

Turned out the main issue was samba permissions from files I had moved, so after resetting these it sorted out the avalanche of log activity trying to create the video thumbnails and streaming of 720p content was fine.

Nice surprise was the default movie scraper is nice and fast with greater accuracy (100% for me)


- kitus_san - 2011-10-19

Memphiz Wrote:(davilla could say for sure i bet...)
Hi there,
Looking forward to his take on this then.

Thanks


- psimondo - 2011-10-19

I am running nightly xbmc-20111015-56d8d46-master-atv2.

Everything is pretty great, except for MKV playback. I only have 720p MKV files in my library (no 1080p). Some MKVs play absolutely perfectly. But others, (even 420p SD) stutter like crazy. I don't think it's the bitrate of the files as some high bitrate files play fine while some SD, low bitrate files don't.

MKV handling just seems flaky.

If any devs would like logs I can post some or links to files that have issues?


- papampi - 2011-10-19

What r yr audio setup?


- g-off - 2011-10-20

psimondo Wrote:I am running nightly xbmc-20111015-56d8d46-master-atv2.

Everything is pretty great, except for MKV playback. I only have 720p MKV files in my library (no 1080p). Some MKVs play absolutely perfectly. But others, (even 420p SD) stutter like crazy. I don't think it's the bitrate of the files as some high bitrate files play fine while some SD, low bitrate files don't.

MKV handling just seems flaky.

If any devs would like logs I can post some or links to files that have issues?

There is nothing flaky with mkv support - just with the content in them.
If you want to play hd files, make sure they are encoded in h264/AVC/MPEG4 part 10.
Post logfiles or mediainfo for the files you have problems with.


- Nasp - 2011-10-20

uomiarz Wrote:According to information here:
http://blog.firecore.com/4144

there is no difference in seas0npass and greenpois0n.
I believe this is the website for actual seas0npass developers.
So it is kind of strange that it worked for you but definitely worth trying.


What seems to fix my buffering issues with ATV2 was setting up samba server correctly. It was mention by RaginBajin few post above where he talks about setting opportunistic locks. I added two lines to my samba config file
Code:
kernel oplocks = No
oplocks = No
and did not see usual buffering since.
I definitely need to do more testing.



Works for me too! Smile

On my unRaid Server, i edited the smb-extra-conf with this two options, and works great now!!!


- kitus_san - 2011-10-23

kitus_san Wrote:Hi there,
Looking forward to his take on this then.

Thanks
Hello there,

davilla, can you possibly give some more details?

The log file I uploaded is still valid because I haven't modified a thing and playback is still choppy http://pastebin.com/pyFw7tcW

I'm adding the mediainfo output of the other movie that I have with same format:

Code:
General
ID                                       : 0 (0x0)
Complete name                            : 00002.m2ts
Format                                   : BDAV
Format/Info                              : Blu-ray Video
File size                                : 27.7 GiB
Duration                                 : 1h 48mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 36.4 Mbps
Maximum Overall bit rate                 : 48.0 Mbps

Video
ID                                       : 4113 (0x1011)
Menu ID                                  : 1 (0x1)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : 27
Duration                                 : 1h 48mn
Bit rate mode                            : Variable
Bit rate                                 : 29.8 Mbps
Maximum bit rate                         : 35.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.599
Stream size                              : 22.6 GiB (82%)
Color primaries                          : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics                 : BT.709-5, BT.1361
Matrix coefficients                      : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio #1
ID                                       : 4352 (0x1100)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Muxing mode                              : Stream extension
Codec ID                                 : 134
Duration                                 : 1h 48mn
Bit rate mode                            : Variable
Bit rate                                 : 2 017 Kbps / 1 510 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossless / Lossy

Audio #2
ID                                       : 4353 (0x1101)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Muxing mode                              : Stream extension
Codec ID                                 : 134
Duration                                 : 1h 48mn
Bit rate mode                            : Variable
Bit rate                                 : 1 561 Kbps / 1 510 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossless / Lossy

Audio #3
ID                                       : 4354 (0x1102)
Menu ID                                  : 1 (0x1)
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Format profile                           : MA / Core
Muxing mode                              : Stream extension
Codec ID                                 : 134
Duration                                 : 1h 48mn
Bit rate mode                            : Variable
Bit rate                                 : 1 558 Kbps / 1 510 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossless / Lossy

both files present playback problems.

Regards


- davilla - 2011-10-23

@kitus_san, cut me a 50-100MB sample and dropbox it.