<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:14px"><div><span style="font-family: 'times new roman', 'new york', times, serif;">hi </span><br></div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"><div style="font-family: 'bookman old style', 'new york', times, serif; font-size: 14px;"><div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"><div class="y_msg_container"><div id="yiv9669479461"><div><div style="color: rgb(0, 0, 0); font-family: 'bookman old style', 'new york', times, serif; font-size: 14px; background-color: rgb(255, 255, 255);"><div id="yiv9669479461" class="yiv9669479461" style=""><div class="yiv9669479461" style=""><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 14px; background-color: rgb(255,
255, 255);" class="yiv9669479461"><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" class="yiv9669479461" style=""><br style=""></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461">I using at first vlcdotnet wrapper for record multi rtsp stream (20 streams) and i encounter a problem that, with add new stream, length of recorded videos decreased and some of frames in video dropped.</div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461">work only for 10 streams. after this i using a process and load vlc.exe and pass commands to it for record rtsp stream but the problem still
exists .</div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461">I attached two video that recorded with vlc from one camera but output is different .<br class="yiv9669479461" style=""></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461"><br></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461">I use a image processing camera that send events on tcp port . I want when event received, record 5 seconds before event
to 30 seconds after event.</div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461">Is vlc have a problem with save multiple streams simultaneously ? or my way is bad . </div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461"><br></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461"><br></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new
roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461">here is my code :</div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="font-style: normal; font-size: 14px; font-family: 'times new roman', 'new york', times, serif; color: rgb(0, 0, 0); background-color: transparent;" class="yiv9669479461"><br id="yiv9669479461yui_3_16_0_1_1412862854661_4374" class="yiv9669479461" style=""></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461" id="yiv9669479461yui_3_16_0_1_1412862854661_4369">Vlc.DotNet.Core.VlcContext.StartupOptions.AddOption("--network-caching=1000");</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span style="font-family: 'bookman old style',
'new york', times, serif;" class="yiv9669479461" id="yiv9669479461yui_3_16_0_1_1412862854661_4370">Vlc.DotNet.Core.VlcContext.StartupOptions.AddOption("--no-skip-frames");</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461" id="yiv9669479461yui_3_16_0_1_1412862854661_4371">Vlc.DotNet.Core.VlcContext.StartupOptions.AddOption("--live-caching=10000");</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3715" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461">Vlc.DotNet.Core.VlcContext.Initialize();<br id="yiv9669479461yui_3_16_0_1_1412862854661_3463" class="yiv9669479461" style=""></span></div><div
id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color:rgb(0, 0, 0);font-size:14px;font-style:normal;background-color:transparent;" class="yiv9669479461"><span style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461"><br id="yiv9669479461yui_3_16_0_1_1412862854661_3467" class="yiv9669479461" style=""></span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color:rgb(0, 0, 0);font-size:14px;font-style:normal;background-color:transparent;" class="yiv9669479461"><span style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461"><br class="yiv9669479461" style=""></span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3706" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461">const int num = 10;</span></div><div
id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3705" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461">Vlc.DotNet.Core.Medias.LocationMedia[] media = new Vlc.DotNet.Core.Medias.LocationMedia[num] ;</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3704" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461">Vlc.DotNet.Forms.VlcControl[] cap = new Vlc.DotNet.Forms.VlcControl[num];</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461"><br class="yiv9669479461"
style=""></span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3703" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461">for (int i = 0; i < num; i++)</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3711" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461">{</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3701" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461"> media[i] = new
Vlc.DotNet.Core.Medias.LocationMedia("rtsp://192.168.192.40:554/ch0_unicast_firststream");</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3709" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461">
media[i].AddOption(":sout=#std{access=file,mux=ps,dst=d:\\tmp\\" + i.ToString() + ".mp4}");</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3710" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461"> cap[i] = new Vlc.DotNet.Forms.VlcControl();</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3712" style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461"> cap[i].Play(media[i]);</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span id="yiv9669479461yui_3_16_0_1_1412862854661_3713" style="font-family:
'bookman old style', 'new york', times, serif;" class="yiv9669479461">}</span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'bookman old style', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461"><span style="font-family: 'bookman old style', 'new york', times, serif;" id="yiv9669479461yui_3_16_0_6_1412862854661_44" class="yiv9669479461"><br id="yiv9669479461yui_3_16_0_1_1412862854661_4046" class="yiv9669479461" style=""></span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="background-color:transparent;" class="yiv9669479461"><span style="font-family: 'bookman old style', 'new york', times, serif;" id="yiv9669479461yui_3_16_0_1_1412862854661_4572" class="yiv9669479461">I am grateful to you if you answer my question.</span><br id="yiv9669479461yui_3_16_0_1_1412862854661_4569" class="yiv9669479461"
style=""></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'times new roman', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461"><span style="font-family: 'bookman old style', 'new york', times, serif;" class="yiv9669479461" id="yiv9669479461yui_3_16_0_6_1412862854661_54"><br id="yiv9669479461yui_3_16_0_1_1412862854661_4703" class="yiv9669479461" style=""></span></div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'bookman old style', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461">Best Regards</div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'bookman old style', 'new york', times, serif; font-style: normal; background-color: transparent;"
class="yiv9669479461">Moazami</div><div id="yiv9669479461yui_3_16_0_1_1412862854661_3008" style="color: rgb(0, 0, 0); font-size: 14px; font-family: 'bookman old style', 'new york', times, serif; font-style: normal; background-color: transparent;" class="yiv9669479461"><br id="yiv9669479461yui_3_16_0_1_1412862854661_4569" class="yiv9669479461" style=""></div></div></div></div></div></div></div><br><br></div> </div> </div> </div> </div></body></html>