2015-01-12, 22:15
Hi All.
I had another thread (that I semi-hijacked) asking about this, but it was sitting unresponded for a while, so I figured I'd start a new one, dedicated to what I'm trying to figure out.
I'm using an android box (2 Ouyas and 1 Fire TV) and they've got hardware acceleration available for H264s but not for anything else (as far as I can tell, at least). All three boxes are running the 12/23 official release of Kodi 14 (Helix). (no nightlies/dev releases)
The issue I'm facing is as follows. I have hardware accelerated video turned on and radiobuttons checked for both mediacodec and libstagefright. When I view any 1080p H264-encoded mkv video, they play beautifully. All is well. However, when I play an xvid (mpeg4 (Advanced Simple Profile) ) the video plays chopy/stuttery. If I go into the gui and disable / uncheck both mediacodec and libstagefright (even while leaving it to hardware accelerated video), then re-play the xvid, the xvid plays fine, but of course the 1080p h264 MKV is unable to play smoothly.
I've attempted to make an advancedsettings.xml file that turns on hardware acceleration for only h264 videos, and leaves it turned OFF for all others. Prior to trying this, I've had my setup working with a mysql database, so I already had an advancedsettings.xml. I do NOT believe my advancedsettings.xml is fixing my issue, however, since my xvids are still choppy, and I still need to uncheck the 2 radio buttons (mediacodec and libstagefright) in order to get them to play smooth.
I will paste my advancedsettings.xml below. If my debug logs are needed, I'd be happy to provide them, but for a first step I'd like someone to tell me if I'm doing something wrong in the xml file.
Many thanks in advance.
<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>SERVIR7</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>
<videolibrary>
<importwatchedstate>true</importwatchedstate>
<importresumepoint>true</importresumepoint>
</videolibrary>
<musicdatabase>
<type>mysql</type>
<host>SERVIR7</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</musicdatabase>
<video>
<stagefright>
<!-- -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
<useavccodec>1</useavccodec>
<usevc1codec>0</usevc1codec>
<usevpxcodec>0</usevpxcodec>
<usemp4codec>0</usemp4codec>
<usempeg2codec>0</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>0</usevc1codec>
<usevpxcodec>0</usevpxcodec>
<usemp4codec>0</usemp4codec>
<usempeg2codec>0</usempeg2codec>
<useswrenderer>false</useswrenderer>
</mediacodec>
</video>
</advancedsettings>
I had another thread (that I semi-hijacked) asking about this, but it was sitting unresponded for a while, so I figured I'd start a new one, dedicated to what I'm trying to figure out.
I'm using an android box (2 Ouyas and 1 Fire TV) and they've got hardware acceleration available for H264s but not for anything else (as far as I can tell, at least). All three boxes are running the 12/23 official release of Kodi 14 (Helix). (no nightlies/dev releases)
The issue I'm facing is as follows. I have hardware accelerated video turned on and radiobuttons checked for both mediacodec and libstagefright. When I view any 1080p H264-encoded mkv video, they play beautifully. All is well. However, when I play an xvid (mpeg4 (Advanced Simple Profile) ) the video plays chopy/stuttery. If I go into the gui and disable / uncheck both mediacodec and libstagefright (even while leaving it to hardware accelerated video), then re-play the xvid, the xvid plays fine, but of course the 1080p h264 MKV is unable to play smoothly.
I've attempted to make an advancedsettings.xml file that turns on hardware acceleration for only h264 videos, and leaves it turned OFF for all others. Prior to trying this, I've had my setup working with a mysql database, so I already had an advancedsettings.xml. I do NOT believe my advancedsettings.xml is fixing my issue, however, since my xvids are still choppy, and I still need to uncheck the 2 radio buttons (mediacodec and libstagefright) in order to get them to play smooth.
I will paste my advancedsettings.xml below. If my debug logs are needed, I'd be happy to provide them, but for a first step I'd like someone to tell me if I'm doing something wrong in the xml file.
Many thanks in advance.
<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>SERVIR7</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</videodatabase>
<videolibrary>
<importwatchedstate>true</importwatchedstate>
<importresumepoint>true</importresumepoint>
</videolibrary>
<musicdatabase>
<type>mysql</type>
<host>SERVIR7</host>
<port>3306</port>
<user>xbmc</user>
<pass>xbmc</pass>
</musicdatabase>
<video>
<stagefright>
<!-- -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
<useavccodec>1</useavccodec>
<usevc1codec>0</usevc1codec>
<usevpxcodec>0</usevpxcodec>
<usemp4codec>0</usemp4codec>
<usempeg2codec>0</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>0</usevc1codec>
<usevpxcodec>0</usevpxcodec>
<usemp4codec>0</usemp4codec>
<usempeg2codec>0</usempeg2codec>
<useswrenderer>false</useswrenderer>
</mediacodec>
</video>
</advancedsettings>