Documentation for C-Werk 2.0.

Previous page Receiving video from the Server monitor with the FFmpeg driver  Receiving video and audio with FFmpeg driver over RTSP and RTMP protocols Next page

If a device is added automatically (see Adding and removing IP devices), separate objects are created for video and audio streams.

If you need to create a single object, add the device manually using the following address format:

dshow(<index>)://(<video_device_name>)(:<audio_device_name>)

If no index is specified in the address, the value is 0. Use a non-zero index if you use multiple devices with the same name.

For example:

dshow://USB 2.0 HD Camera
dshow1://USB 2.0 HD Camera

Note

If a video or audio device is not present, it may be not specified in the address.

After you added the device, you have to set up its streams. For archive recording and transferring videos over the network, MJPEG codec is recommended; for detection purposes, use YUV422.

If required, you can set a parameter string for FFmpeg app in the Additional оptions field.  

For example: receive video from a USB camera in YUV420P format, 1280x960 resolution.

-pixel_format yuv420p -video_size 1280x960

Parameters and their values differ by format and particular device. To list possible parameter values, run the following command from the Windows command line:

ffmpeg -list_options true -f dshow -i video="<device name>"
  • No labels