Hi,
I got a problem while setting the pipeline state to NULL and unref that pipeline. In my code, I need to stop two pipelines (imxv4l2src are two cameras) and start two new pipelines. While stopping current pipelines, I use: gst_element_set_state (pipeline1, GST_STATE_NULL); gst_object_unref (pipeline1); gst_element_set_state (pipeline2, GST_STATE_NULL); gst_object_unref (pipeline2); Sometimes, when it runs here, the program will stuck for a while and show an error or 2 errors (because of 2 cameras) as: ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 It is strange to me because it doesn't occur every time when it runs here. And although this problem occurs, finally those two old pipelines can be removed and new pipelines can run correctly. The only problem is that it will stuck for a while when errors happen. Is it the problem with the cameras themselves? Thanks in advance! _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hello
Do you really need to do unref on pipeline?
Mikl
From: gstreamer-devel <[hidden email]> on behalf of 张若 <[hidden email]>
Sent: Tuesday, November 15, 2016 3:45:16 PM To: Discussion of the development of and with GStreamer Subject: mxc_v4l_dqueue timeout enc_counter 0 Hi,
I got a problem while setting the pipeline state to NULL and unref that pipeline.
In my code, I need to stop two pipelines (imxv4l2src are two cameras) and start two new pipelines. While stopping current pipelines, I use:
gst_element_set_state (pipeline1, GST_STATE_NULL);
gst_object_unref (pipeline1);
gst_element_set_state (pipeline2, GST_STATE_NULL);
gst_object_unref (pipeline2);
Sometimes, when it runs here, the program will stuck for a while and show an error or 2 errors (because of 2 cameras) as:
ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0
It is strange to me because it doesn't occur every time when it runs here. And although this problem occurs, finally those two old pipelines can be removed and new pipelines can run correctly. The only problem is that it will stuck for a while when errors
happen.
Is it the problem with the cameras themselves?
Thanks in advance!
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
I once tried not to unref the pipeline. However, when I want to play that pipeline again later, there will be a large switch latency and delay, also many previous frames displayed at the beginning. I don't know why and how to deal with that. Therefore, I just unref pipeline and build the full pipeline and elements inside again. 2016-11-17 11:23 GMT+01:00 Michael Yarochkin <[hidden email]>:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi
In my app, i am not doing any of unref at all. GStreamer is taking care about it. Recreating all elements every time i need to play something Even for the same file.
And once you are unref element, which should
be cleaned up in another place, you can cause memory access exception.
Because you are talking about frames from the past, it can be you are reusing the same elements in your new pipeline.
Do you want me to send you my library?
Mikl From: gstreamer-devel <[hidden email]> on behalf of 张若 <[hidden email]>
Sent: Thursday, November 17, 2016 5:39:54 PM To: Discussion of the development of and with GStreamer Subject: Re: mxc_v4l_dqueue timeout enc_counter 0 I once tried not to unref the pipeline. However, when I want to play that pipeline again later, there will be a large switch latency and delay, also many previous frames displayed at the beginning. I don't know why and how to deal with that.
Therefore, I just unref pipeline and build the full pipeline and elements inside again.
2016-11-17 11:23 GMT+01:00 Michael Yarochkin
<[hidden email]>:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
OK, that's should be great and I can get some ideas from that! Thank you!
However, on the other hand, the mxc_v4l_dqueue timeout enc_conunter() errors seem to be related to set the pipeline to NULL state. For that one, do you have some ideas and recommendations? 2016-11-17 19:48 GMT+01:00, Michael Yarochkin <[hidden email]>: > Hi > > > In my app, i am not doing any of unref at all. GStreamer is taking care > about it. > > Recreating all elements every time i need to play something Even for the > same file. > > > And once you are unref element, which should be cleaned up in another place, > you can cause memory access exception. > > > Because you are talking about frames from the past, it can be you are > reusing the same elements in your new pipeline. > > > Do you want me to send you my library? > > > Mikl > > ________________________________ > From: gstreamer-devel <[hidden email]> on > behalf of 张若 <[hidden email]> > Sent: Thursday, November 17, 2016 5:39:54 PM > To: Discussion of the development of and with GStreamer > Subject: Re: mxc_v4l_dqueue timeout enc_counter 0 > > I once tried not to unref the pipeline. However, when I want to play that > pipeline again later, there will be a large switch latency and delay, also > many previous frames displayed at the beginning. I don't know why and how to > deal with that. Therefore, I just unref pipeline and build the full pipeline > and elements inside again. > > 2016-11-17 11:23 GMT+01:00 Michael Yarochkin > <[hidden email]<mailto:[hidden email]>>: > Hello > > Do you really need to do unref on pipeline? > > Mikl > ________________________________ > From: gstreamer-devel > <[hidden email]<mailto:[hidden email]>> > on behalf of 张若 <[hidden email]<mailto:[hidden email]>> > Sent: Tuesday, November 15, 2016 3:45:16 PM > To: Discussion of the development of and with GStreamer > Subject: mxc_v4l_dqueue timeout enc_counter 0 > > Hi, > > I got a problem while setting the pipeline state to NULL and unref that > pipeline. > > In my code, I need to stop two pipelines (imxv4l2src are two cameras) and > start two new pipelines. While stopping current pipelines, I use: > gst_element_set_state (pipeline1, GST_STATE_NULL); > gst_object_unref (pipeline1); > gst_element_set_state (pipeline2, GST_STATE_NULL); > gst_object_unref (pipeline2); > > Sometimes, when it runs here, the program will stuck for a while and show an > error or 2 errors (because of 2 cameras) as: > ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 > > It is strange to me because it doesn't occur every time when it runs here. > And although this problem occurs, finally those two old pipelines can be > removed and new pipelines can run correctly. The only problem is that it > will stuck for a while when errors happen. > > Is it the problem with the cameras themselves? > > Thanks in advance! > > _______________________________________________ > gstreamer-devel mailing list > [hidden email]<mailto:[hidden email]> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > > > gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi
Here it is.
I have no idea about mxc_v4l_dqueue . Sorry.
Mikl From: gstreamer-devel <[hidden email]> on behalf of 张若 <[hidden email]>
Sent: Thursday, November 17, 2016 7:56:16 PM To: Discussion of the development of and with GStreamer Subject: Re: mxc_v4l_dqueue timeout enc_counter 0 OK, that's should be great and I can get some ideas from that! Thank you!
However, on the other hand, the mxc_v4l_dqueue timeout enc_conunter() errors seem to be related to set the pipeline to NULL state. For that one, do you have some ideas and recommendations? 2016-11-17 19:48 GMT+01:00, Michael Yarochkin <[hidden email]>: > Hi > > > In my app, i am not doing any of unref at all. GStreamer is taking care > about it. > > Recreating all elements every time i need to play something Even for the > same file. > > > And once you are unref element, which should be cleaned up in another place, > you can cause memory access exception. > > > Because you are talking about frames from the past, it can be you are > reusing the same elements in your new pipeline. > > > Do you want me to send you my library? > > > Mikl > > ________________________________ > From: gstreamer-devel <[hidden email]> on > behalf of 张若 <[hidden email]> > Sent: Thursday, November 17, 2016 5:39:54 PM > To: Discussion of the development of and with GStreamer > Subject: Re: mxc_v4l_dqueue timeout enc_counter 0 > > I once tried not to unref the pipeline. However, when I want to play that > pipeline again later, there will be a large switch latency and delay, also > many previous frames displayed at the beginning. I don't know why and how to > deal with that. Therefore, I just unref pipeline and build the full pipeline > and elements inside again. > > 2016-11-17 11:23 GMT+01:00 Michael Yarochkin > <[hidden email]<mailto:[hidden email]>>: > Hello > > Do you really need to do unref on pipeline? > > Mikl > ________________________________ > From: gstreamer-devel > <[hidden email]<mailto:[hidden email]>> > on behalf of 张若 <[hidden email]<mailto:[hidden email]>> > Sent: Tuesday, November 15, 2016 3:45:16 PM > To: Discussion of the development of and with GStreamer > Subject: mxc_v4l_dqueue timeout enc_counter 0 > > Hi, > > I got a problem while setting the pipeline state to NULL and unref that > pipeline. > > In my code, I need to stop two pipelines (imxv4l2src are two cameras) and > start two new pipelines. While stopping current pipelines, I use: > gst_element_set_state (pipeline1, GST_STATE_NULL); > gst_object_unref (pipeline1); > gst_element_set_state (pipeline2, GST_STATE_NULL); > gst_object_unref (pipeline2); > > Sometimes, when it runs here, the program will stuck for a while and show an > error or 2 errors (because of 2 cameras) as: > ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 > > It is strange to me because it doesn't occur every time when it runs here. > And although this problem occurs, finally those two old pipelines can be > removed and new pipelines can run correctly. The only problem is that it > will stuck for a while when errors happen. > > Is it the problem with the cameras themselves? > > Thanks in advance! > > _______________________________________________ > gstreamer-devel mailing list > [hidden email]<mailto:[hidden email]> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > > > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamerplayer.cpp (34K) Download Attachment gstreamerplayer.h (8K) Download Attachment gstreamerrecorder.cpp (19K) Download Attachment gstreamerrecorder.h (6K) Download Attachment |
Hello,
Sorry, but i was not correct in saying, what you don`t need to unref pipeline.
I found some memory leaks in my app.
Sending you updated libraries.
Mikl
From: Michael Yarochkin
Sent: Thursday, November 17, 2016 8:02:33 PM To: Discussion of the development of and with GStreamer Subject: Re: mxc_v4l_dqueue timeout enc_counter 0 Hi
Here it is.
I have no idea about mxc_v4l_dqueue . Sorry.
Mikl From: gstreamer-devel <[hidden email]> on behalf of 张若 <[hidden email]>
Sent: Thursday, November 17, 2016 7:56:16 PM To: Discussion of the development of and with GStreamer Subject: Re: mxc_v4l_dqueue timeout enc_counter 0 OK, that's should be great and I can get some ideas from that! Thank you!
However, on the other hand, the mxc_v4l_dqueue timeout enc_conunter() errors seem to be related to set the pipeline to NULL state. For that one, do you have some ideas and recommendations? 2016-11-17 19:48 GMT+01:00, Michael Yarochkin <[hidden email]>: > Hi > > > In my app, i am not doing any of unref at all. GStreamer is taking care > about it. > > Recreating all elements every time i need to play something Even for the > same file. > > > And once you are unref element, which should be cleaned up in another place, > you can cause memory access exception. > > > Because you are talking about frames from the past, it can be you are > reusing the same elements in your new pipeline. > > > Do you want me to send you my library? > > > Mikl > > ________________________________ > From: gstreamer-devel <[hidden email]> on > behalf of 张若 <[hidden email]> > Sent: Thursday, November 17, 2016 5:39:54 PM > To: Discussion of the development of and with GStreamer > Subject: Re: mxc_v4l_dqueue timeout enc_counter 0 > > I once tried not to unref the pipeline. However, when I want to play that > pipeline again later, there will be a large switch latency and delay, also > many previous frames displayed at the beginning. I don't know why and how to > deal with that. Therefore, I just unref pipeline and build the full pipeline > and elements inside again. > > 2016-11-17 11:23 GMT+01:00 Michael Yarochkin > <[hidden email]<mailto:[hidden email]>>: > Hello > > Do you really need to do unref on pipeline? > > Mikl > ________________________________ > From: gstreamer-devel > <[hidden email]<mailto:[hidden email]>> > on behalf of 张若 <[hidden email]<mailto:[hidden email]>> > Sent: Tuesday, November 15, 2016 3:45:16 PM > To: Discussion of the development of and with GStreamer > Subject: mxc_v4l_dqueue timeout enc_counter 0 > > Hi, > > I got a problem while setting the pipeline state to NULL and unref that > pipeline. > > In my code, I need to stop two pipelines (imxv4l2src are two cameras) and > start two new pipelines. While stopping current pipelines, I use: > gst_element_set_state (pipeline1, GST_STATE_NULL); > gst_object_unref (pipeline1); > gst_element_set_state (pipeline2, GST_STATE_NULL); > gst_object_unref (pipeline2); > > Sometimes, when it runs here, the program will stuck for a while and show an > error or 2 errors (because of 2 cameras) as: > ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 > > It is strange to me because it doesn't occur every time when it runs here. > And although this problem occurs, finally those two old pipelines can be > removed and new pipelines can run correctly. The only problem is that it > will stuck for a while when errors happen. > > Is it the problem with the cameras themselves? > > Thanks in advance! > > _______________________________________________ > gstreamer-devel mailing list > [hidden email]<mailto:[hidden email]> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > > > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel gstreamerplayer.cpp (31K) Download Attachment gstreamerplayer.h (7K) Download Attachment gstreamerrecorder.cpp (19K) Download Attachment gstreamerrecorder.h (6K) Download Attachment |
Free forum by Nabble | Edit this page |