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

About encoding, codec settings, muxers and filter usage
guinioul73
New Cone
New Cone
Posts: 4
Joined: 19 Aug 2005 04:05

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

Postby guinioul73 » 10 Jan 2012 12:51

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 ^_^)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 10 Jan 2012 13:01

use screen:// in vlc.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 10 Jan 2012 13:08

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

guinioul73
New Cone
New Cone
Posts: 4
Joined: 19 Aug 2005 04:05

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

Postby guinioul73 » 10 Jan 2012 21:26

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 :-)

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 11 Jan 2012 08:27

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests