After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 630406 - [videocrop] cropping an image with one property
[videocrop] cropping an image with one property
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-23 12:50 UTC by Tibor Kocsis
Modified: 2010-09-23 13:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tibor Kocsis 2010-09-23 12:50:02 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
Comment 1 Sebastian Dröge (slomo) 2010-09-23 13:01:54 UTC
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.