Automatically Record Video every 5 seconds from Streaming Video using RTSP IP Camera C#

This forum is about all development around libVLC.
dyah22
New Cone
New Cone
Posts: 1
Joined: 08 Oct 2018 05:00

Automatically Record Video every 5 seconds from Streaming Video using RTSP IP Camera C#

Postby dyah22 » 08 Oct 2018 06:01

Hi everyone!

Could somebody help me, please??

I want to automatically record my video every 5 seconds when video is streaming, but I don't know how do that, because there are no references on the website.
For library is using AXVLC.dll & AxAXVLC.dll

this is the source code:

Code: Select all

Process process = new Process(); process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; process.StartInfo.FileName = "C://Program Files (x86)//Videolan//VLC//VLC.exe"; process.StartInfo.Arguments = "\"rtsp://192.168.1.254/xxxx.mov\" --qt-start-minimized --sout=#transcode{vcodec=theo,vb=800,acodec=flac,ab=128,channels=2,samplerate=44100}:file{dst=E:\\123.ogg,no-overwrite}"; private void btnPlay_Click(object sender, EventArgs e) { axVLCPlugin21.playlist.add("rtsp://192.168.1.254/xxxx.mov", null, null); axVLCPlugin21.playlist.play(); process.Start(); }

I hope anybody could help for this issue.
Thank you

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: Automatically Record Video every 5 seconds from Streaming Video using RTSP IP Camera C#

Postby mfkl » 08 Oct 2018 11:06

have a look at this sample https://github.com/ZeBobo5/Vlc.DotNet/b ... Program.cs
And you should use a modern wrapper (like Vlc.DotNet) if you can
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 36 guests