Buffering issue / cachemembuffersize fixed

Discussion of XBMC4XBOX development.
User avatar
Xphazer
Posts: 522
Joined: Wed Jul 04, 2012 4:39 am
Location: Montréal
Has thanked: 233 times
Been thanked: 99 times

Buffering issue / cachemembuffersize fixed

Post by Xphazer » Sun Jun 09, 2013 8:10 am

To anyone having buffering issues using addons, give this a try. It was broken and didn't work before and should be working fine with 31785. :)
If set to 0, content will be cached on the hard drive. Let us know how it goes and have fun testing different values. ^^ Megabytes to Bytes

UserData/advancedsettings.xml

Code: Select all

<advancedsettings>
    <network>
        <cachemembuffersize>5242880</cachemembuffersize>
    </network>
</advancedsettings>
Press the black button on the gamepad or the "Title" button on the remote:
(Using 20971520 with 128MB of RAM :D)
Image
Attachments
advancedsettings.zip
(213 Bytes) Downloaded 1299 times

00diabolic
Posts: 35
Joined: Sun Jun 09, 2013 8:33 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Buffering issue / cachemembuffersize fixed

Post by 00diabolic » Wed Jun 12, 2013 9:51 pm

Thanks for this..

One question and maybe I'm missing the obvious here. So I set the advancedsettings xml to 5242880 (64mb) and the xbmc settings to cache 0 right?

There is only 1 settings in cache under xbmc dvdplayer is that what should be set to zero? There are multiple settings under mplayer but mplayer as far as I know is not the recommended player for most content, is that still correct? (This is last I know circa 2008) If it is mplayer cache then is it unknown type cache -internet that we set to 0?

Please let me know..

00diabolic
Posts: 35
Joined: Sun Jun 09, 2013 8:33 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Buffering issue / cachemembuffersize fixed

Post by 00diabolic » Thu Jun 13, 2013 5:52 am

After much trial and error I answered my own question. It is 0 in advancedsettings.xml to get this file to cache to HD.

1. Now what partition is this using? Also how much of that hard drive will it use? Can we tell it what partition to use for cache?

2. Also what about the 1 settings in cache under xbmc dvdplayer what should that be set to? Is that ignored with this or does it limit the HD space used by this?

3. Does this setting only apply to dvdplayer & not mplayer? If it does apply, there are multiple settings under mplayer but mplayer as far as I know is not the recommended player for most content, is that still correct? (This is last I know circa 2008) If it is mplayer cache then is it unknown type cache -internet that would limit this?

Thanks

User avatar
Xphazer
Posts: 522
Joined: Wed Jul 04, 2012 4:39 am
Location: Montréal
Has thanked: 233 times
Been thanked: 99 times

Re: Buffering issue / cachemembuffersize fixed

Post by Xphazer » Thu Jun 13, 2013 6:05 am

Don't touch anything from the GUI, just create UserData/advancedsettings.xml with the correct content.
Its all about 1 single setting, cachemembuffersize in advancedsettings.xml. Noting more, nothing to do from the interface.
You can have a bigger cache on your RAM. <cachemembuffersize>5242880</cachemembuffersize> (Or the value you like)
OR Set to 0, it will cache to hard drive, No size limit beside FATX and hard drive space limitation.. "<cachemembuffersize>0</cachemembuffersize>"
You certainly cannot use a 64MB cache on RAM! 64MB is the amount of RAM the Xbox have, you cant use all the RAM for cache. ^^
5242880 Bytes equals to 5 Megabytes.. (64 Megabytes = 67108864 Bytes) :)

In a nutshell, when streaming content from online, all its doing is "downloading" a "file", but you can watch that file at the same time it download.
So this "file" need to be stored somewhere till it get processed so it can be display on your screen.
And thats what cachemembuffersize is all about.
Now the DVDplayer cache is what's already been processed and ready to be show on your screen.
This doesn't really need any adjustment, and certainly wont help anything with online streaming.
(mplayer is not actively supported anymore, use /report with DVDplayer please)

00diabolic
Posts: 35
Joined: Sun Jun 09, 2013 8:33 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Buffering issue / cachemembuffersize fixed

Post by 00diabolic » Thu Jun 13, 2013 3:25 pm

Alright cool.. Only 1 question remains. What drive is used for this caching? I'm assuming Q drive. If it is I'll need to do something to free up more space on my E drive.

User avatar
BuZz
Site Admin
Posts: 1889
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 62 times
Been thanked: 422 times
Contact:

Re: Buffering issue / cachemembuffersize fixed

Post by BuZz » Thu Jun 13, 2013 4:17 pm

it uses special://temp/ which by default is mapped to: Z:\

00diabolic
Posts: 35
Joined: Sun Jun 09, 2013 8:33 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Buffering issue / cachemembuffersize fixed

Post by 00diabolic » Fri Jun 14, 2013 6:59 am

My cache does not go above 1.5mb with Z drive being empty.

I keep getting a warning that says cache is full for some reason. Any ideas what it could be?

User avatar
BuZz
Site Admin
Posts: 1889
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 62 times
Been thanked: 422 times
Contact:

Re: Buffering issue / cachemembuffersize fixed

Post by BuZz » Fri Jun 14, 2013 11:06 am

debug log please.

00diabolic
Posts: 35
Joined: Sun Jun 09, 2013 8:33 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Buffering issue / cachemembuffersize fixed

Post by 00diabolic » Fri Jun 14, 2013 4:17 pm

Here is my log. If you notice anything let me know..

I've also attached my regular log also. The debug log includes the error that the cache has been filed.

Thanks BUZZ!!
Attachments
xbmc log.rar
Org log & debug included.
(100.69 KiB) Downloaded 159 times

User avatar
BuZz
Site Admin
Posts: 1889
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 62 times
Been thanked: 422 times
Contact:

Re: Buffering issue / cachemembuffersize fixed

Post by BuZz » Fri Jun 14, 2013 6:32 pm

Better would be to use pastebin or similar rather than attaching files. ill take a look though.

User avatar
BuZz
Site Admin
Posts: 1889
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 62 times
Been thanked: 422 times
Contact:

Re: Buffering issue / cachemembuffersize fixed

Post by BuZz » Fri Jun 14, 2013 6:33 pm

well, in none of the logs there do you have an advancedsettings.xml ... did you make one ? check the original post again. default cache is 1mb (and some for back buffer). normally cache errors indicate that the data is not streaming quick enough to playback in realtime. but this thread is specifically about the advancedsettings.xml cachemembuffersize config.

00diabolic
Posts: 35
Joined: Sun Jun 09, 2013 8:33 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Buffering issue / cachemembuffersize fixed

Post by 00diabolic » Fri Jun 14, 2013 9:29 pm

Hmmm.. Here is my advanced settings xml see below. I'm sure I got this setup right. It does work except the cache will not go above 1.5mb. It did go to about 2.5mb on one source but did not stay there. I tried a number of sources. It could be my internet or setup but I doubt that. I have already looked into my DD-wrt config to see if I can make it any faster getting to the xbox and I've got it as tweaked as I can get it.

http://pastebin.com/cKMYs4K9

Any suggestions. Also did you look at all of the logs. The line 20860928 INFO: CFileCache::Process - Hit eof.

I figured that might have been where it ran out of cache when streaming. I will run it a bit longer and see if I can recreate the problem more in the log.

User avatar
BuZz
Site Admin
Posts: 1889
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 62 times
Been thanked: 422 times
Contact:

Re: Buffering issue / cachemembuffersize fixed

Post by BuZz » Fri Jun 14, 2013 9:40 pm

in your logs it said it hadn't loaded any advancedsettings.xml - make sure you have it in the right location (UserData folder). it looks as though you have put the advancedsettings stuff in the guisettings.xml or something ?

and the error from the logfile I think is when the cache is empty, ie it isn't being filled fast enough.

User avatar
Xphazer
Posts: 522
Joined: Wed Jul 04, 2012 4:39 am
Location: Montréal
Has thanked: 233 times
Been thanked: 99 times

Re: Buffering issue / cachemembuffersize fixed

Post by Xphazer » Fri Jun 14, 2013 9:45 pm

As buzz said.. There is no advancedsettings.xml detected.. Its not named correctly or not in the right location.
So make sure its not named something like advancedsettings.xml.txt
Make sure to unhide extensions for known file types.
Make sure advancedsettings.xml is it into Q:/UserData/

xbmc debug.old.log:
03:21:50 M: 54951936 NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)

xbmc debug.log
03:57:25 M: 56184832 NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)

xbmc.old.log
14:58:19 M: 54951936 NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)

xbmc.log
03:10:03 M: 54951936 NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)

00diabolic
Posts: 35
Joined: Sun Jun 09, 2013 8:33 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Buffering issue / cachemembuffersize fixed

Post by 00diabolic » Fri Jun 14, 2013 10:15 pm

Ok the exact error I'm getting is "cache filled before reaching required amount for continuous playback"

This is with advancedsettings.xml in place.. See pastebin below..
Last edited by 00diabolic on Fri Jun 14, 2013 10:32 pm, edited 1 time in total.

00diabolic
Posts: 35
Joined: Sun Jun 09, 2013 8:33 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Buffering issue / cachemembuffersize fixed

Post by 00diabolic » Fri Jun 14, 2013 10:18 pm

DUH... I was getting this mixed up with avpacksettings.xml.. This is a separate file.. DOH... Ok got it now..

Ok going to try again with advanced settings in place.. Log attached.. I'm still getting the same error with it in place and cache will not go above 1.5mb..

http://pastebin.com/jQWfv4CB

Appears to be working after reboot. Hmm still not getting as much cache as I'd like. So are all cache related gui settings ignored with advancedsettings.xml in place?
Last edited by 00diabolic on Fri Jun 14, 2013 10:40 pm, edited 1 time in total.

User avatar
BuZz
Site Admin
Posts: 1889
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 62 times
Been thanked: 422 times
Contact:

Re: Buffering issue / cachemembuffersize fixed

Post by BuZz » Fri Jun 14, 2013 10:40 pm

Check the log yourself first - you still do not have it in the right place

09:04:26 M: 56184832 NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)

please make sure the config is loaded by reading the log before posting ....

trogggy
Posts: 106
Joined: Fri Jul 06, 2012 1:24 pm
Has thanked: 4 times
Been thanked: 12 times

Re: Buffering issue / cachemembuffersize fixed

Post by trogggy » Fri Jun 14, 2013 10:41 pm

09:04:26 M: 56184832 NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
It's still not loading - either it's in the wrong place or the wrong name / extension.

Edit: too slow!

00diabolic
Posts: 35
Joined: Sun Jun 09, 2013 8:33 pm
Has thanked: 5 times
Been thanked: 3 times

Re: Buffering issue / cachemembuffersize fixed

Post by 00diabolic » Fri Jun 14, 2013 10:43 pm

Sorry Buzz you were right I also needed to reboot. I also got it mixed up with avpacksettings.xml thinking the setting was part of that file.

It appears to be working fine now.. Sorry for my confusion.. You guys have been so helpful...

User avatar
BuZz
Site Admin
Posts: 1889
Joined: Wed Jul 04, 2012 12:50 am
Location: UK
Has thanked: 62 times
Been thanked: 422 times
Contact:

Re: Buffering issue / cachemembuffersize fixed

Post by BuZz » Fri Jun 14, 2013 10:43 pm

00diabolic wrote: Appears to be working after reboot. Hmm still not getting as much cache as I'd like. So are all cache related gui settings ignored with advancedsettings.xml in place?
gui cache settings are not the same thing. mplayer has it's own additional cache, as does dvdplayer (it has an audio/video queue). the cachemembuffer size is a virtual filesystem cache.

Post Reply