Android TV app for streaming HDMI input of Zidoo X9S and Zidoo X8 compatible TV boxes with ffmpeg.
/mnt/sdcard/
ffmpeg -i - -codec:v copy -codec:a copy -bsf:v dump_extra -f mpegts udp://[IP]:1234
ffmpeg -i - -strict -2 -codec:v copy -codec:a aac -b:a 128k -f flv rtmp://a.rtmp.youtube.com/live2/[Stream name/key]
Open in Android studio and compile as usual.
Thanks to danman.eu for ZidoStreamer, which this project is roughly based on.
Thanks to zidootech for VideoAndHdmiIN, which contained the needed libraries.