Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

General information

GET http://IP-Address:port/prefix/live/media/{VIDEOSOURCEID}

...

Starting with C-Werk 2.0Starting with C-Werk 2.0
ParameterRequiredDescription
formatNo

Parameter values are "mp4", "hls".

Video can be received in the original format (without recompression) via HLS protocols. HLS protocol supports only H.264 format.

The "mp4" player allows to receive the original video in H.264 and H.265 formats. In all other cases the Server recompresses it to MJPEG format. 

Note
titleAttention!

If video is requested in the format that differs from the original one, then recompression will be performed, therefore, Server load will increase.


w, hNo

wframe width, h—frame height.

Note
titleAttention!

The mp4 video is transferred without scaling.

If the h and w values are greater than the size of the original video, the video will be received with the original size.

Zooming out of width and height is available only discretely—in 2, 4, 8 times, etc. If specified sizes are not corresponding to 1/2, 1/4 etc. of original video size, the video will be received with size divisible by the original video size close to specified values.


frNo

The FPS value.

Note
titleAttention!

This parameter is relevant only for MJPEG video.


enable_token_auth No

Get authorized and signed links to video streams.

  • enable_token_auth—enable authorization by token = 1.
  • valid_token_hours—signature validation time (in hours). The maximum value is a week. The default value is 12 hours
valid_token_hoursNo

key_frames

No

1playback only by key frames;

0original frame rate (default)

authTokenNo

Connecting via via C-Werk Cloud.

For example, https://Cc-Werk Cloudwerk.com/arpserver/25455_0/webclient/live/media/SERVER/DeviceIpint.1/SourceEndpoint.video:0:1?authToken=...

auth_tokenNo

Authorizing when connecting directly to the Server and authorizing by token.

For example, http://127.0.0.1:80/live/media/SERVER/DeviceIpint.1/SourceEndpoint.video:0:0?format=mp4&auth_token=...

...

Request to get the structure of the RTSP link: http://login:password@IP-Address:Port/live/media/Server1/DeviceIpint.23/SourceEndpoint.video:0:0?format=rtsp

...

Request to get video: GET rtsp://login:password@IP-Address:554/hosts/Server1/DeviceIpint.23/SourceEndpoint.video:0:0

...

RTSP stream information:

GET http://IP-Address:port/prefix/rtsp/stat

...

ffplay.exe -v debug "http://login:password@IP-Address:8001/live/media/Server1/DeviceIpint.23/SourceEndpoint.video:0:0?w=1600&h=0"

...

ffplay -rtsp_transport http "rtsp://login:password@IP-Address:80/rtspproxy/hosts/Server1/DeviceIpint.23/SourceEndpoint.video:0:0"

GET for VLC: rtsp://login:password@IP-Address:80/rtspproxy/hosts/Server1/DeviceIpint.23/SourceEndpoint.video:0:0

...