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.

...

Audio można pozyskiwać jedynie z serwerów x64.

Nie można pozyskać audio w formacie MJPEG.

Pozyskaj strumień archiwum z domyślnego archiwum

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

Tip

{VIDEOSOURCEID} - three-component source endpoint ID (see Get list of video sources (camerasPozyskaj listę źródeł wideo (kamer)).  For instance, Przykład: "SERVER1/DeviceIpint.3/SourceEndpoint.video:0:0".


Tip

{STARTTIME} - time in czas w formacie ISO format. Set the timezone to . Ustaw strefę czasową na UTC+0. 


ParameterParametrRequiredWymaganyDescriptionOpis
speed NoNiePrędkość odtwarzania; wartości mogą być negatywnePlayback speed, values can be negative.
formatNoNieWartości parametru: Parameter 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 Jeśli format nie jest określony, format 'rtsp' jest wybierany bądź nie jest on rozpoznawany, a następnie wybierany jest natywny format serwera w celu uniknięcia dodatkowego kodowania. Jeśli natywny format nie jest wspierany przez klienta, serwer wybiera WebM.
idNoNieUnikalny identyfikator strumienia archiwum (opcjonalne). Jest on stosowany w celu uzyskania informacji o strumieniu bądź kontrolowaniu strumieniaUnique identifier of archive stream (optional). It is used to get stream info or control the stream.

w

h

NoNie

w – frame width– szerokość ramki, h – frame heightwysokość ramki.

frNoNie

fps.

Note
titleImportant!

This parameter is relevant only for MJPEG videoTen parametr funkcjonuje tylko dla wideo w formacie MJPEG.


archiveNoNie

Nazwa archiwum z zapytania o listę archiwów (zobacz: Pozyskaj zawartość archiwum). Jeśli nie jest ona określona, używane jest domyślne archiwumThe archive name from the Get list of archives request (see Get archive contents). If not specified, the default archive is used.

enable_token_auth NoNie

Uzyskaj sygnatury do strumieni wideoGet signed links to video streams.

enable_token_auth - enable authorization by token zezwól na autoryzację poprzez token =1.

valid_token_hours - signature validation time (in hours). The maximum value is a week. The default value is 12 hoursczas walidacji sygnatury (w godzinach). Maksymalna wartość to tydzień. Domyślna wartość to 12 godzin.

valid_token_hoursNoNie

Sample requestPrzykładowe zapytanie:

GET http://127.0.000.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

Sample responsePrzykładowa odpowiedź:

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 type="text/javascript" src="https://asciinema.org/a/99469.js" id="asciicast-99469" async></script>

Assign ID to the stream

Przypisz ID do strumienia

Aby uzyskiwać informacje o strumieniu, przypisz ID do strumieniaAssign ID to the stream to receive information about this stream.

http://IP-Address: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 Get unique identifier).

...

Możliwe jest stosowanie innych wartości, składających się z liter alfabetu łacińskiego oraz cyfry. Zalecane jest korzystanie z funkcji UUID (zobacz: Pozyskaj unikalny identyfikator).

Wideo archiwalne RTSP

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

Speed parametr is mandatory: playback speed.

Parametr speed jest wymagany; oznacza on prędkość odtwarzania.

PrzykładyExamples:

  • speed=1 - forward playback, normal speedodtwarzanie w przód, normalna prędkość;
  • speed=-1 - back playback, normal speedodtwarzanie do tyłu, normalna prędkość;
  • speed=4 - fast playbackszybkie odtwarzanie, speed prędkość 4х;
  • speed=-8 - fast-rewind playback, speed szybkie odtwarzanie do tyłu, prędkość 8x.

Wideo archiwalne 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"

...

Tunelowanie RTSP

...

poprzez HTTP

see Configure tunneling RTSP over HTTP in Zobacz: Skonfiguruj tunelowanie RTSP poprzez HTTP w VLC.

ffplay -rtsp_transport http "rtsp://login:password@IP-Address:8554/rtspproxy/archive/hosts/SERVER1/DeviceIpint.4/SourceEndpoint.video:0:0/20170115T113526"

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

Wideo archiwalne H.264

...

Aby uzyskać wideo archiwalne w formacie To get H.264 archive video use RTSP protocol, skorzystaj z protokołu RTSP:

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

or tunneling RTSP over lub z tunelowania RTSP poprzez HTTP:

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

...