GMU:Max Neupert/StreamGem2Android: Difference between revisions

From Medien Wiki
No edit summary
Line 27: Line 27:
Then run on the desktop:
Then run on the desktop:
<tt>ffmpeg -f x11grab -video_size wxga -r 25 -i :0.0 -f mpjpeg udp://192.168.1.2:5678</tt>
<tt>ffmpeg -f x11grab -video_size wxga -r 25 -i :0.0 -f mpjpeg udp://192.168.1.2:5678</tt>
===Gemwin remote host===
It's possible to open the Gemwwin on a remote host with the [remotehost( message to [gemwin] (see gemwin-help)
However, there is no further explanation of that feature and I haven't seen any discussion on pd-list or here about it.
I was wondering if that could work too. With an [https://f-droid.org/repository/browse/?fdfilter=x%20server&fdid=au.com.darkside.XServer X Server running on the Android].

Revision as of 21:35, 4 July 2017

Goal: Stream to Android

Goal: streaming the Gem-window of a Linux Desktop to a VR-headset running on an Android phone.

This page documents different possible approaches and hopefully will show how it's done when successful.

Unsucessful Approaches

Apps

If you are on Windows, you have some choices for apps:

Using x11vnc

Use the command xwininfo to find out the ID of the window to be shared, then use x11vnc -id {id number here} to share only one window to the vnc client.

However cardboard-vnc-free is doing too much. First of all, it controls the moise pointer on the server (as a VNC client should) but I don't need that. There is an option "Viewer" in the connection settings that will diable this and lower the latency from about 3 seconds to 1 second.

cardboard-vnc-free is also adding two viewports to the shared image, to fake a 3D. That's a show stopper, because I want to use the stereo mode in GEM.

udpvideo lite/ffmpeg

Since streaming to a VR-Headset with minimum latency is pretty much what you want with a live drone video this abandoned freeware app is doing exactly that: udpvideo lite

Then run on the desktop: ffmpeg -f x11grab -video_size wxga -r 25 -i :0.0 -f mpjpeg udp://192.168.1.2:5678

Gemwin remote host

It's possible to open the Gemwwin on a remote host with the [remotehost( message to [gemwin] (see gemwin-help) However, there is no further explanation of that feature and I haven't seen any discussion on pd-list or here about it. I was wondering if that could work too. With an X Server running on the Android.