[vlc] problem with record multi rtsp stream

Keivan Moazami keivan.moazami at yahoo.com
Thu Oct 9 17:15:43 CEST 2014


hi 





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.
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 .
I attached two video that recorded with vlc from one camera but output is different .


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.
Is vlc have a problem with save multiple streams simultaneously ? or my way is bad . 


here is my code :

Vlc.DotNet.Core.VlcContext.StartupOptions.AddOption("--network-caching=1000");
Vlc.DotNet.Core.VlcContext.StartupOptions.AddOption("--no-skip-frames");
Vlc.DotNet.Core.VlcContext.StartupOptions.AddOption("--live-caching=10000");
Vlc.DotNet.Core.VlcContext.Initialize();



const int num = 10;
Vlc.DotNet.Core.Medias.LocationMedia[] media = new Vlc.DotNet.Core.Medias.LocationMedia[num] ;
Vlc.DotNet.Forms.VlcControl[] cap = new Vlc.DotNet.Forms.VlcControl[num];

for (int i = 0; i < num; i++)
{
       media[i] = new Vlc.DotNet.Core.Medias.LocationMedia("rtsp://192.168.192.40:554/ch0_unicast_firststream");
       media[i].AddOption(":sout=#std{access=file,mux=ps,dst=d:\\tmp\\" + i.ToString() + ".mp4}");
       cap[i] = new Vlc.DotNet.Forms.VlcControl();
       cap[i].Play(media[i]);
}

I am grateful to you if you answer my question.


Best Regards
Moazami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20141009/0cd19750/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0.rar
Type: application/octet-stream
Size: 1832078 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20141009/0cd19750/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9.rar
Type: application/octet-stream
Size: 2872379 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20141009/0cd19750/attachment-0001.obj>


More information about the vlc mailing list