Page 1 of 1

Dynamic video cropping

Posted: 15 Jul 2013 18:48
by swmac
Hi,

Is there any chance to force libVLC to dynamically change cropping offset. And I don't mean geometry as it keeps ratio (it crops left and right side in my example).
I need to move cropping area of a certain size, from the left side of a very wide movie (bigger then a screen) to the right and have an effect of camera move.
Is this possible?

Thanks,
Maciej

Re: Dynamic video cropping

Posted: 26 Jul 2013 22:52
by Agron
try this, if this is the right documentation for the latest release there is a huge chance this might work.

libvlc_video_set_crop_geometry
http://www.videolan.org/developers/vlc/ ... c82f1c0b2e

p_mi the media player
psz_geometry new crop filter geometry (NULL to unset)

also content for psz_geometry is not documented but I think I a little bird told me it was WidthxHeight+Left+Top. Note the weird x and the + between the numbers.

Re: Dynamic video cropping

Posted: 12 Aug 2013 17:13
by swmac
Thanks,

I've already tried this and yes - it works. However you need to add to the 'Width' the same value you add to the 'Left'. If you don't, it will crop your movie from both sides (left and right). That way it looks that you need a really wide video. As I am software developer I need to wait for video guys to prepare me some samples and then I'll check.