Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read raw streams from HDMI inputs in android box

Tags:

android

I am writing an app for android boxes (not Android TV), that have HDMI input port. How do I read raw video stream from HDMI input and display it in android videoView ?

The Android boxes I am using have Amlogic processors. It uses API level 19 (Android 4.4) and above.

like image 744
jay Avatar asked Sep 20 '16 05:09

jay


1 Answers

Well, it's not straightforward. You would need a modified kernel to detect and interface with the HDMI device. To get the HDMI input data from the device itself you'll need to write NDK code. Then after modifying the input data into an appropriate format which is compatible, such as encoding it to H264, you'll be able to feed it into a VideoView.

See this thread for someone who did something similar, taking HDMI input on a Nexus 7

How to detect an HDMI connection on Android

like image 166
Faraz Avatar answered Oct 13 '22 09:10

Faraz