<div dir="auto"><div dir="auto" style="font-family:sans-serif;font-size:13.696px">Hi,<div dir="auto"><br></div><div dir="auto">I was thinking about a solution to stream Gem output to network device for a while</div><div dir="auto">And the solution that came up to my mind is to render in a frame buffer and send the texture to a GPU  video encoder like nvenc then download the encoded frame to the RAM and stream it. </div><div dir="auto"><br></div><div dir="auto">This would be much more efficient than direct screen grabbing.</div><div dir="auto"><br></div><div dir="auto">Unfortunately I didn't take the time to implement this for now. </div><div dir="auto">Some vnc server use hardware compression but I don't know one on Linux.</div><div dir="auto"><br></div><div dir="auto">Best</div><font color="#888888"></font><div dir="auto"><br></div><div dir="auto">A</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">Le 3 avr. 2017 9:08 PM, "Benjamin ~ b01" <<a href="mailto:benjah@free.fr">benjah@free.fr</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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 will need<br>
>> A VNC server on my Linux computer which allows me to send the content of<br>
>> the GEM window only.<br>
><br>
> Note to self and anyone searching this some day: this works with 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 stream<br>
>> that is sent by the computer via Pd/Gem and some way to cast the 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/<wbr>v4l2loopback</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> <<a href="http://trinusvirtualreality.com" rel="noreferrer" target="_blank">http://trinusvirtualreality.<wbr>com</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 good luck<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.<wbr>tantransha.<wbr>cardboardremotedesktop.lite&<wbr>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/<wbr>cardboard-vnc-free/</a><br>
>>><br>
>>> On Fri, Mar 31, 2017 at 8:34 PM, Max <<a href="mailto:abonnements@revolwear.com">abonnements@revolwear.com</a><br>
>>> <mailto:<a href="mailto:abonnements@revolwear.com">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_<wbr>streamer.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>
>>><br>
>>>     Any ideas about this?<br>
>>><br>
>>>     m.<br>
><br>
> ______________________________<wbr>_________________<br>
> GEM-dev mailing list<br>
> <a href="mailto:GEM-dev@lists.iem.at">GEM-dev@lists.iem.at</a><br>
> <a href="https://lists.puredata.info/listinfo/gem-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/gem-dev</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
GEM-dev mailing list<br>
<a href="mailto:GEM-dev@lists.iem.at">GEM-dev@lists.iem.at</a><br>
<a href="https://lists.puredata.info/listinfo/gem-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/gem-dev</a><br>
</blockquote></div></div>