Page 1 of 1

Ubuntu, stream the Xserver (display:0) to a distant host ?

Posted: 10 Jan 2012 12:51
by guinioul73
Hello !

I wondered, if possible it was, to use vlc to stream the display:0 (of the local machine) to a distant "far.away" host ?
I tried X11vnc (but on the other sense, displayer is controlled from "far away") but it is really really slow :-/ . It work but it is hard to use (scrolling a video for example) .

So I thinked to try with vlc ;-)
the "distant" host will be a notebook displaying on a TV (to play movies and youtube videos on a big screen ! using wifi ! cableless, yeah !) .

By now I don't have any idea where to begins searchs, and even how to stream just an .avi file; but I can read the --please stay polite-- manual so if somebody want to provide me any help it would be really nice :-) .

The "streamer" is a C2D laptop and the "displayer" is a ULV pentiumM linked to a TV (an old one, so defintion can even be 800x600) .
This system is for my girlfriend who never use the "vga to tv" adapter she asked me (to many many wires to connect, and too many parameters to set up to get the image) . I hope a static wifi system controlled from its laptop simply displaying on the tv . Is that possible ?


The system is all Linux based (ubuntu 10.10 and ubuntu 11.10) .



Thanks by advance for your help :-) .

(My english may not be perfect, I learned it at school, and, with subtitled tv-shows ^_^)

Re: Ubuntu, stream the Xserver (display:0) to a distant host

Posted: 10 Jan 2012 13:01
by Jean-Baptiste Kempf
use screen:// in vlc.

Re: Ubuntu, stream the Xserver (display:0) to a distant host

Posted: 10 Jan 2012 13:08
by Rémi Denis-Courmont
Streaming captured screen is a really really bad idea. This is inefficient as hell. The frame rate will be low regardless of what software you use, remote desktop (like VNC) or streaming (like VLC).

If you want to stream video, stream the video file directly.

Re: Ubuntu, stream the Xserver (display:0) to a distant host

Posted: 10 Jan 2012 21:26
by guinioul73
use screen:// in vlc.
hello,

how does it work ?
If you want to stream video, stream the video file directly.
Hello,

ok, so, I think I will use both VLC (to stream local files to "far.away") and VNC (to play youtube vidéos on "far.away" controlled by the local machine) . Is that good method or should I use dlna (for example) ?

But one question :
Why transmitting display:0 is so laggy/complicated ?
I don't understand . A 800x600 video can be streamed without problem over 54Mb wifi, but not the display:0 at same definition ?

Thanks again :-)

Re: Ubuntu, stream the Xserver (display:0) to a distant host

Posted: 11 Jan 2012 08:27
by Rémi Denis-Courmont
Streaming the screen content is slow because the graphic memory is optimized to be written by applications, not read by them. On top of that, the captured video must be encoded for compression, which is a CPU-intensive task.