<div dir="ltr"><div><b><br></b></div><div><b><br></b></div><div><b>Hello,</b></div><div><b><br></b></div><div><b>I am using gst-launch command to store and stream the video from 4 cameras </b></div><div><b>simultaneously. The command i used is as shown below, but the command exits </b></div><div><b>after running for few minutes giving the double free or corruption. </b></div><div><b>Please help me to know what was the cause for this error? </b></div><div><b><br></b></div><div><b><br></b></div><div><b>Another question is that, what is the difference between using multiple </b></div><div><b>src to sink pipelines in a single gst-launch command and in separate commands.</b></div><div><b>i.e the below shown command can be separated into 4 different gst-launch </b></div><div><b>commands(each with single v4l2 source linked to udpsink & filesink), but </b></div><div><b>when i do this i get some errors related to encoder, if i use all 4 src to </b></div><div><b>sink pipelines in a single gst-launch command no errors were encountered.</b></div><div><b><br></b></div><div><b><br></b></div><div><b>command :</b></div><div><b><br></b></div><div><b><br></b></div><div><b>root@localhost:~# gst-launch-0.10 -e --gst-debug-level=2 \</b></div><div><b>> \</b></div><div><b>> v4l2src always-copy=FALSE device=/dev/video0 \</b></div><div><b>> ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction\)30/1,width=720,height=576 \</b></div><div><b>> ! textoverlay font-desc=\"Sans 24\" text="cam0" valign=top halign=left shaded-background=true \</b></div><div><b>> ! clockoverlay halign=right valign=bottom shaded-background=true time-format="%Y/%m/%d %H:%M:%S" \</b></div><div><b>> ! timeoverlay valign=top halign=right \</b></div><div><b>> ! applite_venc ! queue ! h264parse ! tee name=streamtee0 ! queue ! mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid0.mpegts \</b></div><div><b>> \</b></div><div><b>> v4l2src always-copy=FALSE device=/dev/video1 \</b></div><div><b>> ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction\)30/1,width=720,height=576 \</b></div><div><b>> ! textoverlay font-desc=\"Sans 24\" text="cam1" valign=top halign=left shaded-background=true \</b></div><div><b>> ! clockoverlay halign=right valign=bottom shaded-background=true time-format="%Y/%m/%d %H:%M:%S" \</b></div><div><b>> ! timeoverlay valign=top halign=right \</b></div><div><b>> ! applite_venc ! queue ! h264parse ! tee name=streamtee1 ! queue ! mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid1.mpegts \</b></div><div><b>> \</b></div><div><b>> v4l2src always-copy=FALSE device=/dev/video2 \</b></div><div><b>> ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction\)30/1,width=720,height=576 \</b></div><div><b>> ! textoverlay font-desc=\"Sans 24\" text="cam2" valign=top halign=left shaded-background=true \</b></div><div><b>> ! clockoverlay halign=right valign=bottom shaded-background=true time-format="%Y/%m/%d %H:%M:%S" \</b></div><div><b>> ! timeoverlay valign=top halign=right \</b></div><div><b>> ! applite_venc ! queue ! h264parse ! tee name=streamtee2 ! queue ! mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid2.mpegts \</b></div><div><b>> \</b></div><div><b>> v4l2src always-copy=FALSE device=/dev/video3 \</b></div><div><b>> ! video/x-raw-yuv,format='(fourcc)'NV12,framerate=\(fraction\)30/1,width=720,height=576 \</b></div><div><b>> ! textoverlay font-desc=\"Sans 24\" text="cam3" valign=top halign=left shaded-background=true \</b></div><div><b>> ! clockoverlay halign=right valign=bottom shaded-background=true time-format="%Y/%m/%d %H:%M:%S" \</b></div><div><b>> ! timeoverlay valign=top halign=right \</b></div><div><b>> ! applite_venc ! queue ! h264parse ! tee name=streamtee3 ! queue ! mpegtsmux ! filesink location=/mnt/CapVideos/FalseVid3.mpegts \</b></div><div><b>> streamtee0. ! queue ! rtph264pay ! queue ! udpsink host=192.168.100.100 port=5000 \</b></div><div><b>> streamtee1. ! queue ! rtph264pay ! queue ! udpsink host=192.168.100.100 port=5010 \</b></div><div><b>> streamtee2. ! queue ! rtph264pay ! queue ! udpsink host=192.168.100.100 port=5020 \</b></div><div><b>> streamtee3. ! queue ! rtph264pay ! queue ! udpsink host=192.168.100.100 port=5030 </b></div><div><b>0:00:00.423420006  2408   0x1d2e00 WARN            multiudpsink gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink@0x1ea148> getaddrinfo lookup error?</b></div><div><b>0:00:00.423980806  2408   0x1d2e00 WARN            multiudpsink gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink0> client at host localhost, port 4951 not found</b></div><div><b>0:00:00.428017713  2408   0x1d2e00 WARN            multiudpsink gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink@0x1ea508> getaddrinfo lookup error?</b></div><div><b>0:00:00.428529526  2408   0x1d2e00 WARN            multiudpsink gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink1> client at host localhost, port 4951 not found</b></div><div><b>0:00:00.432292539  2408   0x1d2e00 WARN            multiudpsink gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink@0x1ea8c8> getaddrinfo lookup error?</b></div><div><b>0:00:00.432688406  2408   0x1d2e00 WARN            multiudpsink gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink2> client at host localhost, port 4951 not found</b></div><div><b>0:00:00.436742300  2408   0x1d2e00 WARN            multiudpsink gstmultiudpsink.c:1107:gst_multiudpsink_add_internal:<GstUDPSink@0x1eac88> getaddrinfo lookup error?</b></div><div><b>0:00:00.437143393  2408   0x1d2e00 WARN            multiudpsink gstmultiudpsink.c:1173:gst_multiudpsink_remove:<udpsink3> client at host localhost, port 4951 not found</b></div><div><b>Setting pipeline to PAUSED ...</b></div><div><b>Pipeline is live and does not need PREROLL ...</b></div><div><b>Setting pipeline to PLAYING ...</b></div><div><b>0:00:01.027802120  2408   0x1d2e00 WARN                     bin gstbin.c:2399:gst_bin_do_latency_func:<pipeline0> failed to query latency</b></div><div><b>New clock: GstSystemClock</b></div><div><b>0:00:02.181389627  2408   0x204320 WARN                     bin gstbin.c:2395:gst_bin_do_latency_func:<pipeline0> did not really configure latency of 0:00:00.033333333</b></div><div><b>*** glibc detected *** gst-launch-0.10: double free or corruption (!prev): 0xb5b201f8 ***</b></div><div><b>Aborted</b></div><div><b><br></b></div><div><b><br></b></div><div><b><br></b></div><div><b>thank you.</b></div><div><b><br></b></div><div><br></div></div>