Page 1 of 1

Rotate and Crop stream from Batch file?

Posted: 17 Jan 2012 11:36
by blzbubb
Hi,

All i'm trying to do is receive an rtsp video stream rotate it and use --crop-geometry to trim out the bits i dont want. Unfortunately it needs to be an uneven crop rather than just a ratio. Ratio crops seem to work fine.

This is what is in my batch file:

Code: Select all

vlc rtsp://192.168.0.70:8554/stream :rtsp-caching=80 :vout-filter=transform,crop :transform-type=90 :crop-geometry="768x565+0+10"
This results in the stream opening correctly and rotating but no crop.
I also tried eliminating the rotate to help debuging:

Code: Select all

vlc rtsp://192.168.0.70:8554/stream :rtsp-caching=80 --vout-filter=crop --crop-geometry="768x565+0+0"
This results in a window the correct size but just blackness with no stream.

I'm hoping it's a syntax error :?

Any help would be great!

Re: Rotate and Crop stream from Batch file?

Posted: 17 Jan 2012 16:33
by VLC_help
Should be fixed in 1.2.0/2.0.0 release
https://trac.videolan.org/vlc/ticket/3941

Re: Rotate and Crop stream from Batch file?

Posted: 18 Jan 2012 14:47
by blzbubb
Hi, Thanks for the info.

I just tried with the latest build.
Although I can get the result i'm after via the GUI, the command line statements above dont seem to work.
The rotate does but not the crop.

Is there something fundamentally wrong with the syntax?

Re: Rotate and Crop stream from Batch file?

Posted: 18 Jan 2012 17:56
by VLC_help
I don't remember any crop related changes recently, so it should work like that. If you open Tools -> Messages (set Verbosity to 2) it will complain if something is wrong.

Re: Rotate and Crop stream from Batch file?

Posted: 20 Jan 2012 15:28
by blzbubb
No errors seen but the crop isn't working.

The rotate does though.

Re: Rotate and Crop stream from Batch file?

Posted: 20 Jan 2012 20:22
by VLC_help
Does vlc --list actually show the crop filter? In my builds there is only

Code: Select all

croppadd Video scaling filter

Re: Rotate and Crop stream from Batch file?

Posted: 26 Jan 2012 10:55
by blzbubb
In the 2.1.0 build I have cropadd and transform but no crop.

In the 1.1.11 build I dont see crop or cropadd but transform is there.

This is driving me nuts now!

Any help is greatly appreciated.

Re: Rotate and Crop stream from Batch file?

Posted: 26 Jan 2012 14:31
by Jean-Baptiste Kempf
Use cropadd

Re: Rotate and Crop stream from Batch file?

Posted: 26 Jan 2012 15:25
by blzbubb
Can you give me an example of how cropadd would work with the rotate?

I have tried it a few times with no luck.

Re: Rotate and Crop stream from Batch file?

Posted: 27 Jan 2012 19:37
by VLC_help
Croppadd works like

Code: Select all

vlc --video-filter=croppadd --croppadd-croptop=100 video.mp4

Re: Rotate and Crop stream from Batch file?

Posted: 17 Jun 2012 06:12
by noobtoob
The Cropadd options in "Preferences / Video / Filters" do nothing.
The check box to enable Cropadd seems to be missing.
More Oddity: the filters are not in alphabetical order... searching the list is quite unpleasant.

But the command line mentioned earlier works to split a 3d movie so it's watchable 2d:
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --video-filter=croppadd --croppadd-cropright=1200 "1080movie.mkv"

Thanks.

Re: Rotate and Crop stream from Batch file?

Posted: 17 Jun 2012 14:19
by mederi
The check box to enable Cropadd seems to be missing.
to set-up the filter: Preferences > (Show settings - All) > Video > Filters > Cropadd
to turn it on: Preferences > (Show settings - All) > Video > Filters: Video scaling filter
Be careful, because there are 2 "Video scaling filter" in the list of "Video filter module"!
More Oddity: the filters are not in alphabetical order... searching the list is quite unpleasant.
Yes, it really is. Using descriptors instead of direct filter names in the list of filters, "Video scaling filter" instead of "Cropadd" like in the tree menu on the right side, is really a stupid idea.