Hi there,
I am hoping someone can help me. Maybe @fritsch
I am aware that there have been various threads posted on a similar subject and some test builds which are supposed to fix a similar issue, however these test builds don’t seem to work for me.
My setup:
h/w: Xiaomi Mi box 3 (Xiaomi_Mi_Box (wiki))
tvheadend: 4.3-32~g696e17d51
kodi: 7.1 from Google Play (although i have tried various versions of kodi/spin offs)
Symptoms:
Videos play perfectly fine for me – log https://pastebin.com/tfVpWkEL
Live TV does not seem to play with Android Media Codec – log https://pastebin.com/C6ukLNzW
Recorded TV plays the same – no Android Media Codec playback
As a result the image scaling seems bad and playback judders.
My intel based libreelec system plays the tvheadend content fine.
Here is a link to a sample video – https://drive.google.com/open?id=0B87WYQ…DZNV21nWTQ
Is there anything else i can provide?
I have tried the following build which also have the same result:
kodi-20170411-91c472b-notsoshitty-armeabi-v7a
kodi-20170107-2cda76f-mediacodec-armeabi-v7a
SPMC (latest)
log snip:
Working video via emby
14:41:26.291 T:18446744072803580192 DEBUG: CDVDDemuxFFmpeg::AddStream ID: 0
14:41:26.291 T:18446744072803580192 DEBUG: CDVDDemuxFFmpeg::AddStream ID: 1
14:41:26.292 T:18446744072803580192 DEBUG: CDVDInputStreamFile::SetReadRate - set cache throttle rate to 1446014 bytes per second
14:41:26.292 T:18446744072803580192 NOTICE: Opening stream: 0 source: 256
14:41:26.292 T:18446744072803580192 NOTICE: Creating video codec with codec id: 28
14:41:26.293 T:18446744072803580192 DEBUG: FactoryCodec - Video: mediacodec - Opening
14:41:26.293 T:18446744072803580192 INFO: CBitstreamConverter::Open bitstream to annexb init
14:41:26.460 T:18446744073339930912 DEBUG: ------ Window Init (DialogBusy.xml) ------
14:41:26.535 T:18446744072803580192 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.amlogic.avc.decoder.awesome), colorFormat(2135033992)
14:41:26.535 T:18446744072803580192 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.amlogic.avc.decoder.awesome), colorFormat(21)
14:41:26.615 T:18446744072803580192 DEBUG: CDVDVideoCodecAndroidMediaCodec:: width(1920), height(808), stride(0), slice-height(0), color-format(0)
14:41:26.616 T:18446744072803580192 DEBUG: CDVDVideoCodecAndroidMediaCodec:: crop-left(0), crop-top(0), crop-right(0), crop-bottom(0)
14:41:26.616 T:18446744072803580192 DEBUG: CDVDVideoCodecAndroidMediaCodec:: Multi-Surface Rendering
14:41:26.616 T:18446744072803580192 INFO: CDVDVideoCodecAndroidMediaCodec:: Open Android MediaCodec OMX.amlogic.avc.decoder.awesome
14:41:26.616 T:18446744072803580192 DEBUG: FactoryCodec - Video: amc-h264 - Opened
14:41:26.616 T:18446744072803580192 DEBUG: CVideoPlayerVideo::OpenStream - open stream with codec id: 28
14:41:26.616 T:18446744072803580192 NOTICE: Creating video thread
non working tv via tvheadned
11:11:45.621 T:18446744072793975072 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux subscription start
11:11:45.624 T:18446744072793975072 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - id: 1, type H264, codec: 28
11:11:45.625 T:18446744072793975072 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux subscription start
11:11:45.625 T:18446744072793975072 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - id: 2, type AAC, codec: 86018
11:11:45.625 T:18446744072793975072 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux subscription start
11:11:45.625 T:18446744072793975072 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - id: 3, type DVBSUB, codec: 94209
11:11:45.626 T:18446744072793975072 DEBUG: AddOnLog: Tvheadend HTSP Client: pvr.hts - demux stream change
11:11:45.626 T:18446744072726870304 DEBUG: CDVDDemuxClient::RequestStreams(): added/updated stream 1 with codec_id 28
11:11:45.627 T:18446744072726870304 DEBUG: CDVDDemuxClient::RequestStreams(): added/updated stream 2 with codec_id 86018
11:11:45.627 T:18446744072726870304 DEBUG: CDVDDemuxClient::RequestStreams(): added/updated stream 3 with codec_id 94209
11:11:45.628 T:18446744072726870304 NOTICE: Opening stream: 1 source: 256
11:11:45.628 T:18446744072726870304 NOTICE: Creating video codec with codec id: 28
11:11:45.628 T:18446744072726870304 DEBUG: FactoryCodec - Video: mediacodec - Opening
11:11:45.628 T:18446744072726870304 WARNING: CDVDVideoCodecAndroidMediaCodec::Open - No extradata found
11:11:45.628 T:18446744072726870304 DEBUG: FactoryCodec - Video: amc-h264 - Failed
11:11:45.628 T:18446744072726870304 INFO: CVideoPlayerVideo::OpenStream - could not open video codec
11:11:45.628 T:18446744072726870304 DEBUG: CVideoPlayerVideo::OpenStream - open stream with codec id: 28
11:11:45.629 T:18446744072726870304 NOTICE: Creating video codec with codec id: 28
11:11:45.629 T:18446744072726870304 DEBUG: FactoryCodec - Video: mediacodec - Opening
11:11:45.629 T:18446744072726870304 WARNING: CDVDVideoCodecAndroidMediaCodec::Open - No extradata found
11:11:45.629 T:18446744072726870304 DEBUG: FactoryCodec - Video: amc-h264 - Failed
11:11:45.629 T:18446744072726870304 DEBUG: FactoryCodec - Video: - Opening
11:11:45.629 T:18446744072726870304 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
11:11:45.629 T:18446744072726870304 DEBUG: CDVDVideoCodecFFmpeg - open frame threaded with 6 threads
11:11:45.636 T:18446744072726870304 DEBUG: CDVDVideoCodecFFmpeg - Updated codec: ff-h264
11:11:45.636 T:18446744072726870304 DEBUG: FactoryCodec - Video: ff-h264 - Opened
11:11:45.637 T:18446744072726870304 NOTICE: Creating video thread
11:11:45.637 T:18446744072726870304 NOTICE: Opening stream: 2 source: 256
11:11:45.637 T:18446744072726870304 NOTICE: Finding audio codec for: 86018
11:11:45.637 T:18446744072726870304 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
11:11:45.641 T:18446744072726870304 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
11:11:45.643 T:18446744072726870304 NOTICE: Creating audio thread
11:11:45.643 T:18446744072726870304 NOTICE: Opening stream: 3 source: 256
11:11:45.644 T:18446744072726870304 DEBUG: FactoryCodec - Overlay: FFmpeg Subtitle Decoder - Opening
11:11:45.644 T:18446744072726870304 DEBUG: FactoryCodec - Overlay: FFmpeg Subtitle Decoder - Opened
11:11:45.646 T:18446744072639494432 DEBUG: Thread VideoPlayerAudio start, auto delete: false
11:11:45.646 T:18446744072639494432 NOTICE: running thread: CVideoPlayerAudio::Process()
11:11:45.646 T:18446744072639494432 DEBUG: CDVDAudio::Pause - pausing audio stream
11:11:45.655 T:18446744072640538912 DEBUG: Thread VideoPlayerVideo start, auto delete: false
11:11:45.656 T:18446744072640538912 NOTICE: running thread: video_thread
11:11:45.658 T:18446744072639494432 DEBUG: CVideoPlayerAudio: Sample rate changed, checking for passthrough
11:11:45.658 T:18446744072639494432 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
11:11:45.660 T:18446744072639494432 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
11:11:45.660 T:18446744072639494432 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
11:11:45.661 T:18446744072639494432 DEBUG: CVideoPlayerAudio:: synctype set to 1: resample
11:11:45.668 T:18446744072726870304 DEBUG: ffmpeg[C56D7920]: [h264] ct_type:0 pic_struct:3
11:11:45.670 T:18446744072726870304 DEBUG: CDVDDemuxClient::ParsePacket - {1} profile changed from -99 to 100
11:11:45.670 T:18446744072726870304 DEBUG: CDVDDemuxClient::ParsePacket - {1} level changed from -99 to 40
11:11:45.670 T:18446744072726870304 NOTICE: Opening stream: 1 source: 256
11:11:45.670 T:18446744072726870304 NOTICE: Creating video codec with codec id: 28
11:11:45.671 T:18446744072726870304 DEBUG: FactoryCodec - Video: mediacodec - Opening
11:11:45.671 T:18446744072726870304 INFO: CBitstreamConverter::Open Invalid avcC
11:11:45.709 T:18446744072994806048 INFO: CActiveAESink::OpenSink - initialize sink
11:11:45.709 T:18446744072994806048 DEBUG: Draining Audio
11:11:45.712 T:18446744072726870304 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.amlogic.avc.decoder.awesome), colorFormat(2135033992)
11:11:45.712 T:18446744072726870304 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.amlogic.avc.decoder.awesome), colorFormat(21)
11:11:45.714 T:18446744072994806048 DEBUG: CActiveAESink::OpenSink - trying to open device AUDIOTRACK:AudioTrack
11:11:45.714 T:18446744072994806048 DEBUG: CAESinkAUDIOTRACK::Initialize requested: sampleRate 48000; format: AE_FMT_FLOATP; channels: 2