I would like to ask some Information regarding on viewing my CCTV installed on a DVR? is it possible to migrate in on ASP.net?
Your Response is Highly Appreciated.
Thank You!
Eos
Your Response is Highly Appreciated.
Thank You!
Eos
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jun 30, 2013, 8:28 PM EDT
http://www.codeproject.com/Articles/15537/Camera-Vision-video-surveillance-on-C
Gerald Silver4 reputationPosted Oct 13, 2014, 1:43 AM EDT
In order to connect to any camera, you need a tool (for example an SDK) in that the neccessary protocols have already been implemented. Or you need to implement it for your own, but it may take weeks or months, and it is possible that will not work with every cameras.
We are using ozeki's camera sdk which contains a lot of classes and functions you may need to use.
In the next few lines I will try to show a simple example that is connecting to a camera than starts recording the picture in mp4 format:
First connect your application to your camera:
_camera = IPCameraFactory.GetCamera("192.168.115.175:8080", "admin", "admin");
_connector.Connect(_camera.VideoChannel, _imageProvider);
_camera.Start();
Then use the following method to start recording the video. As you can see, the videochannel and audiochannel are recorded seperately:
private void StartVideoCapture(string path)
{
var date = DateTime.Now.Year + "y-" + DateTime.Now.Month + "m-" + DateTime.Now.Day + "d-" +
DateTime.Now.Hour + "h-" + DateTime.Now.Minute + "m-" + DateTime.Now.Second + "s";
string currentpath;
if (String.IsNullOrEmpty(path))
currentpath = date + ".mp4";
else
currentpath = path + "\\" + date + ".mp4";
_mpeg4Recorder = new MPEG4Recorder(currentpath);
_mpeg4Recorder.MultiplexFinished += Mpeg4Recorder_MultiplexFinished;
_connector.Connect(_camera.AudioChannel, _mpeg4Recorder.AudioRecorder);
_connector.Connect(_camera.VideoChannel, _mpeg4Recorder.VideoRecorder);
}
In the end of the recording, you need to insert the two channels to each other using the following method:
private void Mpeg4Recorder_MultiplexFinished(object sender, Ozeki.VoIP.VoIPEventArgs
{
_connector.Disconnect(_camera.AudioChannel, _mpeg4Recorder.AudioRecorder);
_connector.Disconnect(_camera.VideoChannel, _mpeg4Recorder.VideoRecorder);
_mpeg4Recorder.Dispose();
}
You can find useful examples on the website of the sdk, for example under the following link you can find an example about recording:
http://www.camera-sdk.com/p_52-how-to-record-audio-and-video-stream-into-mpeg-4-onvif.html