Kodi Community Forum
[AppleTV] Broadcom Crystal HD stuttering playback on Apple TV? - 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: Mac OS X (https://forum.kodi.tv/forumdisplay.php?fid=56)
+---- Thread: [AppleTV] Broadcom Crystal HD stuttering playback on Apple TV? (/showthread.php?tid=67526)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13


- dan1son - 2010-12-06

Only file I'm currently having problems with on Linux RC2/r174 (old layout 0012 card) is the one VC-1 blu-ray I have, "Baraka". It's a masterpiece of a film, and it just won't play right. It does this funky blocky frame bounce kind of thing right now. It's never quite been right, but it's gotten worse since Beta2.

Davilla, should this run?
Code:
mediainfo Baraka\ \(1992\).m2ts
General
ID                               : 0
Complete name                    : Baraka (1992).m2ts
Format                           : BDAV
Format/Info                      : Blu-ray Video
File size                        : 26.4 GiB
Duration                         : 1h 37mn
Overall bit rate                 : 38.6 Mbps
Maximum Overall bit rate         : 48.0 Mbps

Video
ID                               : 4113 (0x1011)
Menu ID                          : 1 (0x1)
Format                           : VC-1
Format profile                   : AP@L3
Duration                         : 1h 37mn
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Colorimetry                      : 4:2:0
Scan type                        : Progressive

Audio #1
ID                               : 4352 (0x1100)
Menu ID                          : 1 (0x1)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 1h 37mn
Bit rate mode                    : Constant
Bit rate                         : 640 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Stream size                      : 448 MiB (2%)

Audio #2
ID                               : 4353 (0x1101)
Menu ID                          : 1 (0x1)
Format                           : DTS
Format/Info                      : Digital Theater Systems
Format profile                   : MA
Duration                         : 1h 37mn
Bit rate mode                    : Variable
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 96.0 KHz
Resolution                       : 24 bits

pastebin of xbmc.log (it totally crashed the box at the end there... just froze up with no CPU usage of XBMC (even though it was still running). http://pastebin.com/FtH4PY0y


Bug or set-up problem - _saint_ - 2010-12-06

I've just finished setting up my Apple TV, Linux and CrystalHD.

My set-up:

- CrystalBuntu using Pin78's image;
- Upgraded to Dharma RC2;
- BCM970015 - 161 driver (tried 174);
- Linux running from internal ATV drive.
- Audio to Yamaha YSP-1000 using SPDIF (no HDMI audio).

Firstly I have to say I'm very impressed with the platform to date - the devs here have done a great job. I really enjoyed hacking around with Linux to get it all working.

My problem is audio related. Some MKV files (in particular the ones with Dolby Digital audio) work just fine - they occasionally drop frames however they're just fine.

Other files really struggle (seems to be DTS). They take 20+ seconds to start playing, and when they do the sound stops and starts and the video judders and speeds up. It mostly settles down after a a couple of moments however it's a bit ugly! At the same time my AMP flashes between DTS to Dobly Pro Logic II a few times until it settles on DTS.

My theory is that the sound system isn't quite working right and the video system is trying to keep in sync which is why the video is all over the place.

My log file is here:

http://pastebin.com/BLUvTwqX

Any ideas?

Regards

Saint


- Microsaft - 2010-12-09

Dunno if this topic is just for linux users.
As I do not know how to set that up, I am using OS X at the moment. Will read me into that Linux stuff.

Installed the Broadcom module today.
1080p movies stutter in generell.
Nearly all of my 720p movies work great but some don't.
Does any body know the limitations?

Ripped Avatar from my BD to give it a try. Its now 4963Kbps 23.976 fps with 640Kbps audio in 1280x720. Stuttering from time to time.


- davilla - 2010-12-10

Microsaft Wrote:Dunno if this topic is just for linux users.
As I do not know how to set that up, I am using OS X at the moment. Will read me into that Linux stuff.

Installed the Broadcom module today.
1080p movies stutter in generell.
Nearly all of my 720p movies work great but some don't.
Does any body know the limitations?

Ripped Avatar from my BD to give it a try. Its now 4963Kbps 23.976 fps with 640Kbps audio in 1280x720. Stuttering from time to time.

Not near enough into to even being Smile version, versions and logs for everything.


- Microsaft - 2010-12-10

Oh sorry.
Apple TV OS 3.0.2
Launcher 3.2.5
XBMC svn35567
(installed via atvflash 4.2.1)

Never posted log-files. Hope this will do.
xbmc.log:
http://pastebin.ubuntu.com/541657/

console.log:
http://pastebin.ubuntu.com/541659/

crashreporter.log:
http://pastebin.ubuntu.com/541660/





I already posted it into another topic: I had some black screens when starting xbmc. System seems to work as i can start movies via iphone app.
After re-downloading and installing the svn, xbmc runs again. But now its messed up i guess. sometimes when starting xbmc there is no crystalhd-module option in the settings. Now not even 720p files run smooth. Seems like it does not use the module. (videos are stuttering as they did before getting the module.)


- _saint_ - 2010-12-10

Davilla,

Any thoughts about the problem below?

Many thanks, Saint

_saint_ Wrote:I've just finished setting up my Apple TV, Linux and CrystalHD.

My set-up:

- CrystalBuntu using Pin78's image;
- Upgraded to Dharma RC2;
- BCM970015 - 161 driver (tried 174);
- Linux running from internal ATV drive.
- Audio to Yamaha YSP-1000 using SPDIF (no HDMI audio).

Firstly I have to say I'm very impressed with the platform to date - the devs here have done a great job. I really enjoyed hacking around with Linux to get it all working.

My problem is audio related. Some MKV files (in particular the ones with Dolby Digital audio) work just fine - they occasionally drop frames however they're just fine.

Other files really struggle (seems to be DTS). They take 20+ seconds to start playing, and when they do the sound stops and starts and the video judders and speeds up. It mostly settles down after a a couple of moments however it's a bit ugly! At the same time my AMP flashes between DTS to Dobly Pro Logic II a few times until it settles on DTS.

My theory is that the sound system isn't quite working right and the video system is trying to keep in sync which is why the video is all over the place.

My log file is here:

http://pastebin.com/BLUvTwqX

Any ideas?

Regards

Saint



- davilla - 2010-12-10

Saint, hard to say. I would need to see xbmc.log with debug turned on to see what audio side is doing.


- matbor - 2010-12-11

Having trouble with this m2ts 1080p file, (APTV, RC2, Crystal v174) all other 720 and below formats play fine.

xbmc log - http://pastebin.com/c3k0hymP

media info - http://pastebin.com/uiPvAvGR


This one, a MKV in 1080p works fine, but still takes 30 seconds before audio/video sync.

xbmc log - http://pastebin.com/muPzeW8Z

media info - http://pastebin.com/Fvq5jtyk

thx

Sorry if i double posted.


- _saint_ - 2010-12-12

davilla Wrote:Saint, hard to say. I would need to see xbmc.log with debug turned on to see what audio side is doing.

Davilla - see here

http://pastebin.com/0YF6kewC

Mediainfo:

http://pastebin.com/vtVajDdK

Thanks for your help with this.

Here's some other feedback on RC2 and Linux / CrystalHD for you and the other devs:

- Playing a video for me takes a good 20 to 30 seconds before the sound and video sync;
- This is worse if the screen refresh rate needs to change - quite often the music starts before the refresh rate has occurred causing further problems;
- I've not been a software developer for many years (last time I coded ARM assembly on the Archimedes platform Smile however I'd say more work is needed making sure every aspect of the system is in sync before the audit and video starts. i.e. change refresh rate, buffer audio, buffer video, etc first before actually displaying it on screen.
- Every other aspect is light years ahead of every other entertainment system I've owned - this includes KISS, Zentronic / Ziova and TVIX players - well done!

Regards

_Saint_


- _saint_ - 2010-12-14

*bump* Smile

_saint_ Wrote:Davilla - see here

http://pastebin.com/0YF6kewC

Mediainfo:

http://pastebin.com/vtVajDdK

Thanks for your help with this.

Here's some other feedback on RC2 and Linux / CrystalHD for you and the other devs:

- Playing a video for me takes a good 20 to 30 seconds before the sound and video sync;
- This is worse if the screen refresh rate needs to change - quite often the music starts before the refresh rate has occurred causing further problems;
- I've not been a software developer for many years (last time I coded ARM assembly on the Archimedes platform Smile however I'd say more work is needed making sure every aspect of the system is in sync before the audit and video starts. i.e. change refresh rate, buffer audio, buffer video, etc first before actually displaying it on screen.
- Every other aspect is light years ahead of every other entertainment system I've owned - this includes KISS, Zentronic / Ziova and TVIX players - well done!

Regards

_Saint_



- davilla - 2010-12-14

_saint_ Wrote:*bump* Smile

Please don't bump less you get ignored Smile

NVIDIA 195.36.15, not running the recommended nvidia driver for hardy ?

Check you have composite disabled in xorg.conf.

pulseaudio is nuked ?

and you do have swap enabled ?


- _saint_ - 2010-12-15

davilla Wrote:Please don't bump less you get ignored Smile

NVIDIA 195.36.15, not running the recommended nvidia driver for hardy ?

Check you have composite disabled in xorg.conf.

pulseaudio is nuked ?

and you do have swap enabled ?

Pulseaudio isn't installed in the image.

Swap appears to be enabled (is that right)?

Composite is disabled in xorg.conf

Following a complete reinstall I'm now running nvidia driver 260.19.21 and Alsa 1.0.23-2 and the situation is worse Smile - if these aren't the best driver versions which are please?


- Jimmer - 2010-12-15

_saint_ Wrote:Pulseaudio isn't installed in the image.

Swap appears to be enabled (is that right)?

Composite is disabled in xorg.conf

Following a complete reinstall I'm now running nvidia driver 260.19.21 and Alsa 1.0.23-2 and the situation is worse Smile - if these aren't the best driver versions which are please?

NVIDIA 100.14.19 is recommended on the wiki. This is what comes with the image in the first place, if memory serves? Latest of everything is not the best way to go with this platform. You have to stick to what's tried and true and known to work:

Anyway, to roll back, you have to stop the x-server, then I think you'll have to do this step from the wiki (back up your xorg.conf first, just in case this nukes it):

Code:
sudo apt-get remove --purge nvidia*
wget http://us.download.nvidia.com/XFree86/Linux-x86/100.14.19/NVIDIA-Linux-x86-100.14.19-pkg1.run
sudo sh NVIDIA-Linux-x86-100.14.19-pkg1.run
sudo nvidia-xconfig  --no-composite --no-logo

That should get you back to the recommended nvidia version. You'll probably want to copy back you xorg.conf from whereever you backed it up to (that is if you are confident that it's correct in the first place?). Then a reboot would probably be in order.

Finally, you want to turn off all audio/video sync and adjust refresh rate settings in xbmc video settings, turn off all post processing settings, use Auto Detect for render method, make sure VDPAU is disabled and crystalhd is enabled.

And, if you've just updated xbmc, then re-install crystalhd as well.

The above settings should get you good playback of 720p and 1080p with RC2.

Jim

PS

sudo swapon -a

will activate your swap. Check by typing:

free -m

you should see something like:

Code:
total       used       free     shared    buffers     cached
Mem:           242        218         24          0         17         51
-/+ buffers/cache:        148         94
Swap:          961         49        911

the numbers are unimportant, just that the swap total is the same as the size of your swap partition


- kkillebrew - 2010-12-15

Excellent post Jimmer. I think you hit all the points for stutter-free playback.

I must add though that under my circumstances, and likely many others, the recommended nvidia driver causes as many problems as it solves since it cannot perform a proper EDID handshake with many HD TVs.

I have three flat panels - a new Sony Bravia HX800, an LG three years old, and a Toshiba two years old, all 1080/24p capable, but the nvidia driver mid-reads the EDID on the Sony and the LG and allows only 1080p/60 and 720p respectively. No way to correct it with xorg.conf options or modelines that I could find and I put a lot of time into it. Using the latest nvidia driver corrected the EDID read problem. I am also now getting reliable 60 to 24hz and back auto switching.

True, no sound with HDMI but the implementation was very quirky anyway and often resulted in a loud buzzing, so I go optical. Seems to run best in 24p with audio sync disabled and a global .200 second delay.

So for me the perfect combo is Pin's image upgraded to XBMC RC2 and crystalhd 174, and the latest nvidia driver.


- _saint_ - 2010-12-16

Jimmer Wrote:[snip]The above settings should get you good playback of 720p and 1080p with RC2.

Jim

PS

sudo swapon -a

will activate your swap. Check by typing:

free -m

you should see something like:

Code:
total       used       free     shared    buffers     cached
Mem:           242        218         24          0         17         51
-/+ buffers/cache:        148         94
Swap:          961         49        911

the numbers are unimportant, just that the swap total is the same as the size of your swap partition

Excellent post - many thanks.

I regressed the display driver and it's better but not perfect. Swap is working fine.

Some files still stutter at the start - with the my AMP switching between DTS and DPLII until the whole thing settles down. With this driver it settles down in in less than 10 seconds rather than 40 seconds previously.

One thing I've noticed with this driver is that I only have the option of running 1080p@24Hhz - no other modes. My Plasma will support 1080i@50 and 60Hz however these aren't listed.

Previously (when I had the problems) the UI ran at 1080i - 50Hz and and switched into 1080p@24 when required by the film. Was this a factor?

I presume I need to set-up some custom modelines in my xorg.conf to resolve get the 50 and 60Hz modes back?

My xorg log file says:

(--) NVIDIA(0): Connected display device(s) on GeForce Go 7300 at PCI:1:0:0:
(--) NVIDIA(0): PIO PDP-R06 (DFP-0)
(--) NVIDIA(0): PIO PDP-R06 (DFP-0): 165.0 MHz maximum pixel clock
(--) NVIDIA(0): PIO PDP-R06 (DFP-0): Internal Single Link TMDS
(II) NVIDIA(0): Assigned Display Device: DFP-0
(WW) NVIDIA(0):
(WW) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(WW) NVIDIA(0): will be used as the requested mode.
(WW) NVIDIA(0):
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0): "nvidia-auto-select"
(II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
(--) NVIDIA(0): DPI set to (50, 50); computed from "UseEdidDpi" X config
(--) NVIDIA(0): option
(==) NVIDIA(0): Disabling 32-bit ARGB GLX visuals.

Regards

_Saint_