How to create an IP video camera viewer in C#.NET
In this tutorial you can learn how to write such codes in C#, which handle an IP camera using Ozeki Camera SDK.
In these lectures you can get to know how you can display the camera image depending on the camera type (USB, ONVIF, RTSP). You can also read about transformation options such as resizing, flipping (vertically and horizontally).
If you want, your application will be able to play the audio coming from the IP camera. It is especially important, when you develop a video chat program or you just want to hear what's going on in the office.
In addition, the SDK helps you to set the adjustment values (saturation, contrast, brightness, white balance, backlight) and query a lots of useful information about the IP camera.
Even if this would not be enough for starting, it is also possible to cover the area of setting frame rate, where you can modify the input frame numbers from the camera. So if you want to record something (see later in Tutorial 3) for a long term and it's not full motion (e.g. at a bank ATM) then reduce the frame rate and you will save a lot of space for recording.
You can find clear explanation (including code snippets and GUI screenshots) for every examples related to the functionalities mentioned above. The full source code of each example project can be downloaded and the FAQ section gives answers for the most commonly asked questions.
Lecture 1: Connect to an USB camera in C#
This lecture presents how to connect to your USB camera and how to display the picture in a Windows Forms application. Start now
Lecture 2: Connect to RTSP camera in C#
This lecture demonstrates how to connect to your RTSP camera and how to view the video in a Windows Forms application. Start now
Lecture 3: Connect to Onvif IP camera in C#
In this lecture you can get to know how to connect to your Onvif IP camera and how to view its picture by using C#.NET. Start now
Lecture 4: Play audio from IP camera in C#
This lecture explains how to play audio coming from an RTSP camera or Onvif IP camera by using your PC speaker. Start now
Lecture 5: Send audio to IP camera in C#
In addition to accepting, you can also send audio to your IP camera. This lecture shows how you can implement this feature. Start now
Lecture 6: Query stream parameters in C#
Find out how to query the audio/video stream parameters (frame rate, resolution, codecs, etc.) of a broadcasted IP camera. Start now
Lecture 7: Resize IP camera picture in C#
This lecture in intended to be a great explanation on how to resize the picture of a broadcasted IP camera to be able to display that. Start now
Lecture 8: Reflect the IP camera picture in C#
In this lecture you can learn how to reflect the picture of a broadcasted IP camera horizontally and vertically. Start now
Lecture 9: Brightness/Saturation/Contrast C#
You can learn how to setup the Brightness, Saturation and Contrast values of your IP camera picture. Start now
Lecture 10: Control the frame rate in C#
Using this lecture you can learn about how you can adjust your IP camera picture quality by controlling the frame rate. Start now
Lecture 11: Setup the white balance in C#
This lecture shows you how to optimize your IP camera picture by setting the white balance using C#.NET. Start now
Lecture 12: Back light compensation in C#
This lecture is meant to be a comprehensive explanation on how to use the back light compensation. Start now
Lecture 13: Change resolution in C#
In this lecture you can learn about how you can change the resolution of the IP camera's video stream using C#. Start now