Rotate and Crop stream from Batch file?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
blzbubb
New Cone
New Cone
Posts: 5
Joined: 17 Jan 2012 11:19

Rotate and Crop stream from Batch file?

Postby blzbubb » 17 Jan 2012 11:36

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!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate and Crop stream from Batch file?

Postby VLC_help » 17 Jan 2012 16:33

Should be fixed in 1.2.0/2.0.0 release
https://trac.videolan.org/vlc/ticket/3941

blzbubb
New Cone
New Cone
Posts: 5
Joined: 17 Jan 2012 11:19

Re: Rotate and Crop stream from Batch file?

Postby blzbubb » 18 Jan 2012 14:47

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?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate and Crop stream from Batch file?

Postby VLC_help » 18 Jan 2012 17:56

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.

blzbubb
New Cone
New Cone
Posts: 5
Joined: 17 Jan 2012 11:19

Re: Rotate and Crop stream from Batch file?

Postby blzbubb » 20 Jan 2012 15:28

No errors seen but the crop isn't working.

The rotate does though.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate and Crop stream from Batch file?

Postby VLC_help » 20 Jan 2012 20:22

Does vlc --list actually show the crop filter? In my builds there is only

Code: Select all

croppadd Video scaling filter

blzbubb
New Cone
New Cone
Posts: 5
Joined: 17 Jan 2012 11:19

Re: Rotate and Crop stream from Batch file?

Postby blzbubb » 26 Jan 2012 10:55

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Rotate and Crop stream from Batch file?

Postby Jean-Baptiste Kempf » 26 Jan 2012 14:31

Use cropadd
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

blzbubb
New Cone
New Cone
Posts: 5
Joined: 17 Jan 2012 11:19

Re: Rotate and Crop stream from Batch file?

Postby blzbubb » 26 Jan 2012 15:25

Can you give me an example of how cropadd would work with the rotate?

I have tried it a few times with no luck.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Rotate and Crop stream from Batch file?

Postby VLC_help » 27 Jan 2012 19:37

Croppadd works like

Code: Select all

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

noobtoob
Blank Cone
Blank Cone
Posts: 18
Joined: 24 Jun 2009 11:17

Re: Rotate and Crop stream from Batch file?

Postby noobtoob » 17 Jun 2012 06:12

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.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: Rotate and Crop stream from Batch file?

Postby mederi » 17 Jun 2012 14:19

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.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 72 guests