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.