screen:// paramters

About encoding, codec settings, muxers and filter usage
triplebit
Blank Cone
Blank Cone
Posts: 61
Joined: 19 Mar 2008 21:05

screen:// paramters

Postby triplebit » 27 May 2008 22:20

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

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: screen:// paramters

Postby Arite » 27 May 2008 23:39

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.
Don't use PMs for support questions.

bmud
New Cone
New Cone
Posts: 4
Joined: 09 Jan 2009 20:09

Re: screen:// paramters

Postby bmud » 09 Jan 2009 20:48

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

bmud
New Cone
New Cone
Posts: 4
Joined: 09 Jan 2009 20:09

Re: screen:// paramters

Postby bmud » 10 Jan 2009 00:27

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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests