compile kodi 14.2 with libstagefritght
#1
I'm trying to compile kodi with libstagefritght , I could compile ffmpeg with libstagefright , all dependencies of tools / depends are successfully compiled , when I try to compile the kodi to make, gives the error below :

CPP xbmc/video/FFmpegVideoDecoder.o
AR xbmc/video/video.a
LD libkodi.so
/opt/xbmc-depends/arm-linux-androideabi-android-15/lib/libavcodec.a(libstagefright.o):libstagefright.cpp:function decode_thread(void*): error: undefined reference to 'android::MediaBuffer::release()'
/opt/xbmc-depends/arm-linux-androideabi-android-15/lib/libavcodec.a(libstagefright.o):libstagefright.cpp:function decode_thread(void*): error: undefined reference to 'android::MetaData::findInt32(unsigned int, int*)'
Reply
#2
Don't enable the ffmpeg stagefright. We have our own implementation.
Reply
#3
(2015-05-07, 08:02)Koying Wrote: Don't enable the ffmpeg stagefright. We have our own implementation.

I generated with kodi of libstagefright only and the video was in slow motion , looks the log below:



07:47:45 T:33684264 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
07:47:45 T:50514704 DEBUG: bool CDVDDemuxFFmpeg::Open(CDVDInputStream*, bool, bool) - av_find_stream_info finished
07:47:45 T:50514704 DEBUG: CDVDInputStreamFile::SetReadRate - set cache throttle rate to 495530 bytes per second
07:47:45 T:50514704 NOTICE: Opening stream: 0 source: 256
07:47:45 T:50514704 NOTICE: Creating video codec with codec id: 28
07:47:45 T:50514704 DEBUG: CDVDFactoryCodec: compiled in hardware support: AMCodec:yes MediaCodec:yes OpenMax:no libstagefright:yes VDPAU:no VAAPI:no iMXVPU:no
07:47:45 T:50514704 DEBUG: FactoryCodec - Video: stf-xxxx - Opening
07:47:45 T:50514704 DEBUG: CDVDVideoCodecStageFright::virtual bool CDVDVideoCodecStageFright::Open(CDVDStreamInfo&, CDVDCodecOptions&) - trying to open, codec(28), profile(100), level(31)
07:47:45 T:50514704 INFO: CBitstreamConverter::Open bitstream to annexb init
07:47:45 T:50514704 DEBUG: SECTION:LoadDLL(libXBMCvcodec_stagefrightICS-arm.so)
07:47:45 T:50514704 DEBUG: Loading: /data/data/org.xbmc.kodi/lib/libXBMCvcodec_stagefrightICS-arm.so
07:47:46 T:50514704 ERROR: CDVDVideoCodecStageFright::virtual bool CDVDVideoCodecStageFright::Open(CDVDStreamInfo&, CDVDCodecOptions&) - failed to open, codec(28), profile(100), level(31)
07:47:46 T:50514704 DEBUG: FactoryCodec - Video: stf-h264 - Failed
07:47:46 T:50514704 DEBUG: FactoryCodec - Video: - Opening
07:47:46 T:50514704 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
07:47:46 T:50514704 DEBUG: CDVDVideoCodecFFmpeg::Open() Keeping default threading 3
07:47:46 T:50514704 DEBUG: FactoryCodec - Video: ff-h264 - Opened
07:47:46 T:50514704 NOTICE: Creating video thread
07:47:46 T:50514704 NOTICE: Opening stream: 1 source: 256
07:47:46 T:50514704 NOTICE: Finding audio codec for: 86018
07:47:46 T:50514704 DEBUG: FactoryCodec - Audio: passthrough - Opening
07:47:46 T:50514704 DEBUG: FactoryCodec - Audio: passthrough - Failed
07:47:46 T:50514704 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
07:47:46 T:44057720 NOTICE: Thread DVDPlayerVideo start, auto delete: false
07:47:46 T:44057720 NOTICE: running thread: video_thread
07:47:46 T:50514704 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
07:47:46 T:50514704 NOTICE: Creating audio thread
07:47:46 T:44057720 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
07:47:46 T:50514704 DEBUG: virtual void CApplication::OnPlayBackStarted(): play state was 1, starting 1
07:47:46 T:50514704 DEBUG: CDVDPlayer::SetCaching - caching state 1
07:47:46 T:50514704 DEBUG: CDVDPlayer::SetCaching - caching state 3
07:47:46 T:44057720 INFO: CDVDPlayerVideo - Stillframe left, switching to normal playback
07:47:46 T:46123656 NOTICE: Thread DVDPlayerAudio start, auto delete: false
07:47:46 T:46123656 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
07:47:46 T:46123656 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
07:47:46 T:46123656 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
07:47:46 T:46123656 DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
07:47:46 T:33684264 DEBUG: PlayBackRet CApplication:TonguelayFile(const CFileItem&, bool): OpenFile succeed, play state 2
07:47:46 T:33684264 DEBUG: virtual void CApplication::OnPlayBackStarted(): play state was 2, starting 0
07:47:46 T:34725664 INFO: CActiveAESink::OpenSink - initialize sink
07:47:46 T:34725664 DEBUG: CActiveAESink::OpenSink - trying to open device AUDIOTRACK:AudioTrack
07:47:46 T:34725664 DEBUG: CActiveAESink::OpenSink - AUDIOTRACK Initialized:
07:47:46 T:34725664 DEBUG: Output Device : android
07:47:46 T:34725664 DEBUG: Sample Rate : 48000
07:47:46 T:34725664 DEBUG: Sample Format : AE_FMT_S16NE
07:47:46 T:34725664 DEBUG: Channel Count : 2
07:47:46 T:34725664 DEBUG: Channel Layout: FL,FR
07:47:46 T:34725664 DEBUG: Frames : 2048
07:47:46 T:34725664 DEBUG: Frame Samples : 4096
07:47:46 T:34725664 DEBUG: Frame Size : 4
07:47:46 T:44057720 NOTICE: fps: 29.970030, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
07:47:46 T:44057720 DEBUG: int CDVDPlayerVideo::OutputPicture(const DVDVideoPicture*, double) - change configuration. 1280x720. framerate: 29.97. format: YV12
07:47:46 T:44057720 NOTICE: Display resolution DESKTOP : 1280x720 @ 60.00 - Full Screen (16)
07:47:46 T:44057720 DEBUG: CXBMCRenderManager::Configure - 3
07:47:46 T:34725280 DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
07:47:46 T:50514704 DEBUG: CDVDPlayer::HandleMessages - player started 1
07:47:46 T:33684264 NOTICE: Using GL_TEXTURE_2D
07:47:46 T:50514704 DEBUG: CDVDPlayer::SetCaching - caching state 0
07:47:46 T:46123656 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(23219.954649, 1)
07:47:46 T:46123656 DEBUG: CDVDClock:Big Griniscontinuity - CDVDPlayerAudio::HandleSyncError1 - was:-60115.642907, should be:-60111.158907, error:4.484000
07:47:46 T:44057720 DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(33366.666667, 1)
07:47:46 T:50514704 DEBUG: CDVDPlayer::HandleMessages - player started 2
07:47:46 T:33684264 DEBUG: GL: Requested render method: 0
07:47:46 T:33684264 DEBUG: GL: BaseYUV2RGBGLSLShader: defines:
#define XBMC_YV12
07:47:46 T:33684264 NOTICE: GL: Selecting Single Pass YUV 2 RGB shader
07:47:46 T:33684264 DEBUG: GL: Vertex Shader compilation log:
07:47:46 T:33684264 DEBUG: GL: Vertex Shader compiled successfully
07:47:46 T:33684264 DEBUG: GL: Pixel Shader compilation log:
07:47:46 T:33684264 DEBUG: GL: Fragment Shader compiled successfully
07:47:46 T:33684264 NOTICE: GL: NPOT texture support detected
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 1280 x 720
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 640 x 360
07:47:46 T:33684264 DEBUG: Previous line repeats 1 times.
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 1280 x 360
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 640 x 180
07:47:46 T:33684264 DEBUG: Previous line repeats 1 times.
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 1280 x 360
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 640 x 180
07:47:46 T:33684264 DEBUG: Previous line repeats 1 times.
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 1280 x 720
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 640 x 360
07:47:46 T:33684264 DEBUG: Previous line repeats 1 times.
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 1280 x 360
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 640 x 180
07:47:46 T:33684264 DEBUG: Previous line repeats 1 times.
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 1280 x 360
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 640 x 180
07:47:46 T:33684264 DEBUG: Previous line repeats 1 times.
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 1280 x 720
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 640 x 360
07:47:46 T:33684264 DEBUG: Previous line repeats 1 times.
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 1280 x 360
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 640 x 180
07:47:46 T:33684264 DEBUG: Previous line repeats 1 times.
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 1280 x 360
07:47:46 T:33684264 DEBUG: GL: Creating YUV NPOT texture of size 640 x 180
07:47:47 T:33684264 DEBUG: Previous line repeats 1 times.
07:47:47 T:33684264 DEBUG: CGUIInfoManager::SetCurrentMovie(https://r1---sn-uxaxh5g-bpbe.googlevideo...Fmp4&pl=19)
07:47:47 T:33684264 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
07:47:47 T:33684264 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
07:47:47 T:33684264 DEBUG: Activating window ID: 12005
07:47:47 T:33684264 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
07:47:47 T:33684264 DEBUG: ------ Window Init (VideoFullScreen.xml) ------
07:47:47 T:33684264 INFO: Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY
07:47:47 T:44057720 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
07:47:47 T:33684264 DEBUG: Load VideoFullScreen.xml: 235.47ms
07:47:47 T:33684264 DEBUG: Alloc resources: 237.63ms (236.77 ms skin load)
07:47:47 T:33684264 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
07:47:48 T:46123656 DEBUG: CDVDClock:Big Griniscontinuity - CDVDPlayerAudio::HandleSyncError2 - was:2012400.429000, should be:1938504.635408, error:-73895.793592
07:47:50 T:46123656 DEBUG: CDVDClock:Big Griniscontinuity - CDVDPlayerAudio::HandleSyncError2 - was:3941708.404408, should be:3925730.059375, error:-15978.345034
Reply
#4
I saw that the problem occurs for the codec 28 is mapped to stf-h264 and the mimetype is Video/AVC , this mimetype does not seem to exist on libXBMCvcodec_stagefrightICS-arm.so library
Any tips ?
Reply
#5
(2015-05-07, 08:02)Koying Wrote: Don't enable the ffmpeg stagefright. We have our own implementation.


Hi , using the implementation of libstagefright of you gives error when trying to use the STF - h264 codec.

Its help me understand why ?
Reply

Logout Mark Read Team Forum Stats Members Help
compile kodi 14.2 with libstagefritght0