Page 1 of 1

VLC screen capture input plugin

Posted: 06 Sep 2004 13:21
by ilcomi
How can I use the new feauture screen capture pluging ready in version 0.8 of VLC?
Can someone post the example code to start it?
Thanks

Posted: 06 Sep 2004 13:33
by markfm
to see VLC's options, command line, enter:
vlc --longhelp --advanced

To make it the input device:
screen:// Screen capture

Controls:
--screen-caching <integer> Caching value in ms
--screen-fps <float> Frame rate
--screen-fragment-size <integer>
Capture fragment size

To start, try a small value for fps, say 1 or 2. Try a fragment-size of 16 for VLC to perform the capture as 16 sub-frames (divides your screen into a 4x4 grid to perform captures on).

Under Windows, screen capture is more painful than Linux, definitely takes a decent CPU and you want to keep fps low. For training type applications, or logging operator actions, excellent, but not something you would use to do real-time streaming of a video game being played on the PC.

Posted: 07 Sep 2004 09:58
by ilcomi
Thanks, now works but I can't stream over UDP multicast in TS mode?
I can stream only by transcoding but the signal and the quality is very poor.
Is my error or is screen:// stream that can't be better for the moment.

However is good feature to implement.

Posted: 07 Sep 2004 16:41
by The DJ
You need to transcode, because the captured video is unencoded, and you cannot stream unencoded video. It would be extremely network intensive.

Also the quality of the screen: method isn't that fast, becaus it takes a long time to capture the whole screen.