gst-opencv multi thread problem

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

gst-opencv multi thread problem

Evil85
Hi Guys,

I use one pipeline with 4 rtsp src and 4 instance of own filter.
I think the different threads caused the segfault when different
object call opencv functions.
And I fixed this with mutex,but I realized that different objects can
access to other objects frame buffer in opencv.
When different objects call opencv functions then next objects what
call opencv function find some frames in buffer from previous cam of
object.
But I dont understand how.

What do you think about this.

Thanks your time.

example:

gst-launch rtspsrc
location="rtsp://admin:12345@10.30.0.126:554/h.264/ch1/sub"
latency=1000 ! decodebin ! ffmpegcolorspace ! motioncells !
ffmpegcolorspace ! xvimagesink   rtspsrc
location="rtsp://admin:12345@10.30.0.122:554/h.264/ch1/sub"
latency=1000 ! decodebin ! ffmpegcolorspace ! motioncells !
ffmpegcolorspace ! xvimagesink   rtspsrc
location="rtsp://admin:12345@10.30.0.125:554/h.264/ch1/sub"
latency=1000 ! decodebin ! ffmpegcolorspace ! motioncells !
ffmpegcolorspace ! xvimagesink   rtspsrc
location="rtsp://admin:12345@10.30.0.115:554/h.264/ch1/sub"
latency=1000 ! decodebin ! ffmpegcolorspace ! motioncells !
ffmpegcolorspace ! xvimagesink

my filter name is motioncells

--
Best Regards,

Robert

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst-opencv multi thread problem

Tim-Philipp Müller-2
On Tue, 2011-01-25 at 14:58 +0100, Robert Jobbagy wrote:

> What do you think about this.
>

I think you should file a bug :)

http://gstreamer.freedesktop.org/bugs/

Cheers
 -tim



------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst-opencv multi thread problem

Stefan Sauer
On 25.01.2011 17:46, Tim-Philipp Müller wrote:

> On Tue, 2011-01-25 at 14:58 +0100, Robert Jobbagy wrote:
>
>> What do you think about this.
>>
> I think you should file a bug :)
>
> http://gstreamer.freedesktop.org/bugs/
>
> Cheers
>  -tim
>
and attach your patch :)

Stefan

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst-opencv multi thread problem

Evil85
I realised the code what I use , it has some bug.

2011/1/27 Stefan Kost <[hidden email]>:

> On 25.01.2011 17:46, Tim-Philipp Müller wrote:
>> On Tue, 2011-01-25 at 14:58 +0100, Robert Jobbagy wrote:
>>
>>> What do you think about this.
>>>
>> I think you should file a bug :)
>>
>> http://gstreamer.freedesktop.org/bugs/
>>
>> Cheers
>>  -tim
>>
> and attach your patch :)
>
> Stefan
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



--
Best Regards,

Robert

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel