Originally Posted by omni_angel7
This one goes out to the hardcore low-level android guys. I bow down to your awesomeness and mystique. I could really use a hand here... I promise I'll pay the knowledge forward!
Details in my StackOverflow post:
-Intercept Android video output via HDMI, MHL, etc.
-If possible, increase the resolution to 150% of the original width (see why below):
-(See image below) The left half of the external screen needs to adopt the left 3/4 of the chosen output resolution, while the right half needs to adopt the right 3/4 of the chosen output resolution.
Thanks so much guys!
Hmm, this is an interesting one.
I would be surprised (without doing some extremely gnarly low level mucking about with ROMs and perhaps even the devices themselves) if you can send anything out of the HDMI which isn't the output of the screen.
So I guess this leaves you with 2 options
1 - render the desired format on the device itself, so that it can be spat out of the HDMI output (by rendering the video twice, offset)
2 - find some other way to output it
May need a few more details about your environment here.
My guess is that ideally you would like to view the video as-normal on the device, plug your device into a big screen and have it do the strange double image thing (maybe for some 3D type experience?)
Somebody mentioned ffmpeg on your Stackoverflow post which I can confirm is the way to do it if you need to do your own video processing. Typically that's what the various video players on the Play store use.
Be warned that it is non trivial and will involve C/NDK rather than Java.
Even then though, you're probably looking at option (1), since (2) is likely to require some hardware plugged into the external screen I think.
I am wondering, if this is for video, whether you couldn't just play the video twice in 2 VideoViews offset / overlapped as required ?
Doesn't fix your resolution requirement and may have a few problems with speed/syncing but I think worth a try to start with.
An S4 is 1920*1080 so that's not terrible output quality for a big screen.