<div dir="ltr">Hi Tim,<br><br>Thanks for the valuable info.<br>The hardware encoder was written using gstreamer-0.10 so didn’t upgraded to gstreamer-1.0.<br>I will try your methods and check for errors.<br><br><br>Thank you.<br>Deepak<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 29, 2015 at 7:33 PM, Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 2015-03-29 at 02:08 +0530, Deepak Agasibagil wrote:<br>
<br>
Hi,<br>
<br>
You seem to be using an ancient version of GStreamer (0.10) which is not<br>
maintained any longer. Have you considered upgrading to 1.x.<br>
<br>
As for your problem, I would recommend running gst-launch-1.0 in<br>
valgrind, it might show you the underlying problem.<br>
<br>
There are also glibc environment variables you can set for additional<br>
memory allocation checking, which might make the problem show up quicker<br>
(and perhaps at the right spot).<br>
<br>
Cheers<br>
 -Tim<br>
<div><div class="h5"><br>
><br>
> Hello,<br>
><br>
><br>
> I am using gst-launch command to store and stream the video from 4<br>
> cameras<br>
> simultaneously. The command i used is as shown below, but the command<br>
> exits<br>
> after running for few minutes giving the double free or corruption.<br>
> Please help me to know what was the cause for this error?<br>
><br>
><br>
><br>
><br>
> Another question is that, what is the difference between using<br>
> multiple<br>
> src to sink pipelines in a single gst-launch command and in separate<br>
> commands.<br>
> i.e the below shown command can be separated into 4 different<br>
> gst-launch<br>
> commands(each with single v4l2 source linked to udpsink & filesink),<br>
> but<br>
> when i do this i get some errors related to encoder, if i use all 4<br>
> src to<br>
> sink pipelines in a single gst-launch command no errors were<br>
> encountered.<br>
><br>
><br>
><br>
><br>
> command :<br>
><br>
><br>
><br>
><br>
> root@localhost:~# gst-launch-0.10 -e --gst-debug-level=2 \<br>
> > \<br>
> > v4l2src always-copy=FALSE device=/dev/video0 \<br>
> > ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction<br>
> \)30/1,width=720,height=576 \<br>
> > ! textoverlay font-desc=\"Sans 24\" text="cam0" valign=top<br>
> halign=left shaded-background=true \<br>
> > ! clockoverlay halign=right valign=bottom shaded-background=true<br>
> time-format="%Y/%m/%d %H:%M:%S" \<br>
> > ! timeoverlay valign=top halign=right \<br>
> > ! applite_venc ! queue ! h264parse ! tee name=streamtee0 ! queue !<br>
> mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid0.mpegts \<br>
> > \<br>
> > v4l2src always-copy=FALSE device=/dev/video1 \<br>
> > ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction<br>
> \)30/1,width=720,height=576 \<br>
> > ! textoverlay font-desc=\"Sans 24\" text="cam1" valign=top<br>
> halign=left shaded-background=true \<br>
> > ! clockoverlay halign=right valign=bottom shaded-background=true<br>
> time-format="%Y/%m/%d %H:%M:%S" \<br>
> > ! timeoverlay valign=top halign=right \<br>
> > ! applite_venc ! queue ! h264parse ! tee name=streamtee1 ! queue !<br>
> mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid1.mpegts \<br>
> > \<br>
> > v4l2src always-copy=FALSE device=/dev/video2 \<br>
> > ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction<br>
> \)30/1,width=720,height=576 \<br>
> > ! textoverlay font-desc=\"Sans 24\" text="cam2" valign=top<br>
> halign=left shaded-background=true \<br>
> > ! clockoverlay halign=right valign=bottom shaded-background=true<br>
> time-format="%Y/%m/%d %H:%M:%S" \<br>
> > ! timeoverlay valign=top halign=right \<br>
> > ! applite_venc ! queue ! h264parse ! tee name=streamtee2 ! queue !<br>
> mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid2.mpegts \<br>
> > \<br>
> > v4l2src always-copy=FALSE device=/dev/video3 \<br>
> > ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction<br>
> \)30/1,width=720,height=576 \<br>
> > ! textoverlay font-desc=\"Sans 24\" text="cam3" valign=top<br>
> halign=left shaded-background=true \<br>
> > ! clockoverlay halign=right valign=bottom shaded-background=true<br>
> time-format="%Y/%m/%d %H:%M:%S" \<br>
> > ! timeoverlay valign=top halign=right \<br>
> > ! applite_venc ! queue ! h264parse ! tee name=streamtee3 ! queue !<br>
> mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid3.mpegts \<br>
> > streamtee0. ! queue ! rtph264pay ! queue ! udpsink<br>
> host=192.168.100.100 port=5000 \<br>
> > streamtee1. ! queue ! rtph264pay ! queue ! udpsink<br>
> host=192.168.100.100 port=5010 \<br>
> > streamtee2. ! queue ! rtph264pay ! queue ! udpsink<br>
> host=192.168.100.100 port=5020 \<br>
> > streamtee3. ! queue ! rtph264pay ! queue ! udpsink<br>
> host=192.168.100.100 port=5030<br>
> 0:00:00.423420006  2408   0x1d2e00 WARN            multiudpsink<br>
> gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink@0x1ea148> getaddrinfo lookup error?<br>
> 0:00:00.423980806  2408   0x1d2e00 WARN            multiudpsink<br>
> gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink0> client at<br>
> host localhost, port 4951 not found<br>
> 0:00:00.428017713  2408   0x1d2e00 WARN            multiudpsink<br>
> gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink@0x1ea508> getaddrinfo lookup error?<br>
> 0:00:00.428529526  2408   0x1d2e00 WARN            multiudpsink<br>
> gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink1> client at<br>
> host localhost, port 4951 not found<br>
> 0:00:00.432292539  2408   0x1d2e00 WARN            multiudpsink<br>
> gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink@0x1ea8c8> getaddrinfo lookup error?<br>
> 0:00:00.432688406  2408   0x1d2e00 WARN            multiudpsink<br>
> gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink2> client at<br>
> host localhost, port 4951 not found<br>
> 0:00:00.436742300  2408   0x1d2e00 WARN            multiudpsink<br>
> gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink@0x1eac88> getaddrinfo lookup error?<br>
> 0:00:00.437143393  2408   0x1d2e00 WARN            multiudpsink<br>
> gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink3> client at<br>
> host localhost, port 4951 not found<br>
> Setting pipeline to PAUSED ...<br>
> Pipeline is live and does not need PREROLL ...<br>
> Setting pipeline to PLAYING ...<br>
> 0:00:01.027802120  2408   0x1d2e00 WARN                     bin<br>
> gstbin.c:2399:gst_bin_do_latency_func:<pipeline0> failed to query<br>
> latency<br>
> New clock: GstSystemClock<br>
> 0:00:02.181389627  2408   0x204320 WARN                     bin<br>
> gstbin.c:2395:gst_bin_do_latency_func:<pipeline0> did not really<br>
> configure latency of 0:00:00.033333333<br>
> *** glibc detected *** gst-launch-0.10: double free or corruption (!<br>
> prev): 0xb5b201f8 ***<br>
> Aborted<br>
><br>
><br>
><br>
><br>
><br>
><br>
> thank you.<br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></span></blockquote></div><br></div>