• 1
  • 2
  • 3(current)
  • 4
  • 5
  • 15
Problem getting Broadcom Crystal HD BMC70015 to work with XBMC
#31
Hi,

Lots of dropped frames with the Sony HD camera captures.

debug log:
http://pastebin.com/kR6Dx2eD

MediaInfo:
Code:
General
ID                               : 0
Complete name                    : 20100606134939.m2ts
Format                           : BDAV
Format/Info                      : Blu-ray Video
File size                        : 101 MiB
Duration                         : 49s 957ms
Overall bit rate                 : 17.0 Mbps
Maximum Overall bit rate         : 18.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        : 2 frames
Format settings, GOP             : M=1, N=26
Duration                         : 49s 320ms
Bit rate mode                    : Variable
Bit rate                         : 16.1 Mbps
Maximum bit rate                 : 16.0 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 25.000 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Interlaced
Scan order                       : Top Field First
Bits/(Pixel*Frame)               : 0.310
Stream size                      : 94.4 MiB (93%)

Audio
ID                               : 4352 (0x1100)
Menu ID                          : 1 (0x1)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Duration                         : 49s 376ms
Bit rate mode                    : Constant
Bit rate                         : 256 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Video delay                      : -80ms
Stream size                      : 1.51 MiB (1%)

Text
ID                               : 4608 (0x1200)
Menu ID                          : 1 (0x1)
Format                           : PGS
Duration                         : 48s 815ms
Video delay                      : -80ms


System is MacMini 2,1 Windows 7, CrystalHD BCM70012.
CHD drivers 3.5.0.0 from Broadcom site.
Reply
#32
I've mentioned this in another thread, but this is probably the appropriate place to post it. I've got exactly the same issues as icedtrip (post #4 in this thread). Now, I've tried a direct BD-rip of District 9, and it shows these artefacts. I've snipped out a 1-minute segment of the movie (using mkvmerge, not recoding) and it's doing exactly the same thing. The mediainfo is below. Is it worth uploading this 1-minute clip somewhere? Would it be helpful for the developers? (It's ~160MB, but I'm having the same trouble with a few HD rips.)

Cheers!

Code:
[root@shelob District 9 test]# mediainfo D9-1-minute.mkv
General
Complete name                    : D9-1-minute.mkv
Format                           : Matroska
File size                        : 160 MiB
Duration                         : 59s 984ms
Overall bit rate                 : 22.4 Mbps
Encoded date                     : UTC 2010-08-10 18:59:31
Writing application              : mkvmerge v4.2.0 ('No Talking') built on Jul 28 2010 18:38:23
Writing library                  : libebml v1.0.0 + libmatroska v1.0.0

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 2 frames
Muxing mode                      : Container [email protected]
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 59s 977ms
Bit rate                         : 20.0 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.402
Stream size                      : 143 MiB (89%)

Audio #1
ID                               : 2
Format                           : DTS
Format/Info                      : Digital Theater Systems
Codec ID                         : A_DTS
Duration                         : 59s 984ms
Bit rate mode                    : Constant
Bit rate                         : 1 510 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Bit depth                        : 24 bits
Video delay                      : 5ms
Stream size                      : 10.8 MiB (7%)
Title                            : 3/2+1

Audio #2
ID                               : 3
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : A_AC3
Duration                         : 59s 984ms
Bit rate mode                    : Constant
Bit rate                         : 448 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Video delay                      : 16ms
Stream size                      : 3.20 MiB (2%)
Title                            : 3/2+1

Text #1
ID                               : 4
Format                           : PGS
Codec ID                         : S_HDMV/PGS
Codec ID/Info                    : The same subtitle format used on BDs/HD-DVDs

Text #2
ID                               : 5
Format                           : PGS
Codec ID                         : S_HDMV/PGS
Codec ID/Info                    : The same subtitle format used on BDs/HD-DVDs

Menu
00:00:00.000                     : en:Chapter 04
Reply
#33
Yep, shoulda posted this in the first place... Sorry...

xbmc.log

Changed from 'Auto' to 'ARB'... resintalled newest libcrystal from googlecode same behaviour...
Reply
#34
I can't get the crystalhd working on Linux (Ubuntu 10.04.1 LTS, 2.6.32-24-generic x86_64). All videos I tried have the same problem: they play for a couple of seconds with the upper zone of the image showing a very nasty flickering, then only the audio is played and after another couple of seconds, XBMC hangs and I have to kill it.

XBMC debug log

lspci:

Code:
03:00.0 Multimedia controller: Broadcom Corporation BCM70012 Video Decoder [Crystal HD] (rev 01)


dmesg | grep -i crystalhd: (before xbmc)

Code:
[   33.682979] Loading crystalhd v3.5.0
[   33.683084] crystalhd 0000:03:00.0: Starting Device:0x1612
[   33.683678] crystalhd 0000:03:00.0: PCI INT A -> Link[APC5] -> GSI 16 (level, low) -> IRQ 16
[   33.683682] crystalhd 0000:03:00.0: bar0:0xfcff0000-0x00010000  bar2:0xfc800000-0x00400000
[   33.683770] crystalhd 0000:03:00.0: i2o_addr:0xffffc90004c80000   Mapped addr:0xffffc90004d00000  
[   33.684097] crystalhd 0000:03:00.0: irq 32 for MSI/MSI-X
[   34.220034] crystalhd 0000:03:00.0: setting latency timer to 64


dmesg | grep -i crystalhd: (after killing xbmc)

Code:
[   33.682979] Loading crystalhd v3.5.0
[   33.683084] crystalhd 0000:03:00.0: Starting Device:0x1612
[   33.683678] crystalhd 0000:03:00.0: PCI INT A -> Link[APC5] -> GSI 16 (level, low) -> IRQ 16
[   33.683682] crystalhd 0000:03:00.0: bar0:0xfcff0000-0x00010000  bar2:0xfc800000-0x00400000
[   33.683770] crystalhd 0000:03:00.0: i2o_addr:0xffffc90004c80000   Mapped addr:0xffffc90004d00000  
[   33.684097] crystalhd 0000:03:00.0: irq 32 for MSI/MSI-X
[   34.220034] crystalhd 0000:03:00.0: setting latency timer to 64
[   84.126942] crystalhd 0000:03:00.0: Entering chd_dec_open
[   84.126946] crystalhd 0000:03:00.0: Opening new user[0] handle
[   86.150015] crystalhd 0000:03:00.0: Firmware Downloaded Successfully
[  103.368773] crystalhd 0000:03:00.0: [FMT CH] PIB:0 0 420 2 780 330 780 0 0 0
[  103.507222] crystalhd 0000:03:00.0: MISSING 3 PICTURES
[  358.685213] IP: [<ffffffffa0143c7a>] crystalhd_link_peek_next_decoded_frame+0x11a/0x140 [crystalhd]
[  358.685268] Modules linked in: snd_hda_codec_realtek ir_sony_decoder snd_hda_intel ir_jvc_decoder snd_hda_codec snd_hwdep ir_rc6_decoder snd_pcm_oss snd_mixer_oss snd_pcm ir_rc5_decoder mantis mantis_core ir_nec_decoder ir_common snd_seq_dummy snd_seq_oss binfmt_misc ir_core snd_seq_midi nvidia(P) snd_rawmidi snd_seq_midi_event snd_seq ppdev tda665x lnbp21 mb86a16 stb6100 tda10021 snd_timer snd_seq_device fbcon tileblit font bitblit softcursor vga16fb vgastate mxl5005s tda10023 zl10353 stb0899 ec100 stv0299 psmouse serio_raw xpad edac_core crystalhd snd soundcore snd_page_alloc i2c_nforce2 led_class edac_mce_amd ff_memless k8temp dvb_usb_ec168 joydev dvb_usb dvb_core lp parport usbhid hid usb_storage floppy pata_amd ahci forcedeth
[  358.685369] RIP: 0010:[<ffffffffa0143c7a>]  [<ffffffffa0143c7a>] crystalhd_link_peek_next_decoded_frame+0x11a/0x140 [crystalhd]
[  358.685490]  [<ffffffffa013e246>] bc_cproc_get_stats+0x196/0x200 [crystalhd]
[  358.685504]  [<ffffffffa013e0b0>] ? bc_cproc_get_stats+0x0/0x200 [crystalhd]
[  358.685517]  [<ffffffffa013bcca>] chd_dec_ioctl+0xea/0x200 [crystalhd]
[  358.685629] RIP  [<ffffffffa0143c7a>] crystalhd_link_peek_next_decoded_frame+0x11a/0x140 [crystalhd]

I'm using the latest drivers from the git and also tried 3.1.0 and 3.2.0 drivers with no luck (the card is working properly under Windows XP)
Reply
#35
davilla Wrote:Looks like a 64-bit issue with the driver. Will check into it.

I just installed a Ubuntu 32bit version and had the exact same problem. Anyway, I wanted to test if this sample dropped frames with linux like it does with Windows so, could you check it?

Code:
General
ID                               : 6
Complete name                    : H:\Videos\DivX\test.ts
Format                           : MPEG-TS
File size                        : 70.5 MiB
Duration                         : 30s 488ms
Overall bit rate                 : 19.4 Mbps

Video
ID                               : 767 (0x2FF)
Menu ID                          : 129 (0x81)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Duration                         : 31s 0ms
Bit rate                         : 17.7 Mbps
Width                            : 1 920 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate                       : 25.000 fps
Standard                         : Component
Resolution                       : 8 bits
Colorimetry                      : 4:2:0
Scan type                        : Interlaced
Scan order                       : Top Field First
Bits/(Pixel*Frame)               : 0.341
Stream size                      : 65.2 MiB (93%)
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
ID                               : 772 (0x304)
Menu ID                          : 129 (0x81)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 30s 240ms
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 48.0 KHz
Video delay                      : -337ms
Stream size                      : 1.38 MiB (2%)
Language                         : English
Language, more info              : Clean effects

Text
ID                               : 32 (0x20)
Menu ID                          : 129 (0x81)
Format                           : Teletext
Language                         : German

Debug log
Reply
#36
I'm not sure if this is a CHD issue or XBMC issue, as I've just updated to the latest nightly build (xbmc-r33035-Dharma-x86.dmg ) and I'm using CHD driver 2.0 - crystalhd-for-osx-test1.zip.

Basically I'm unable to watch anything. When i try to open a video sometimes i get audio for a few seconds (which is what happened in the log file I've included with this report) and sometimes it just freezes. Either wait I have to force quite XBMC. This happens with all the files I've tried since installing the latest driver and the latest nightly build.

Hopefully you guys wil be able to assist me by pointing out something simple i did wrong Smile

XBMC Log

MediaInfo
Reply
#37
Hi all,

I'm newbie to XBMC so bear with my ignorance I'm trying to get Broadcom BCM970015 working for playing back H.264 encoded HD video files on my netbook (M912M). So far I got no luck even with latest SVN r32894. I have searched throughout the forum for hours and couldn't find similar report or solution. So please see below for detailed description and guide me in how to this issue. Much appreciated.

Tommy


1. "Latest" is NOT a revision, of ANYTHING! (See below)

I got it

2. Windows Version + patch level

Windows 7 with all important updates

3. CPU/Architecture (make/model and eg. 32 or 64 bit.)

Atom N270 1.6Ghz, 32bit

4. RAM amount (1 GB, 512MB etc.)

2GB DDR2

5. Video Card and Driver version (Intel/Nvidia/etc. version 15.7.8)

1. Mobile Intel 945 Express Chipset with OS installed driver version 8.15.10.1930
2. CrystalHD model BCM970015 with driver version 3.7.20.0 installed from Broadcom crystalhd_3.5.0

6. Sound Card and Driver version (Sound Blaster/Intel/etc. version 7.8)

Builtin sound card with OS installed driver version 6.1.7600.16385

7. Other devices related to issue (tv, receiver, remote, etc - make/model)

None

8. XBMC Revision (eg. 8.10 Atlantis or SVN 16733)

xbmc-r32894-Dharma

9. Detailed Instructions to Reproduce the Problem (The more specific the better.)

Launch XBMC, go to System -> Video -> Playback, check or make sure the radio box next to "Allow hardware acceleration (CrystalHD)" is checked. Back to main menu, from there go to Video -> <folder> and select the following file to play. I can see XBMC is loading the file and playing it but there is no actual picture and the screen is never refreshed; the sound can be heard for the first 10 seconds or so until I heard the repetition of the same tone similar to a CD player trying to get past a bad section on a badly scratched CD and after a few sounds of doing even the sound is stopped.

I can go back to the main screen but exiting from there fails and it has to been killed using Windows 7 Task Manager.

I tried some other H.264 based files and they all have the same issue with being played back properly.

For comparison, when "Allow hardware acceleration (CrystalHD)" is unchecked, the picture and sound both worked but due to slowness of my system (Atom N270 Netbook), they are not smooth enough to be acceptable.

I tried the same test on the same system but with XP SP3 installed but got the exact the same behavior.

I can also verify that CrystalHD itself seems a good one since I can use TotalMedia 2 OEM downloaded from HP to playback the same files without any issue.


10. FULL Debug Log

http://pastebin.com/Z9vJ5nP4

11. MediaInfo output

http://pastebin.com/j8W5cb8P


12. The video file I tried failing

http://www.adrive.com/public/8847e54...3d647b0d9.html
Reply
#38
Did it again this morning just to make sure... here are the results

dmesg
XBMC.log
MediaInfo
Reply
#39
jag0 Wrote:Did it again this morning just to make sure... here are the results

dmesg
XBMC.log
MediaInfo

"clock is moving to 175 with n 35 with vco_mg 2" ->old driver
"CrystalHD(new API): device opened" -> new lib

you have an driver/lib mismatch.
Reply
#40
Hi all,
I am having problems playing the following 1080 mkv
Watchmen.Ultimate.Cut.2009.BluRay.1080p.DTS.x264-INtL
(I see strange square artifacts all over the screen!)

here are the logs
dmesg
mediainfo
xbmclog

I am using the latest nightly build SVN:33078M and latest crystalhd driver 3.0.6

CrystalHD hardware 70012
on Macmini 1.83 Core 2 Duo with 2 GB Ram
All 720p movies I tried play ok but this 1080p mkv (and some others) have problems.

Thanks
Reply
#41
pmark Wrote:Thanks!
Ok I will post a small sample later today.
If I use software decoding The macro-blocking artifacts do not appear but the playback freezes occasionally (I could say it is almost viewable)

here is the sample file
sample
Reply
#42
I am seeing this issue when a "freshly" booted xbmc has much greater success of playing 1080p videos than a xbmc that has been running for sometime.

Please have a look at the logs around 23:40:xx i've tried playing the video twice. then rebooted and played the same video and seems to have played fine.

http://pastebin.com/xMWKTiuz

I am running Dharma Beta 1, CrystalHD 3.6.0 tag from git. BCM970015 decoder, Linux 8.04. Essentially following Davilla's wiki on how to install xbmc for linux.

The attached log is the following reboot, when i tried to run a Top Gear Polar special episode at 1080p.

http://pastebin.com/VMk7Kyu7 this video starts audio, then displays a frame or two before getting stuck. clicking stop on my remote stops it after about 2-3 minutes.

I am also on a 100Mb wired connection. Also if you need samples what is best way to get you say the 1st 10 minutes? just "dd"?
Reply
#43
davilla Wrote:Turn off VDPAU, the AppleTV can't do it.

"top" is your friend in tracking memleaks and such.

i am using top to track this will post when i have more info.

the content i am playing is.

The only file that doesn't play after a fresh reboot is the following

Code:
General
Complete name                    : Top Gear - Polar Special.S00E109.mkv
Format                           : Matroska
File size                        : 7.08 GiB
Duration                         : 1h 2mn
Overall bit rate                 : 16.3 Mbps
Encoded date                     : UTC 2007-07-25 20:07:52
Writing application              : gdsmux
Writing library                  : Haali DirectShow Matroska Muxer 1.7.189.11

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 2 frames
Format settings, GOP             : M=3, N=12
Muxing mode                      : Container [email protected]
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 1h 2mn
Bit rate                         : 15.6 Mbps
Width                            : 1 440 pixels
Height                           : 1 080 pixels
Display aspect ratio             : 16:9
Original display aspect ratio    : 16:9
Frame rate                       : 25.000 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : MBAFF
Bits/(Pixel*Frame)               : 0.402
Stream size                      : 6.77 GiB (96%)
Title                            : BBC-HD H.264 1440x1080
Language                         : English

Audio
ID                               : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Muxing mode                      : Header stripping
Codec ID                         : A_AC3
Duration                         : 1h 2mn
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Video delay                      : -109ms
Stream size                      : 170 MiB (2%)
Title                            : English AC3 2.0
Language                         : English


Should I expect my BCM970015 to play this on my appletv? It works on my ION w/ VDPAU enabled okay using 9.11 Camelot.


I can PM you the link to test file if you need.


Thanks
Reply
#44
Video is playing as if CrystalHD isn't being used to decode the video on my AppleTV since updating from CrystalHD 2.0.1 and a nightly build to 3.6.0 and Beta 2. With debugging enabled I see 90-100% cpu usage and major frame drop on 480p h264/ac3 mkv which used to play just fine with low CPU usage.

I checked to make sure the kext is being loaded and the log seems to indicate the CrystalHD card is being initialized at startup.

http://janpingel.com/misc/files/xbmc.log
Reply
#45
davilla Wrote:I'm sorry. I just don't believe it. sample please.

One minute sample with very noticeable frame drop: http://janpingel.com/misc/files/sample-002.mkv

The decoding performance is just like when I disabled CrystalHD as I did tests of what the AppleTV and CrystalHD could handle before I ripped and encoded my entire library starting back in January. Aside from the delay at the start of playing videos and the odd buffering hiccup these played great with CrystalHD previously.

I wish I could remember the revision of XBMC I was using. At the very least I could switch back to it to watch my media. Things were good until I updated Aug 31st but sadly I didn't mention what rev I was running.
Reply
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 15

Logout Mark Read Team Forum Stats Members Help
Problem getting Broadcom Crystal HD BMC70015 to work with XBMC4