Support Thread for libstagefright

  Thread Rating:
  • 6 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Kanst Offline
Junior Member
Posts: 7
Joined: Apr 2014
Reputation: 0
Post: #1411
(2014-04-19 18:12)Koying Wrote:  What's wrong with mediacodec? Please provide a log with it, too.
With mediacodec i can see only few mpeg2 encoded files - all other (.263 and .264) plays as green screen
log is here: http://xbmclogs.com/show.php?id=179741
(This post was last modified: 2014-04-19 18:35 by Kanst.)
find quote
Koying Online
Team-Kodi Member
Posts: 2,132
Joined: Sep 2008
Reputation: 44
Location: Brussels, Belgium
Post: #1412
Please try this test build with MediaCodec: http://mirrors.xbmc.org/test-builds/andr...bi-v7a.apk
find quote
Kanst Offline
Junior Member
Posts: 7
Joined: Apr 2014
Reputation: 0
Post: #1413
(2014-04-19 20:41)Koying Wrote:  Please try this test build with MediaCodec: http://mirrors.xbmc.org/test-builds/andr...bi-v7a.apk
No green screens, but 720p video periodically slows, 1080p sometime hangs all system after a few first frames http://xbmclogs.com/show.php?id=180208
or crash XBMC before player starts http://xbmclogs.com/show.php?id=180209
also this xbmc build periodically closes unexpectedly while I push a stop button.
find quote
sheepybach Offline
Senior Member
Posts: 287
Joined: Apr 2013
Reputation: 2
Post: #1414
Koying,
RC1 build runs great now no green screens on any of my devices.
find quote
SaEt9000 Offline
Member
Posts: 59
Joined: Mar 2014
Reputation: 0
Post: #1415
Hi,

first I would like to report that with Gotham beta 4 (and ome nightlies after beta3) libstagefrights made a great step forward for our himedia Q-devices (hisilikon cortex A9 with Mali GPU).
Now HD-video runs perfekt in 720p and 1080-video runs much better then ever before. So I can start first time bluray-isos (in h264) from xbmc as well.
Compared to the Videoplayer-app from himedia (HimediaVideoplayer) you see with xbmc-player using 1080-video some short stutters (micro-stutters).

But: the step forward is really great and I hope on forther steps :-)

I have some questions in this context:

H264-video seems to run in right speed, but my VC-1 coded-Videos ("Matrix") are running still in slow-motion. Independently whether in bluray.iso or as *.mkv. Is this only a performance-question?

Some of my 1080-videos are DVB-S2 streams cuttet with "videoredo". I think, earlier Versions of this program made some frame-cuts which are not perfect in h264-rules. Most video-players (popcorn hour, HimdediaVideoplayer-app, wondows mediaplayer...) can play this videos (sometimes you see a short stutter on cutting-point), but xbmc-player stops after some frames and is not able to play the video. I think therefore you need a xbmc-log - I will post it later. But maybe xbmc has an option to be more "flexible" with videos-errors?

SaEt9000
find quote
Koying Online
Team-Kodi Member
Posts: 2,132
Joined: Sep 2008
Reputation: 44
Location: Brussels, Belgium
Post: #1416
Re VC-1, please try with mediacodec first. libstagefright doesn't handle VC-1 quite right.
If it doesn't work with mediacodec either, it just means your box doesn't support h/w acclerated VC1.

Re "videoredo", we have no control on what the h/w decoders can decode or not.
find quote
SaEt9000 Offline
Member
Posts: 59
Joined: Mar 2014
Reputation: 0
Post: #1417
Hi Koying,

thanks for your fast reply :-)
By using mediacodec - until today - we have on himedia Q-boxes xbmc-crashes - always. Just in the moment, when you try to start the video.
I saw your recommendation for a test build above. Is there something special in this test build ?

I'm sure that the Q-box supports HW-accelerated VC1. The HimediaVideoPlayer-app is able to play it perfect - and this cant be in Software-Mode..

SaEt9000
find quote
Koying Online
Team-Kodi Member
Posts: 2,132
Joined: Sep 2008
Reputation: 44
Location: Brussels, Belgium
Post: #1418
Please try with beta4 first (with mediacodec) and provide a logcat of the crash.
find quote
SaEt9000 Offline
Member
Posts: 59
Joined: Mar 2014
Reputation: 0
Post: #1419
ok - first I have to correct myself:
the VC1-coded video is the only one what is not crashing with mediacodec, but all the other HD-videos.
But the speed for the video is the same as with libstagefright or with softwaredecoding: 12/13 fps.

Here ist the log:
http://xbmclogs.com/show.php?id=183123

what I did:
first I startet the VC1-bluray.iso (Matrix Reloaded). It starts in slow motion. After that I started the file arrow_s01e01.mkv. xbmc is crashing before starting the video.

SaEt9000
(This post was last modified: 2014-04-22 15:51 by SaEt9000.)
find quote
Koying Online
Team-Kodi Member
Posts: 2,132
Joined: Sep 2008
Reputation: 44
Location: Brussels, Belgium
Post: #1420
A logcat, i.e. a crash log, is needed, please. We cannot debug crashes with the xbmc log only.
find quote
SaEt9000 Offline
Member
Posts: 59
Joined: Mar 2014
Reputation: 0
Post: #1421
ok - as I can see, I need therefore an other app...

in between I copied an other log:
http://xbmclogs.com/show.php?id=183131

libstagefright is activated:
what I did:

startet der kleine Pinzr_xy.ts - everything ok
then: started arrow_s01e01.mkv - everything ok. CPU-usage never more then 40%.
then: started arrow_s01e02.ts - stopped after some frames.
then: started Matrx Revolutions.iso - in slow motion (up to 13 fps) CPU-usage over 100%.

thank you.
SaEt9000
find quote
Kanst Offline
Junior Member
Posts: 7
Joined: Apr 2014
Reputation: 0
Post: #1422
Koying
Can you say anything else about problems with my device?
I has all previous problems on xbmc-20140419-51d4cbd-Gotham-armeabi-v7a.apk too (freese and crash on 1080 with libstagefright, greenscreens on non-mpeg2 with mediacodec)
Or may be I must go to MediaCodec's tread and forget about libstagefright support?
find quote
micahg Offline
Senior Member
Posts: 142
Joined: Sep 2011
Reputation: 1
Post: #1423
Hello Everyone,

I just tried beta 4 on my Mele M8 box (A31 chipset). Mediacodec is still busted fully and completely (same theme background screen with audio). However, using stagefreight some of the files that previously didn't play now do. The 10s 720@60p clip plays perfectly, so went on to try an episode of homeland. It plays the first 10s of video and maybe the first 14 seconds of audio before the video locks up. If I bring up the OSD, the video is locked at 10s.

Unlike the other problems described, the video freeze doesn't seem to be consistent between videos. One freezes three seconds in, another at 10, one played through (but was only 10 seconds long).

Big buck bunny at 720p plays all the way through - no issues. Seeking is good too.

Anyway, I'm thrilled with the progress and would be glad to help any way i can. My logs are here: http://xbmclogs.com/show.php?id=183906

Also, as mentioned before, all files play fine with mx player.

Edit: this logs has more of the same in case it helps: http://xbmclogs.com/show.php?id=183906 - the last hls stream here plays to about 17 seconds.
(This post was last modified: 2014-04-23 14:13 by micahg.)
find quote
atv2jber Offline
Member
Posts: 92
Joined: Jun 2012
Reputation: 1
Post: #1424
Hi,

What is the state of devices with the RK3188 chipset? I'm looking at the ATV580. Will Gotham use hardware acceleration on this platform?

Regards.
find quote
SaEt9000 Offline
Member
Posts: 59
Joined: Mar 2014
Reputation: 0
Post: #1425
Hi,

i know - i ask my question not for the first time... I have some HD-videos stopping after some frames by using HW-accellaration, libstagefrigth.
please take a look at this part of xbmc.log:

I think the most important mesage is this: 20:05:23 T:1752806400 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1125653.375000, should be:1003667.130299, error:-121986.244701
20:05:25 T:1752806400 DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:3008763.005299, should be:2977246.912698, error:-31516.092601
20:05:26 T:1742325616 ERROR: CStageFrightVideo - decoding error (-110)
20:05:31 T:1678302088 ERROR: Previous line repeats 1 times.

The video stops in this moment. What can I do?

Thank you SaET9000

here is the longer part of xbmc.log:

20:05:22 T:1717266512 DEBUG: CDVDPlayer::HandleMessages - player started 1
20:05:22 T:1528444712 DEBUG: CGUIInfoManager::SetCurrentMovie(/mnt/sda/sda2/video/KINDER/FILME/Die drei Fragezeichen - Das Geheimnis der Geisterinsel.mkv)
20:05:22 T:1528444712 DEBUG: int CVideoDatabase::GetMovieId(const CStdString&) (/mnt/sda/sda2/video/KINDER/FILME/Die drei Fragezeichen - Das Geheimnis der Geisterinsel.mkv), query = select idMovie from movie where idFile=1807
20:05:22 T:1528444712 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
20:05:22 T:1528444712 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
20:05:22 T:1528444712 DEBUG: Activating window ID: 12005
20:05:22 T:1528444712 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
20:05:22 T:1528444712 DEBUG: ------ Window Init (VideoFullScreen.xml) ------
20:05:22 T:1528444712 DEBUG: Window VideoFullScreen.xml was already loaded
20:05:22 T:1528444712 DEBUG: Alloc resources: 0.38m
20:05:22 T:1717266512 DEBUG: CDVDPlayer::SetCaching - caching state 0
20:05:22 T:1752806400 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:201141.833000, should be:232000.000000, error:30858.167000
20:05:22 T:1528444712 NOTICE: Using GL_TEXTURE_2D
20:05:22 T:1528444712 DEBUG: GL: Requested render method: 0
20:05:22 T:1528444712 NOTICE: GL: Using EGL Image render method
20:05:22 T:1528444712 NOTICE: GL: NPOT texture support detected
20:05:22 T:1717266512 DEBUG: CDVDPlayer::HandleMessages - player started 2
20:05:22 T:1528444712 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
20:05:22 T:1678302088 DEBUG: script.videolanguage: finished
20:05:22 T:1678302088 INFO: CPythonInvoker(22, /mnt/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/addons/script.videolanguage/default.py): script successfully run
20:05:23 T:1678302088 INFO: Python script stopped
20:05:23 T:1678302088 DEBUG: Thread LanguageInvoker 1678302088 terminating
20:05:23 T:1752806400 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1125653.375000, should be:1003667.130299, error:-121986.244701
20:05:25 T:1752806400 DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:3008763.005299, should be:2977246.912698, error:-31516.092601
20:05:26 T:1742325616 ERROR: CStageFrightVideo - decoding error (-110)
20:05:31 T:1678302088 ERROR: Previous line repeats 1 times.
20:05:31 T:1678302088 NOTICE: Thread Timer start, auto delete: false
20:05:31 T:1678302088 DEBUG: Thread Timer 1678302088 terminating
20:05:32 T:1528444712 DEBUG: ------ Window Init (VideoOSD.xml) ------
20:05:32 T:1528444712 DEBUG: Window VideoOSD.xml was already loaded
20:05:32 T:1528444712 DEBUG: Alloc resources: 6.54m
20:05:32 T:1528444712 DEBUG: Unfocus WindowID: 12901, ControlID: 100
20:05:32 T:1752806400 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
20:05:32 T:1742325616 ERROR: CStageFrightVideo - decoding error (-110)
20:05:33 T:1752806400 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:10793192.038698, should be:10587678.957673, error:-205513.081024
20:05:33 T:1752806400 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
20:05:35 T:1742325616 ERROR: CStageFrightVideo - decoding error (-110)
20:05:40 T:1528444712 ERROR: Previous line repeats 1 times.
20:05:40 T:1528444712 DEBUG: ------ Window Deinit (VideoOSD.xml) ------
20:05:41 T:1742325616 ERROR: CStageFrightVideo - decoding error (-110)
20:05:45 T:1749080376 ERROR: Previous line repeats 1 times.
20:05:45 T:1749080376 DEBUG: Thread JobWorker 1749080376 terminating (autodelete)
20:05:46 T:1699259584 DEBUG: Thread JobWorker 1699259584 terminating (autodelete)
20:05:47 T:1742325616 ERROR: CStageFrightVideo - decoding error (-110)
20:05:49 T:1714837728 NOTICE: Thread Timer start, auto delete: false
20:05:49 T:1714837728 DEBUG: Thread Timer 1714837728 terminating
find quote
Post Reply