Page 1 of 1

Geometry Crop

Posted: 29 Jun 2010 12:24
by PetC
Hi,
I need to make VLC crop (geometry window) the video while it is being displayed. It should work as the command line option --crop-geometry WxH+L+T, but dynamically. The window dimensions are to be controlled from outside, most probably using python. I found possibility to do so with libvlc python binding, but initial declaration of the windows with option --custom-crop-ratio is required. Is it possible to do it without setting it in the options (I need virtually ALL possible geometries)? Could anyone assist me if the source code should be changed, as such stuff is totally new to me?

PS The version of VLC is not important in this case.

Re: Geometry Crop

Posted: 30 Jun 2010 01:16
by VLC_help
It should be possible without custom-crop-ratio since crop-geometry is different beast.

Re: Geometry Crop

Posted: 30 Jun 2010 11:22
by PetC
Unfortunately it does not work just like that. If no option specified, when I try to call media_player.video_set_crop_geometry("WxH+x+y"), which is in fact the libvlc_video_set_crop_geometry function, nothing happens. What am I doing wrong?

Re: Geometry Crop

Posted: 01 Jul 2010 12:49
by VLC_help
Have you enabled crop filter?