User avatar
abishur
Posts: 4478
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Thu Apr 26, 2012 9:13 pm

gimli said:


Abishur said:


Still, this is an xbmc problem more than an R-pi one I believe.


In this case it wi'll be more the PI ports fault. Maybe it is fixed with the player rework i do here.



ah, then my information *was* outdated
Dear forum: Play nice ;-)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5105
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Bulding XBMC for Raspberry Pi

Thu Apr 26, 2012 9:30 pm

@abishur can you remux the file without the subtitles and see if it plays?

Tavalin
Posts: 59
Joined: Mon Apr 16, 2012 9:53 pm

Re: Bulding XBMC for Raspberry Pi

Thu Apr 26, 2012 10:12 pm

Has anyone tried enabling dirty regions (assuming it's not already enabled) to see if it speeds up the menus?

User avatar
abishur
Posts: 4478
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Thu Apr 26, 2012 10:18 pm

dom said:


@abishur can you remux the file without the subtitles and see if it plays?



Crap, that worked. I literally have hundreds of files and I really don't want to have to remove subtitles from all of them to get this working.  I tried setting showsubtitles to false in .xbmc/userdata/guisettings.xml but that didn't work I saw a suggestion about going into Movie Options and Set Enable Subtitles to off but I can't seem to find such an option
Dear forum: Play nice ;-)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5105
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Bulding XBMC for Raspberry Pi

Thu Apr 26, 2012 10:38 pm

@abishur http://forum.xbmc.org/showthre.....tid=125865

I"m sure the subtitle issue will be fixed soon, but you may be able to disable them for now.

User avatar
abishur
Posts: 4478
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Thu Apr 26, 2012 10:48 pm

dom said:


@abishur http://forum.xbmc.org/showthre.....tid=125865

I"m sure the subtitle issue will be fixed soon, but you may be able to disable them for now.



No dice, even with subtitles disabled from the get go it crashes.  It must be something about how my subtitles are included in the file (I think handbrake is using VobSub)
Dear forum: Play nice ;-)

Tavalin
Posts: 59
Joined: Mon Apr 16, 2012 9:53 pm

Re: Bulding XBMC for Raspberry Pi

Thu Apr 26, 2012 11:00 pm

Tavalin said:


Has anyone tried enabling dirty regions (assuming it's not already enabled) to see if it speeds up the menus?


Just tried this, it didn't work out as well as I'd hoped!  The usage of dirty regions did seem to speed up the navigation between menus but the frame buffers seems to empty meaning that the non-dirty regions ended up blank with only the dirty regions getting painted on screen.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5105
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Bulding XBMC for Raspberry Pi

Thu Apr 26, 2012 11:00 pm

Probably in the file reading side, rather than subtitle rendering.
A 100M sample of the file that exhibits the issue would be useful (for gimli).

User avatar
abishur
Posts: 4478
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 12:27 am

I had to compress it a lot to get it down to around 100 MB, but here's a link to the dropbox file

Here's the media info from it as well

General
Unique ID                                : 307125793196953809258474163730858316859 (0xE70E46B3CF22C074D82C16B21A97143B)
Complete name                            :
Format                                   : Matroska
Format version                           : Version 2
File size                                : 106 MiB
Duration                                 : 42mn 42s
Overall bit rate                         : 347 Kbps
Writing application                      : HandBrake 0.9.6
Writing library                          : libmkv 0.6.5

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 42mn 42s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Original display aspect ratio            : 16:9
Frame rate mode                          : Variable / Variable
Frame rate                               : 59.940 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Writing library                          : x264 core 120
Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=600 / keyint_min=60 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=30.0 / qcomp=0.60 / qpmin=3 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color primaries                          : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Transfer characteristics                 : BT.709-5, BT.1361
Matrix coefficients                      : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 42mn 42s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : VobSub
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : The same subtitle format used on DVDs
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : Chapter 1
00:05:16.632                             : Chapter 2
00:14:24.179                             : Chapter 3
00:31:54.896                             : Chapter 4
Dear forum: Play nice ;-)

gimli
Posts: 18
Joined: Thu Apr 26, 2012 6:29 am

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 7:01 am

Abishur said:


I had to compress it a lot to get it down to around 100 MB, but here's a link to the dropbox file

Here's the media info from it as well

General
Unique ID                                : 307125793196953809258474163730858316859 (0xE70E46B3CF22C074D82C16B21A97143B)
Complete name                            :
Format                                   : Matroska
Format version                           : Version 2
File size                                : 106 MiB
Duration                                 : 42mn 42s
Overall bit rate                         : 347 Kbps
Writing application                      : HandBrake 0.9.6
Writing library                          : libmkv 0.6.5

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 42mn 42s
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Original display aspect ratio            : 16:9
Frame rate mode                          : Variable / Variable
Frame rate                               : 59.940 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Writing library                          : x264 core 120
Encoding settings                        : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=600 / keyint_min=60 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=30.0 / qcomp=0.60 / qpmin=3 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color primaries                          : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Transfer characteristics                 : BT.709-5, BT.1361
Matrix coefficients                      : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 42mn 42s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : VobSub
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : The same subtitle format used on DVDs
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : Chapter 1
00:05:16.632                             : Chapter 2
00:14:24.179                             : Chapter 3
00:31:54.896                             : Chapter 4


Works with the new player code here

Blunderbuss
Posts: 18
Joined: Sun Feb 19, 2012 12:05 am

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 7:57 am

So I copied the folder and driver over, but running it it now says that I cannot run XBMC unless the screen color depth is 24bit, and I need to reconfigure it. Anyone know how to fix this?

GroundhogOZ
Posts: 6
Joined: Fri Apr 27, 2012 8:21 am
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 9:28 am

I played around with Liams-Image yesterday and playing a complete movie in 720p or less via network was no problem.

Today I tried with 2 different 1080p-MKVs and got a freeze after some minutes.

I'm not sure if I have temperature issues because the Raspi caught a little bit too much of the sun or if there is a general problem with the image somebody can reproduce.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5105
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 10:51 am

It is not temperature (we"ve run these chips in an oven at 80degC playing 1080p for weeks).
Most likely power supply (probably not enough current, less likely not enough voltage). Can you try swapping power supply/USB cable?

GroundhogOZ
Posts: 6
Joined: Fri Apr 27, 2012 8:21 am
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 12:33 pm

dom said:


It is not temperature (we"ve run these chips in an oven at 80degC playing 1080p for weeks).
Most likely power supply (probably not enough current, less likely not enough voltage). Can you try swapping power supply/USB cable?



I'm using the cable of my smartphone (HTC) which should deliver enough power:

http://www.almedia.tv/bilder/p.....5109_1.jpg

When I'm back at home I will see if I can find a different cable and try again.

User avatar
abishur
Posts: 4478
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 12:45 pm

gimli said:


Works with the new player code here



I see, how do I get that new code onto my pi? 
Dear forum: Play nice ;-)

gimli
Posts: 18
Joined: Thu Apr 26, 2012 6:29 am

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 12:50 pm

Abishur said:


gimli said:


Works with the new player code here


I see, how do I get that new code onto my pi? 


Looks like it depends on me, when i'm going to push it

Tavalin
Posts: 59
Joined: Mon Apr 16, 2012 9:53 pm

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 12:54 pm

GroundhogOZ said:


I played around with Liams-Image yesterday and playing a complete movie in 720p or less via network was no problem.

Today I tried with 2 different 1080p-MKVs and got a freeze after some minutes.

I'm not sure if I have temperature issues because the Raspi caught a little bit too much of the sun or if there is a general problem with the image somebody can reproduce.


Could it be that the RPi isn't powerful enough?  I've tried to play a few 1080p mkvs and after a while it freezes too but I just attributed that to the fact it was too much for the RPi.

User avatar
Kushan
Posts: 26
Joined: Tue Apr 17, 2012 7:49 pm

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 1:42 pm

I don't think CPU/GPU power is the issue, as far as I know the decoding is done in hardware and the Pi is more than capable of it (early testers said they could play 1080p without an issue). I dare say it's likely something relating to I/O throughput or something else, in any case I'm sure it can be fixed.

GroundhogOZ
Posts: 6
Joined: Fri Apr 27, 2012 8:21 am
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 1:47 pm

I don't think the performance is a problem … then it would be problematic from the start of the film.

I streamed it from a local server (Windows-network) and will try it from a different source (usb) when I have time and a new HDMI-cable to see if it is a network-issue.

User avatar
abishur
Posts: 4478
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 2:02 pm

gimli said:


Abishur said:


gimli said:


Works with the new player code here


I see, how do I get that new code onto my pi? 


Looks like it depends on me, when i'm going to push it



::Waits patiently:: Once it is out there, will it be as simple as running an update or will we need to go through the whole cross-compile again? (I love how i say again as if I did it the first time instead of being lazy and using Liam's image )
Dear forum: Play nice ;-)

Tavalin
Posts: 59
Joined: Mon Apr 16, 2012 9:53 pm

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 2:19 pm

GroundhogOZ said:


I don"t think the performance is a problem … then it would be problematic from the start of the film.

I streamed it from a local server (Windows-network) and will try it from a different source (usb) when I have time and a new HDMI-cable to see if it is a network-issue.


For the ones I tried the film stuttered sporadically from the start (and this was repeatable each time i restarted the film) before freezing when I tried to get back to the menu.  Maybe they're different issues then.

GroundhogOZ
Posts: 6
Joined: Fri Apr 27, 2012 8:21 am
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 2:24 pm

Tavalin said:

For the ones I tried the film stuttered sporadically from the start (and this was repeatable each time i restarted the film) before freezing when I tried to get back to the menu.  Maybe they're different issues then.
The movie was running completely fine for me until the freeze. I haven't tried to go back to the menu with the 1080p-file.
Did you stream it from a network-destination or a USB-device?

Tavalin
Posts: 59
Joined: Mon Apr 16, 2012 9:53 pm

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 2:37 pm

A windows share (smb)

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5105
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 3:09 pm

You will get much better performance with an nfs share

You can also stream with ftp and http with XBMC, and they will be better than SMB.

nfs mounting with these options:

mount 192.168.4.9:/Public -o rw,vers=3,rsize=8192,wsize=8192,soft,nolock,udp /home/pi/dell

gave good results.

I'm actually using Hanewin NFS server on Windows 7.

GroundhogOZ
Posts: 6
Joined: Fri Apr 27, 2012 8:21 am
Contact: Website

Re: Bulding XBMC for Raspberry Pi

Fri Apr 27, 2012 3:15 pm

dom said:


You will get much better performance with an nfs share

You can also stream with ftp and http with XBMC, and they will be better than SMB.

nfs mounting with these options:

mount 192.168.4.9:/Public -o rw,vers=3,rsize=8192,wsize=8192,soft,nolock,udp /home/pi/dell

gave good results.

I'm actually using Hanewin NFS server on Windows 7.



Thank you I will try it, but I couldn't change too much on the server at work, so that's my homework to test it.
Maybe that will solve Tavalins and my problem.

Do you know how the performance with a USB-device is?

Return to “Media centres”

Who is online

Users browsing this forum: No registered users and 13 guests