Page 1 of 1

screen:// paramters

Posted: 27 May 2008 22:20
by triplebit
I use Windows Xp and stream the screen with screen:// paramter. I would like to limit the area beeing captured and streamd to a certain place and also certain dimention and not just the whole svreen.
Is it possible and how?

Regards
Ramzi

Re: screen:// paramters

Posted: 27 May 2008 23:39
by Arite
Use the --sout-transcode-crop* parameters. From VLC's help output:

Code: Select all

--sout-transcode-croptop <integer> Video crop (top) Number of pixels to crop at the top of the video. --sout-transcode-cropleft <integer> Video crop (left) Number of pixels to crop at the left of the video. --sout-transcode-cropbottom <integer> Video crop (bottom) Number of pixels to crop at the bottom of the video. --sout-transcode-cropright <integer> Video crop (right) Number of pixels to crop at the right of the video.
Here is an example commandline:

Code: Select all

vlc screen:// --screen-fps 5 --sout-transcode-croptop 500 --sout-transcode-cropleft 200 --sout-transcode-cropbottom 20 --sout-transcode-cropright 100 --sout "#transcode{vcodec=mp4v,vb=1024,scale=1}:duplicate{dst=std{access=file,mux=ts,dst="C:\Temp\OUT.mpg"}}"
That will capture the screen at 5 fps - cropping the top, left, bottom and right of the screen by 500px, 200px, 20px and 100px respectively. The output video is encoded into mp4v video and streamed to the file "C:\Temp\OUT.mpg".

Arite.

Re: screen:// paramters

Posted: 09 Jan 2009 20:48
by bmud
i was trying to do this last night. This should really be added in to the GUI. It would have saved me that eight hours

Re: screen:// paramters

Posted: 10 Jan 2009 00:27
by bmud
These methods are deprecated, and don't work anymore. I found cropping settings in preferences under input/codecs -> access modules -> screen. However, in OSX changing any of these parameters forces VLC to crash.