<div dir="ltr">concerning the remotehost message I think you are referring to [create remotehost:id( message right ?<div>this message let you choose the X display where to open the rendering window.</div><div><br></div><div>I'm using it when controlling patch over SSH, the patch GUI is displayed on my laptop somewhere in the world, while the rendering window is displayed on the local computer on which Pd is running.</div><div>I have to create the window with [create locahost:0( because on an SSH session with window forwarding (ssh -x or ssh -y) $DISPLAY env variable is defined to :10.</div><div>I don't know how to do the reverse (display patcher GUI on local computer and rendering window on remote one, in your case an android device)</div><div><br></div><div>I'm also using VirtualGL to display OpenGL accelerated window on a remote device for example to display rendering window on my laptop over SSH.</div><div>VIrtual GL is much more efficient than any VNC application I ever used (but I didn't try them all).</div><div>Unfortunately VirtualGL doesn't seem to work on Android.</div><div><br></div><div>Best </div><div><br></div><div>Antoine</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">--<br>do it yourself                       <br><a href="http://antoine.villeret.free.fr" target="_blank">http://antoine.villeret.free.fr</a><br></div></div>
<br><div class="gmail_quote">2017-04-04 10:14 GMT+02:00 Max <span dir="ltr"><<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you so much Antoine and Benjamin for those ideas, I'll try to get this running.<br>
<br>
I also saw that it's possible to open the Gemwwin on a remote host with the [remotehost( message to [gemwin] (see gemwin-help)<br>
However, there is no further explanation of that feature and I haven't seen any discussion on pd-list or here about it.<br>
I was wondering if that could work too. With an X Server running on the Android.<br>
<a href="https://f-droid.org/repository/browse/?fdfilter=x%20server&fdid=au.com.darkside.XServer" rel="noreferrer" target="_blank">https://f-droid.org/repository<wbr>/browse/?fdfilter=x%20server&<wbr>fdid=au.com.darkside.XServer</a><br>
<br>
Or am I missing something?<span class=""><br>
<br>
<br>
On 2017년 04월 04일 09:33, Antoine Villeret wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi,<br>
<br>
I was thinking about a solution to stream Gem output to network device<br>
for a while<br>
And the solution that came up to my mind is to render in a frame buffer<br>
and send the texture to a GPU  video encoder like nvenc then download<br>
the encoded frame to the RAM and stream it.<br>
<br>
This would be much more efficient than direct screen grabbing.<br>
<br>
Unfortunately I didn't take the time to implement this for now.<br>
Some vnc server use hardware compression but I don't know one on Linux.<br>
<br>
Best<br>
<br>
A<br>
<br>
Le 3 avr. 2017 9:08 PM, "Benjamin ~ b01" <<a href="mailto:benjah@free.fr" target="_blank">benjah@free.fr</a><br></span>
<mailto:<a href="mailto:benjah@free.fr" target="_blank">benjah@free.fr</a>>> a écrit :<div><div class="h5"><br>
<br>
    Hello,<br>
<br>
    Le 03/04/2017 à 18:50, Max a écrit :<br>
    > On 2017년 04월 02일 20:01, Max wrote:<br>
    >> Hi Alan,<br>
    >><br>
    >> that's interesting. I haven't thought about the VNC option. I<br>
    will need<br>
    >> A VNC server on my Linux computer which allows me to send the<br>
    content of<br>
    >> the GEM window only.<br>
    ><br>
    > Note to self and anyone searching this some day: this works with<br>
    x11vnc.<br>
    > Use the command xwininfo to find out the ID of the window to be<br>
    > shared, then use<br>
    > x11vnc -id {id number here}<br>
    > to share only one window to the vnc client.<br>
    ><br>
    > However cardboard-vnc-free is doing too much. First of all, it<br>
    > controls the moise pointer on the server (as a VNC client should) but<br>
    > I don't need that. There is an option "Viewer" in the connection<br>
    > settings that will diable this and lower the latency from about 3<br>
    > seconds to 1 second.<br>
    ><br>
    > cardboard-vnc-free is also adding two viewports to the shared image,<br>
    > to fake a 3D. That's a show stopper, because I want to use the stereo<br>
    > mode in GEM.<br>
    ><br>
    >> Another idea would be to use VLC on the android phone to open a<br>
    stream<br>
    >> that is sent by the computer via Pd/Gem and some way to cast the<br>
    stream.<br>
    ><br>
    > I think this is the way to go. It also has lower latency than a VNC<br>
    > connection.<br>
    ><br>
    > What's the best way to stream a GEM window, so that I can play this<br>
    > stream with VLC on the Android device?<br>
    I would say (if you are on linux) : use<br>
    <a href="https://github.com/umlaeute/v4l2loopback" rel="noreferrer" target="_blank">https://github.com/umlaeute/v4<wbr>l2loopback</a><br>
    <<a href="https://github.com/umlaeute/v4l2loopback" rel="noreferrer" target="_blank">https://github.com/umlaeute/v<wbr>4l2loopback</a>> to create a virtual v4l2<br>
    device, then it's possible to use pix_record eventually in conjonction<br>
    with pix_snap to shoot Gem window and write it to this virtual v4l2<br>
    device (on my computer, it would involve to send a [codec v4l2< message<br>
    to pix_record)<br>
    then you can stream to the Android device with ffmpeg fed by this v4l2<br>
    device and read it with vlc<br>
<br>
    also possible to grab the Gem screen with ffmpeg -f x11grab +options<br>
<br>
    ++<br>
    b<br>
    ><br>
    ><br>
    > M.<br>
    ><br>
    ><br>
    ><br>
    >> On 2017년 04월 01일 23:31, Alan Brooker wrote:<br>
    >>> Hey Max,<br>
    >>><br>
    >>> Recently I have been looking at this very subject, in the end using<br>
    >>> trinus vr (<a href="http://trinusvirtualreality.com" rel="noreferrer" target="_blank">trinusvirtualreality.com</a><br></div></div>
    <<a href="http://trinusvirtualreality.com" rel="noreferrer" target="_blank">http://trinusvirtualreality.c<wbr>om</a>> <<a href="http://trinusvirtualreality.com" rel="noreferrer" target="_blank">http://trinusvirtualreality.c<wbr>om</a><span class=""><br>
    <<a href="http://trinusvirtualreality.com" rel="noreferrer" target="_blank">http://trinusvirtualreality.c<wbr>om</a>>>)<br>
    >>>  on windows was the easiest solution for me<br>
    >>><br>
    >>>  I have tried something similar on linux (Fedora) but my problem was<br>
    >>> just getting my PC to actually connect with my phone- this would be<br>
    >>> trivial I assume for someone who is experienced setting up VNC<br>
    >>> connections/networking on Linux. So take a look at these and<br>
    good luck<br>
    >>><br>
    >>><br>
    <a href="https://play.google.com/store/apps/details?id=tantra.tantransha.cardboardremotedesktop.lite&hl=en" rel="noreferrer" target="_blank">https://play.google.com/store/<wbr>apps/details?id=tantra.tantran<wbr>sha.cardboardremotedesktop.<wbr>lite&hl=en</a><br></span>
    <<a href="https://play.google.com/store/apps/details?id=tantra.tantransha.cardboardremotedesktop.lite&hl=en" rel="noreferrer" target="_blank">https://play.google.com/store<wbr>/apps/details?id=tantra.tantra<wbr>nsha.cardboardremotedesktop.<wbr>lite&hl=en</a>><br>
    >>><br>
    >>><br>
    >>> <a href="http://www.vrbites.com/apps/cardboard-vnc-free/" rel="noreferrer" target="_blank">http://www.vrbites.com/apps/ca<wbr>rdboard-vnc-free/</a><span class=""><br>
    <<a href="http://www.vrbites.com/apps/cardboard-vnc-free/" rel="noreferrer" target="_blank">http://www.vrbites.com/apps/c<wbr>ardboard-vnc-free/</a>><br>
    >>><br>
    >>> On Fri, Mar 31, 2017 at 8:34 PM, Max <<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.com</a><br>
    <mailto:<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.<wbr>com</a>><br></span>
    >>> <mailto:<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.<wbr>com</a><span class=""><br>
    <mailto:<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.<wbr>com</a>>>> wrote:<br>
    >>><br>
    >>>     Hi list,<br>
    >>><br>
    >>>     I'm looking for a solution to use the gem output on an android<br>
    >>> phone<br>
    >>>     for vr.<br>
    >>><br>
    >>>     I found this app, but it is windows only, no linux host.<br>
    >>>     <a href="http://www.swatterco.com/vr_streamer.php" rel="noreferrer" target="_blank">http://www.swatterco.com/vr_s<wbr>treamer.php</a><br>
    <<a href="http://www.swatterco.com/vr_streamer.php" rel="noreferrer" target="_blank">http://www.swatterco.com/vr_s<wbr>treamer.php</a>><br>
    >>>     <<a href="http://www.swatterco.com/vr_streamer.php" rel="noreferrer" target="_blank">http://www.swatterco.com/vr_<wbr>streamer.php</a><br>
    <<a href="http://www.swatterco.com/vr_streamer.php" rel="noreferrer" target="_blank">http://www.swatterco.com/vr_s<wbr>treamer.php</a>>><br>
    >>><br>
    >>>     Any ideas about this?<br>
    >>><br>
    >>>     m.<br>
</span></blockquote>
</blockquote></div><br></div>