GNOME Bugzilla – Bug 630406
[videocrop] cropping an image with one property
Last modified: 2010-09-23 13:01:54 UTC
Hi, I'm writing an app that implement some digit ptz function. I'm using the videocrop element for doing that, but i have some issue with that. If I get a live view from v4l2src in 25 fps, and applying the a top/right/bottom/left property in sequence sometimes the picture goes to "jumping". I guess the problem is the fps rate, the videocrop element crops the top and right side of the picture, but the next frame is arrived and the bottom and left side will be cropped from that, and the previous frame will show up incorrectly (in my view). I tried padblock berfore the videocrop, applying the properties, then unblock, but it will be unusable at low framerate. Is there any way to set the 4 property in one? Regards, Tibor
Either set the properties from a buffer probe on the sinkpad of videocrop or use the GstController API to set the properties based on the timestamps. If you're setting the properties from outside the streaming thread there's nothing that makes sure that all 4 are set atomically. That's not really a bug.