Support Thread for libstagefright

  Thread Rating:
  • 5 Votes - 4.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
phate89 Offline
Senior Member
Posts: 170
Joined: Nov 2012
Reputation: 3
Post: #1456
Hi.. I just install xbmc in my new nexus 2013 lte and I have a bug with libstagefright hardware acceleration. h264 1080p 24 decoding works well (but when i stop the video xbmc crashes) but when i try to watch mpeg2/h264 interlaced live tv or a ts interlaced recording xbmc crashes as soon as it start to play (i hear for a second the audio but the video never starts and crashes).
Here's the log:
http://xbmclogs.com/show.php?id=244230
And here's the logcat:
https://dl.dropboxusercontent.com/u/2219...fright.txt
And here's the log of the 1080p crash after stop playing:
http://xbmclogs.com/show.php?id=243446
and the logcat:
https://dl.dropboxusercontent.com/u/2219086/1080p.txt

with dalvik:

Here's the log:
http://xbmclogs.com/show.php?id=244241
And here's the logcat:
https://dl.dropboxusercontent.com/u/2219...dalvik.txt
  • Hardware: Nexus 7 2013 LTE
  • Rom: KitKat 4.4.3 stock
  • XBMC Gotham 13.1

My configuration:
  • Hardware Encoding: On
  • Libstagefright: On
  • MediaCodec: Off
(This post was last modified: 2014-07-11 01:21 by phate89.)
find quote
Koying Offline
Team-XBMC Member
Posts: 1,810
Joined: Sep 2008
Reputation: 36
Location: Brussels, Belgium
Post: #1457
Mmm... MediaCodec is being used.
Wrong logcat?
find quote
phate89 Offline
Senior Member
Posts: 170
Joined: Nov 2012
Reputation: 3
Post: #1458
You're right it was with mediacodec.
I tried again and the behavior is a little bit different.
The 1080p is the same (plays well but when i stop it crashes) but interlaced doesn't crash. but it still have a bug because when i start the channel i got it only with audio and this to video:
[Image: 413b08338135839.jpg]
if i change again channel xbmc crashes again.
Here's the Log:
http://xbmclogs.com/show.php?id=244230
And here's the logcat:
https://dl.dropboxusercontent.com/u/2219...fright.txt
I tried with dalvik and it changes slightly. xbmc doesn't crash (never a crash with 1080p or interlaced) but i still get this with tv material:
[Image: 413b08338135839.jpg]

Here's the log:
http://xbmclogs.com/show.php?id=244241
And here's the logcat:
https://dl.dropboxusercontent.com/u/2219...dalvik.txt
(This post was last modified: 2014-07-11 01:20 by phate89.)
find quote
Koying Offline
Team-XBMC Member
Posts: 1,810
Joined: Sep 2008
Reputation: 36
Location: Brussels, Belgium
Post: #1459
Looks like MPEG2 h/w decoding has a problem.

In advancedsettings.xml, for libstagefright, you can disable it with
Code:
<advancedsettings>
  ...
  <video>
    ...
    <stagefright>
      <!--  -1 is default, 0 is never used this codec, 1 is always use this codec, bypassing blacklist -->
      <usempeg2codec>0</usempeg2codec>
    </stagefright>
    ...
  </video>
  ...
</advancedsettings>

Please give it a try.
As said earlier, the "stop" crash will be solved in 13.2 (coming soon).
find quote
phate89 Offline
Senior Member
Posts: 170
Joined: Nov 2012
Reputation: 3
Post: #1460
(2014-07-11 11:51)Koying Wrote:  Looks like MPEG2 h/w decoding has a problem.

In advancedsettings.xml, for libstagefright, you can disable it with

Please give it a try.
As said earlier, the "stop" crash will be solved in 13.2 (coming soon).

It doesn't only happens with mpeg2 576i but also with h264 1080i. Happens only with interlaced sources.
I already tried to disable hardware acceleration and with mpeg2 576i is fine but via software it is Too slow to decode h264 1080i and it drops a lot of frames (impossible to watch)
(This post was last modified: 2014-07-11 13:25 by phate89.)
find quote
phate89 Offline
Senior Member
Posts: 170
Joined: Nov 2012
Reputation: 3
Post: #1461
Tried with the new beta. The stop crash is fixed but not the interlaced decoding..
find quote
Post Reply