Thanks fritsch,
I am really grateful for your replies.
I understand that the s/w decoder is kicking in, but that first stream was unplayable with RC2 but with that build you linked to, it's improved a lot to the point where it's almost perfect (still high CPU but not fully saturated)
What's interesting though is that I have another Fire TV in the house (a "stick" with 2 CPU rather than the 4k "box" with 4) running Jarvis (16.1 Git:2016-04-24-c327c53) and all of the channels from TVH stream perfectly.
http://paste.ubuntu.com/23738582/
Stream starts at 11:58:38 which appears to use h/w decoder as the cpu usage is low at around 40-50% and it is perfectly smooth on the screen.
This is from the same TVH backend server.
Any thoughts? Is this a consequence of the refactored Video Player in Krypton?
Cheers
Mark
Here are a couple of snippets of the 2 different versions attempting the same stream.
1. From Jarvis (working)
Code:
11:58:40 T:1105464144 DEBUG: CActiveAESink::OpenSink - AUDIOTRACK Initialized:
11:58:40 T:1105464144 DEBUG: Output Device : android
11:58:40 T:1105464144 DEBUG: Sample Rate : 48000
11:58:41 T:1105464144 DEBUG: Sample Format : AE_FMT_S16NE
11:58:41 T:1105464144 DEBUG: Channel Count : 2
11:58:41 T:1105464144 DEBUG: Channel Layout: FL,FR
11:58:41 T:1105464144 DEBUG: Frames : 1440
11:58:41 T:1105464144 DEBUG: Frame Samples : 2880
11:58:41 T:1105464144 DEBUG: Frame Size : 4
11:58:41 T:1105065408 DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
11:58:41 T:1412587856 ERROR: CDVDVideoCodecAndroidMediaCodec::ExceptionCheck: configure
11:58:41 T:1412587856 DEBUG: FactoryCodec - Video: amc-h264(S) - Failed
11:58:41 T:1412587856 INFO: MediaCodec Video Decoder...
11:58:41 T:1412587856 DEBUG: FactoryCodec - Video: mediacodec - Opening
11:58:41 T:1412587856 INFO: CBitstreamConverter::Open Invalid avcC
11:58:41 T:1412587856 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.brcm.video.hw.decoder), colorFormat(2135033992)
11:58:41 T:1412587856 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.brcm.video.hw.decoder), colorFormat(19)
11:58:41 T:1412587856 DEBUG: CDVDVideoCodecAndroidMediaCodec:: width(1920), height(1080), stride(0), slice-height(0), color-format(0)
11:58:41 T:1412587856 DEBUG: CDVDVideoCodecAndroidMediaCodec:: crop-left(0), crop-top(0), crop-right(0), crop-bottom(0)
11:58:41 T:1412587856 DEBUG: CDVDVideoCodecAndroidMediaCodec:: Direct Surface Rendering
11:58:41 T:1412587856 INFO: CDVDVideoCodecAndroidMediaCodec:: Open Android MediaCodec OMX.brcm.video.hw.decoder
11:58:41 T:1412587856 DEBUG: FactoryCodec - Video: amc-h264 - Opened
11:58:41 T:1412587856 DEBUG: CDVDPlayer::HandleMessages - player started 1
2. From Krypton (not working)
Code:
11:28:54.926 T:18446744072289985536 DEBUG: CActiveAESink::OpenSink - AUDIOTRACK Initialized:
11:28:54.926 T:18446744072289985536 DEBUG: Output Device : android
11:28:54.927 T:18446744072289985536 DEBUG: Sample Rate : 48000
11:28:54.927 T:18446744072289985536 DEBUG: Sample Format : AE_FMT_FLOAT
11:28:54.927 T:18446744072289985536 DEBUG: Channel Count : 2
11:28:54.927 T:18446744072289985536 DEBUG: Channel Layout: FL,FR
11:28:54.927 T:18446744072289985536 DEBUG: Frames : 4096
11:28:54.927 T:18446744072289985536 DEBUG: Frame Size : 8
11:28:54.937 T:18446744072290024864 DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
11:28:54.943 T:18446744072302474592 DEBUG: Previous line repeats 1 times.
11:28:54.943 T:18446744072302474592 NOTICE: Creating video codec with codec id: 28
11:28:54.945 T:18446744072302474592 DEBUG: FactoryCodec - Video: mediacodec - Opening
11:28:54.945 T:18446744072302474592 INFO: CBitstreamConverter::Open Invalid avcC
11:28:54.953 T:18446744072328554800 DEBUG: CVideoPlayer::HandleMessages - player started 1
11:28:54.960 T:18446744072302474592 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.MTK.VIDEO.DECODER.AVC), colorFormat(19)
11:28:54.961 T:18446744072302474592 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.MTK.VIDEO.DECODER.AVC), colorFormat(2135033992)
11:28:54.961 T:18446744072302474592 DEBUG: CDVDVideoCodecAndroidMediaCodec::Open m_codecname(OMX.MTK.VIDEO.DECODER.AVC), colorFormat(2130706433)
11:28:54.975 T:18446744072302474592 ERROR: CDVDVideoCodecAndroidMediaCodec::ExceptionCheck: configure
11:28:54.975 T:18446744072302474592 DEBUG: FactoryCodec - Video: amc-h264 - Failed
11:28:54.975 T:18446744072302474592 DEBUG: FactoryCodec - Video: - Opening
11:28:54.975 T:18446744072302474592 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
11:28:54.976 T:18446744072302474592 DEBUG: CDVDVideoCodecFFmpeg - open frame threaded with 6 threads
11:28:54.978 T:18446744072302474592 DEBUG: CDVDVideoCodecFFmpeg - Updated codec: ff-h264
11:28:54.978 T:18446744072302474592 DEBUG: FactoryCodec - Video: ff-h264 - Opened
(I am a software developer by trade (Java) so I'd love to help resolve this.)