How to use gst_memory_new_wrapped wrap opencv mat ?
Erickson.LU
ericksonlushan at gmail.com
Fri Oct 12 00:22:25 UTC 2018
v4l2->gstreamer
is OK, nothing is wrong
v4l2->mat->do something -> appsrc
According to that /The process crash at "gst_memory_new_wrapped" so many
times but some time it will be OK./ .
The true is that, the process did not crash at "gst_memory_new_wrapped". It
crash at "g_signal_emit_by_name". Cause when i send the mat to appsrc
buffer. The thread own mat.data destruct himself when the function loop
again, it's a fundamental of opencv. So i forget that, when appsrc need the
buffer, it can't access it or wrong format.
Some things beyond the topic
I think the screen is GREEN as of the size of "GstMemory" warped opencv mat
is not correct, may there is other reason for that.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list