Versions Compared

Key

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

...

Section


Column
width35%


Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn page:
Table of Contents



Column



Note
titleImportant!

You can get audio from x64 Server only.

You can't get audio in MJPEG format.

...

오직 x64 서버에서만 오디오를 가져올 수 있습니다.

MJPEG 형식으로 오디오를 가져올 수 없습니다.

기본 아카이브에서 아카이브 스트림 가져오기

GET http://IPaddress:port/prefix/archive/media/{VIDEOSOURCEID}/{STARTTIME}

Tip

{VIDEOSOURCEID} − three-component source endpoint ID (see 3부 구성 소스 엔드포인트 ID  (비디오 카메라 목록 및 정보 가져오기 참조). For instance, "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0".


Tip

{STARTTIME} − time in ISO format. Set the timezone to UTC+0. 

ISO 형식의 시간. 시간대는 UTC+0으로 설정합니다.


파라미터필수설명ParameterRequiredDescription
speed NoPlayback speed, values can be negative재생 속도, 값은 음수일 수 있습니다.
formatNoParameter values are 파라미터 값은 'mjpeg', 'rtsp', 'mp4', 'hls'. If the format is not specified, 입니다. 형식이 지정되지 않거나 인식되지 않으면 기본적으로 'rtsp' is selected or it is not recognized, then the native format is selected by server to prevent additional encoding. If the native format is not supported by client, server selects WebM가 선택되며, 추가 인코딩을 방지하기 위해 서버에서 네이티브 형식을 선택합니다. 클라이언트가 네이티브 형식을 지원하지 않으면 서버에서 WebM 형식을 선택합니다.
idNoUnique identifier of archive stream (optional). It is used to get stream info or control the stream아카이브 스트림의 고유 식별자 (선택 사항). 스트림 정보를 가져오거나 스트림을 제어하는 데 사용됩니다.

w

h

No

w – frame width, h – frame height.– 프레임 너비, h – 프레임 높이

frNo

fps.

Note
titleImportant!

This parameter is relevant only for MJPEG video이 파라미터는 MJPEG 비디오에만 해당됩니다.


enable_token_auth No

Get 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서명 유효 시간 (시간 단위). 최대 값은 1주일이며, 기본 값은 12시간입니다.

valid_token_hoursNo

Sample request샘플 요청:

GET http://127.0.0.1:80/archive/media/Server1/DeviceIpint.1/SourceEndpoint.video:0:0/20110608T060141.375?format=rtsp&speed=1&w=640&h=480&enable_token_auth=1&valid_token_hours=1


Note
titleImportant!

HLS archive video becomes available in 30 seconds after getting the response.아카이브 비디오는 응답을 받은 후 30초 이내에 사용 가능합니다.

샘플 응답Sample response:

Code Block
{
    "http": {
        "description": "RTP/RTSP/HTTP/TCP",
        "path": "archive/hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0/20110608T060141.375000?speed=1&id=a865fcea-cfe6-44a1-bf7b-9e6a94c44a53&exp=20200525T171234&nonce=1&hmac=wVlyHvZkB2TnqftTfYugtwmZ7g8=",
        "port": "8554"
    },
    "httpproxy": {
        "description": "RTP/RTSP/HTTP/TCP Current Http Port",
        "path": "rtspproxy/archive/hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0/20110608T060141.375000?speed=1&id=a865fcea-cfe6-44a1-bf7b-9e6a94c44a53&exp=20200525T171234&nonce=2&hmac=BVICx8NVV4yijwqc0Q6Xzji41Rg="
    },
    "rtsp": {
        "description": "RTP/UDP or RTP/RTSP/TCP",
        "path": "archive/hosts/Server1/DeviceIpint.1/SourceEndpoint.video:0:0/20110608T060141.375000?speed=1&id=a865fcea-cfe6-44a1-bf7b-9e6a94c44a53&exp=20200525T171234&nonce=1&hmac=wVlyHvZkB2TnqftTfYugtwmZ7g8=",
        "port": "554"
    }
}

...

HTML
<script id="asciicast-507167" src="https://asciinema.org/a/507167.js" async></script>

...

스트림에 ID

...

할당

스트림에 ID를 할당하여 해당 스트림에 대한 정보를 받을 수 있습니다Assign ID to the stream to receive information about this stream.

http://IPaddress:port/prefix/archive/media/VIDEOSOURCEID/STARTTIME/20140723T120000.000?format=rtsp&speed=1&w=640&h=480&id=f03c6ccf-b181-4844-b09c-9a19e6920fd3

It is possible to use other values consisting of latin letters and digits. It is recommended to use the UUID function (see 고유 식별자 가져오기기타 값들도 사용할 수 있으며, 라틴 문자와 숫자로 구성됩니다. UUID 함수를 사용하는 것이 권장됩니다 (고유 식별자 가져오기 참고).

RTSP

...

아카이브 비디오

GET rtsp://login:password@IPaddress:554/archive/hosts/SERVER1/DeviceIpint.0/SourceEndpoint.video:0:0/20160907T050548.723000Z?speed=1

Speed parametr is mandatory: playback speed 파라미터는 필수입니다: 재생 속도.

Examples:

  • speed = 1 − forward playback, normal speed;정상 속도, 전방 재생
  • speed = -1 − back playback, normal speed;정상 속도, 후방 재생
  • speed = 4 − fast playback, speed 4х;빠른 재생, 4배속
  • speed = -8 fast-rewind playback, speed 8x.

...

  • − 빠른 되감기, 8배속

HTTP 아카이브 비디오

ffplay.exe -v debug "http://login:password@IP-Address:80/archive/media/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170112T113526?w=1600&h=0&speed=1".

...

RTSP를 HTTP로 터널링

Tip

VLC에서 RTSP를 HTTP를 통해 터널링 설정하기

...

For VLC: GET rtsp://login:password@Iaddress:8554/rtspproxy/archive/hosts/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170115T113526

H.264

...

아카이브 비디오

To get H.264 archive video use RTSP protocol:아카이브 비디오를 가져오려면 RTSP 프로토콜을 사용합니다.

GET rtsp://login:password@IP-Address:554/archive/hosts/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170112T113526or tunneling RTSP over HTTP:

또는 RTSP를 HTTP로 터널링하여 사용할 수 있습니다.

GET rtsp://login:password@IP-Address:80/rtspproxy/archive/hosts/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170115T113526

...