[Bug 629244] [opencv] Add motion detection element

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jun 1 14:35:05 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=629244
  GStreamer | gst-plugins-bad | git

--- Comment #73 from Nicola <lists at svrinformatica.it> 2011-06-01 21:35:00 UTC ---
Hi Robert,

I did a small modification to the file gstmotioncells.c:

I changed line 900 to:

s = gst_structure_new ("motion", "motion_cells_indices", G_TYPE_STRING,
            detectedmotioncells, "motion_begin", G_TYPE_UINT64,
            GST_BUFFER_TIMESTAMP (buf), NULL);

this way when there is a motion begin the message you post on the bus contains
the exact buffer timestamp, with this information you can get the exact frame
where motion is detected, here is a sample bus message

"motioncells0" (element): motion, motion_cells_indices=(string)2:6,
motion_begin=(guint64)2165376560;

please note motion_begin=(guint64)2165376560

in the previous version the bus message tell us that there is motion at second
21 not precise.

My opinion is that motion_begin_timestamp last_motion_timestamp ecc.. should be
changed from (long int) to (guint64) so you have an exact information and not
an approximated one.

This change is enough for my request at comment 40 too. If you agree with the
change I can make a proper patch,

thanks
Nicola

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list