Kodi Community Forum

Full Version: Interlaced H.264 decoding issue with MediaCodec on Android
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I have tried playing a couple of 1080i H.264 sources on 3 different Android devices. All three devices render videos in significantly reduced resolution when MediaCodec is selected for hardware decoding. Dragonboard 410c seems to do better than others, but still degradation is clearly visible. This doesn't happen with 1080p sources by the way. Also, amcodec can render the 1080i videos properly. PCs also play them fine. So I believe the video sources are fine. Is this a known thing with MediaCodec? Any work around?

KODI version: 16.1 Jarvis on all 3 devices

Devices:
1. Dragonboard 410c (Qualcomm Snapdragon 410c) Android 5.1.1
2. Tronsmart Vega S95 Pro (Amlogic S905) Android 5.1.1
3. Geekbox (Rockchip RK3368) Android 6.0.1

Video source 1 (static video): https://drive.google.com/open?id=0B0Afdp...XNQRGlKM1k
Video source 2: http://www.avsforum.com/forum/26-home-th...st16900173

Crop from good output on PC: https://drive.google.com/open?id=0B0Afdp...FNPdEk0c3M
Crop from bad output using MediaCodec on S95 Pro: https://drive.google.com/open?id=0B0Afdp...lN5R0lQb0U

Thanks.
MediaCodec and h264 interlaced is hit or miss depending on vender implementation. Seems Google forgot about interlaced h264 when they designed the MediaCodec API.
Thanks.

That's a bummer. If I remember correctly, MediaCodec has been there since since Jelly Bean which came out almost 4 years ago..
Yep and and it is designed to handle progressive content only. just look at the stated formats that is handles.