Dynamic video cropping

This forum is about all development around libVLC.
swmac
New Cone
New Cone
Posts: 2
Joined: 15 Jul 2013 18:40

Dynamic video cropping

Postby swmac » 15 Jul 2013 18:48

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

Agron
Blank Cone
Blank Cone
Posts: 10
Joined: 26 Jul 2013 15:48
Operating System: Linux

Re: Dynamic video cropping

Postby Agron » 26 Jul 2013 22:52

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.

swmac
New Cone
New Cone
Posts: 2
Joined: 15 Jul 2013 18:40

Re: Dynamic video cropping

Postby swmac » 12 Aug 2013 17:13

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 32 guests