Android advancedsettings to set codecs on off for sd hd content
#1
Smile 
Hi. I have orbsmart s85.

I m running latest 14.1 smpc. My prob… .All sd contents running a bit choppy with mediacodec and stagefright. If disabled all hardware acceleration codecs and do software decode all is fine and smooth.

But hd content is choppy without these codecs.

So i read about advancedsettings in spmc. There is a way for sd and hd.

Add "sd" & "hd" to the advancedsettings of libstagefright (and mediacodec) for fine tuning


So can you plz tell how the advancedsetting.xml looks like exactly? Thank you
Reply
#2
This works for me on a Amazon Fire Stick and is from the spmc thread (Koying I think was the author of the post):

Code:
<advancedsettings>
  <network>
    <buffermode>1</buffermode>
    <cachemembuffersize>150000000</cachemembuffersize>
    <readbufferfactor>10</readbufferfactor>
  </network>
  <video>
    <stagefright>
      <!--  -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
      <useavccodec>hd</useavccodec>
      <usevc1codec>hd</usevc1codec>
      <usevpxcodec>hd</usevpxcodec>
      <usemp4codec>hd</usemp4codec>
      <usempeg2codec>hd</usempeg2codec>
      <useswrenderer>false</useswrenderer>
    </stagefright>
    <mediacodec>
      <!--  -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
      <useavccodec>-1</useavccodec>
      <usevc1codec>-1</usevc1codec>
      <usevpxcodec>-1</usevpxcodec>
      <usemp4codec>-1</usemp4codec>
      <usempeg2codec>-1</usempeg2codec>
      <useswrenderer>false</useswrenderer>
    </mediacodec>
  </video>
</advancedsettings>
Reply
#3
Wow. Runs like charm now… all fine sd and hd settings works fine. And cache do well also!

Thans sir learningit Smile
Reply
#4
Actually I just realized that the value:
Code:
<cachemembuffersize>150000000</cachemembuffersize>

is really too large for a Fire Stick - 150MB cache - and it uses up to 3x that value for storage? Knock a 0 off for 15MB or setting to a max of say 50MB will keep you from running out of memory.
Reply
#5
Strange. That setting shouldn't be too much for the Fire TV stick. That's 450 MB of RAM, leaving at least 512 MB left, and Kodi can run on Android devices with only that much RAM total.
Reply
#6
(2015-03-28, 21:37)Ned Scott Wrote: Strange. That setting shouldn't be too much for the Fire TV stick. That's 450 MB of RAM, leaving at least 512 MB left, and Kodi can run on Android devices with only that much RAM total.

I'm actually thinking that there might be something wrong with that stick. It shows between 50 and 120MB free RAM when it's not doing anything other than running Kodi. I would have thought there would be much more available.
Reply
#7
ok i ve testet .. and i retuned the advanced setting to this:

<advancedsettings>
<network>
<buffermode>1</buffermode>
<cachemembuffersize>104857600</cachemembuffersize>
<readbufferfactor>10</readbufferfactor>
</network>
<video>
<stagefright>
<!-- -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
<useavccodec>hd</useavccodec>
<usevc1codec>hd</usevc1codec>
<usevpxcodec>hd</usevpxcodec>
<usemp4codec>hd</usemp4codec>
<usempeg2codec>hd</usempeg2codec>
<useswrenderer>false</useswrenderer>
</stagefright>
<mediacodec>
<!-- -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
<useavccodec>hd</useavccodec>
<usevc1codec>hd</usevc1codec>
<usevpxcodec>hd</usevpxcodec>
<usemp4codec>hd</usemp4codec>
<usempeg2codec>1</usempeg2codec>
<useswrenderer>false</useswrenderer>
</mediacodec>
</video>
</advancedsettings>

so this turns off all codecs for SD and stagefright + mediacodec for HD and for mpeg2 - mediacodec is always on

cache running good so far ..

Smile
Reply
#8
I have also noticed a different compared to SD and HD material. HD material actually runs better... Tried to change my settings, but don´t see a big different in the choppy SD material.

Any thought about my settings?

My advancedsettings.xlm looks like this:

<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>192.168.1.69</host>
<port>xxxx</port>
<user>xxxx</user>
<pass>xxxx</pass>
<name>xbmc_video</name>
</videodatabase>
<network>
<buffermode>1</buffermode>
<cachemembuffersize>104857600</cachemembuffersize>
<readbufferfactor>10</readbufferfactor>
</network>
<video>
<stagefright>
<!-- -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
<useavccodec>hd</useavccodec>
<usevc1codec>hd</usevc1codec>
<usevpxcodec>hd</usevpxcodec>
<usemp4codec>hd</usemp4codec>
<usempeg2codec>hd</usempeg2codec>
<useswrenderer>false</useswrenderer>
</stagefright>
<mediacodec>
<!-- -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
<useavccodec>-1</useavccodec>
<usevc1codec>-1</usevc1codec>
<usevpxcodec>-1</usevpxcodec>
<usemp4codec>-1</usemp4codec>
<usempeg2codec>-1</usempeg2codec>
<useswrenderer>false</useswrenderer>
</mediacodec>
</video>
</advancedsettings>

Thanks for input...
Reply
#9
Has anyone gotten this to work successfully? I'm using SPMC 14.2. I'm trying to get my MPEG2 video to not use stagefright for my hdhomerun prime video content that is SD. All HD content should use stagefright. I'm using an Amazon Firestick.

I've tried a number of different changes to my advancedsettings.xml. Nothing I do overrides the settings configured in the System => Settings => Video => Acceleration.

I always place my changes in the SPMC userdata directory, and restart SPMC.

/sdcard/Android/data/com.semperpax.spmc/files/.spmc/userdata/advancedsettings.xml


These are my settings:

Code:
<advancedsettings>
  <network>
    <buffermode>1</buffermode>
    <cachemembuffersize>20971520</cachemembuffersize>
    <readbufferfactor>10</readbufferfactor>
  </network>
  <video>
    <stagefright>
      <!--  -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
      <useavccodec>hd</useavccodec>
      <usevc1codec>hd</usevc1codec>
      <usevpxcodec>hd</usevpxcodec>
      <usemp4codec>hd</usemp4codec>
      <usempeg2codec>hd</usempeg2codec>
      <useswrenderer>false</useswrenderer>
    </stagefright>
    <mediacodec>
      <!--  -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
      <useavccodec>-1</useavccodec>
      <usevc1codec>-1</usevc1codec>
      <usevpxcodec>-1</usevpxcodec>
      <usemp4codec>-1</usemp4codec>
      <usempeg2codec>-1</usempeg2codec>
      <useswrenderer>false</useswrenderer>
    </mediacodec>
  </video>
  <pvr>
      <minvideocachelevel>60</minvideocachelevel>
      <minaudiocachelevel>60</minaudiocachelevel>
  </pvr>
</advancedsettings>


I have checked Koying's code, and I do see the options.

https://github.com/koying/SPMC/search?ut...mpeg2codec


Anyone have any suggestions? Thanks,

DJC
Reply
#10
(2015-04-16, 18:30)djcasual Wrote: Has anyone gotten this to work successfully? I'm using SPMC 14.2. I'm trying to get my MPEG2 video to not use stagefright for my hdhomerun prime video content that is SD. All HD content should use stagefright. I'm using an Amazon Firestick.


Anyone have any suggestions? Thanks,

DJC

Look at your debug log (or post it in xbmclogs.com) and see if the advancedsettings.xml file is being processed at startup. That would be a good starting place.
Reply
#11
(2015-04-16, 19:20)learningit Wrote: Look at your debug log (or post it in xbmclogs.com) and see if the advancedsettings.xml file is being processed at startup. That would be a good starting place.

The specific area that shows my advancedsettings.xml loading correct are here:

Code:
11:08:26 T:1086702480  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
11:08:26 T:1086702480  NOTICE: Loaded settings file from special://profile/advancedsettings.xml
11:08:26 T:1086702480  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <network>
                                                <buffermode>1</buffermode>
                                                <cachemembuffersize>20971520</cachemembuffersize>
                                                <readbufferfactor>10</readbufferfactor>
                                              </network>
                                              <video>
                                                <stagefright>
                                                  <!--  -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
                                                  <useavccodec>hd</useavccodec>
                                                  <usevc1codec>hd</usevc1codec>
                                                  <usevpxcodec>hd</usevpxcodec>
                                                  <usemp4codec>hd</usemp4codec>
                                                  <usempeg2codec>hd</usempeg2codec>
                                                  <useswrenderer>false</useswrenderer>
                                                </stagefright>
                                                <mediacodec>
                                                  <!--  -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
                                                  <useavccodec>-1</useavccodec>
                                                  <usevc1codec>-1</usevc1codec>
                                                  <usevpxcodec>-1</usevpxcodec>
                                                  <usemp4codec>-1</usemp4codec>
                                                  <usempeg2codec>-1</usempeg2codec>
                                                  <useswrenderer>false</useswrenderer>
                                                </mediacodec>
                                              </video>
                                              <pvr>
                                                <minvideocachelevel>60</minvideocachelevel>
                                                <minaudiocachelevel>60</minaudiocachelevel>
                                              </pvr>
                                            </advancedsettings>

I've also posted the full spmc.log here with an SD view test to my hdhomerun (which still uses stagefright) and ignores my advancedsettings: http://xbmclogs.com/pwnomajwt

I've tried a different number of combinations by disabling acceleration codecs in the GUI (always restarting). No matter what I do these codec advancedsettings.xml are ignored. I've also tried different advancedsettings.xml combinations such are removing mediacodec, changing values, and nothing works.

My other settings such as cache and pvr work correctly. These advanced codec settings on SPMC 14.2 are always overridden by whatever the settings in gui interface adhere to.

Any other suggestions?
Reply
#12
Just curious, with the advacedsettings.xml above, do you still check off/on the hardware acceleration settings? And if so, what do you check off/on?
Reply
#13
(2015-05-22, 22:46)springroll Wrote: Just curious, with the advacedsettings.xml above, do you still check off/on the hardware acceleration settings? And if so, what do you check off/on?

Turn it all on, these settings will disable the things that have (had?) issues.
Reply

Logout Mark Read Team Forum Stats Members Help
advancedsettings to set codecs on off for sd hd content0