Wiki source code of Подключение локальных камер (RTSP, ONVIF)
Version 8.1 by strixadmin on 2025/07/10 08:43
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
8.1 | 1 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)В системе **СтриксВид **предусмотрено несколько способов подключения устройств. |
![]() |
2.1 | 2 | |
3 | |||
4 | ((( | ||
5 | (% cellspacing="0" style="border-collapse:collapse; border:none; width:555px" %) | ||
6 | |(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:181px" %)((( | ||
7 | (% style="line-height:1.2" %) | ||
![]() |
3.1 | 8 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)Способ подключения |
![]() |
2.1 | 9 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:374px" %)((( |
10 | (% style="line-height:1.2" %) | ||
![]() |
3.1 | 11 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)Что можно подключить |
![]() |
2.1 | 12 | ))) |
13 | |(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:181px" %)((( | ||
14 | (% style="line-height:1.2" %) | ||
![]() |
3.1 | 15 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)ONVIF (автопоиск) |
![]() |
2.1 | 16 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:374px" %)((( |
17 | (% style="line-height:1.2" %) | ||
![]() |
3.1 | 18 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)локальные IP- камеры |
![]() |
2.1 | 19 | ))) |
20 | |(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:181px" %)((( | ||
21 | (% style="line-height:1.2" %) | ||
![]() |
3.1 | 22 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)ONVIF (вручную) |
![]() |
2.1 | 23 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:374px" %)((( |
24 | (% style="line-height:1.2" %) | ||
![]() |
3.1 | 25 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)**удаленные **(% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)и локальные IP- камеры |
![]() |
2.1 | 26 | ))) |
27 | |(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:181px" %)((( | ||
28 | (% style="line-height:1.2" %) | ||
![]() |
3.1 | 29 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)RTSP-ссылка |
![]() |
2.1 | 30 | )))|(% style="border-bottom:1px solid #000000; border-left:1px solid #000000; border-right:1px solid #000000; border-top:1px solid #000000; padding:7px 7px 7px 7px; vertical-align:top; width:374px" %)((( |
31 | (% style="line-height:1.2" %) | ||
![]() |
3.1 | 32 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)удаленные и локальные IP- камеры |
![]() |
2.1 | 33 | |
34 | (% style="line-height:1.2" %) | ||
![]() |
3.1 | 35 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; overflow-wrap:break-word; overflow:hidden; text-decoration:none; white-space:pre-wrap" %)**видеорегистраторы** |
![]() |
2.1 | 36 | ))) |
37 | ))) | ||
38 | |||
39 | |||
![]() |
8.1 | 40 | (% style="line-height: 1.38; margin-bottom: 21px;" %) |
41 | == (% style="color:#000000; font-family:Arial,sans-serif; font-size:15pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Автоматическое добавление камер по ONVIF**(% style="color:#666666; font-family:Arial,sans-serif; font-size:15pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %) (%%) == | ||
![]() |
2.1 | 42 | |
43 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 44 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Преимуществом автоматического добавления через ONVIF является возможность быстро и сразу добавить несколько камер, что особенно удобно при работе с однородной системой видеонаблюдения, где все устройства находятся в одной сети и используют одинаковые параметры доступа. Кроме того, подключение по ONVIF позволяет серверу автоматически получать от камеры информацию о с детекции движения в кадре. |
![]() |
2.1 | 45 | |
46 | |||
47 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 48 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Что потребуется:** |
![]() |
2.1 | 49 | |
50 | |||
![]() |
3.1 | 51 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Логин и пароль (вводится один для всех камер). |
52 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Убедиться что камеры находятся в одной локальной сети с сервером. | ||
53 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Включить службы ONVIF и RTSP на стороне камеры. | ||
![]() |
2.1 | 54 | |
55 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 56 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Ограничения:** |
![]() |
2.1 | 57 | |
58 | |||
![]() |
3.1 | 59 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Метод работает только в пределах одной локальной сети, в которой расположен сервер. |
60 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Некоторые производители камер реализуют ONVIF частично или с ошибками — это может мешать работе поиска. | ||
![]() |
2.1 | 61 | |
![]() |
8.1 | 62 | |
![]() |
2.1 | 63 | (% style="line-height:1.38" %) |
![]() |
8.1 | 64 | (% style="font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial, sans-serif; color: rgb(0, 0, 0); font-weight: 700; font-style: normal; text-decoration: none" %)**Подключение:** |
![]() |
2.1 | 65 | |
66 | |||
![]() |
8.1 | 67 | (% style="line-height:1.38" %) |
68 | (% style="font-size: 11pt; font-variant: normal; white-space: pre-wrap; font-family: Arial, sans-serif; color: rgb(0, 0, 0); font-weight: 400; font-style: normal; text-decoration: none; border: none; display: inline-block; overflow: hidden; width: 602px; height: 284px" %)[[image:https://lh7-rt.googleusercontent.com/docsz/AD_4nXcg012l6SC_PF8Xys2W4qsdyg5EfleywuSc_4ruoYu2J46UAFhZYe0GuldzZEv5JMXWR5sqCcXGTe7_as6AIxFVG9XRxpfYqKbEeoKeFVF93bKamaFW1lwru-ycNHnRCeiKUqL-_Q?key=qlfTD9iJpXyogJJbeW58lg||height="284" width="602"]] | ||
![]() |
2.1 | 69 | |
![]() |
8.1 | 70 | |
71 | \\ | ||
72 | |||
73 | (% style="line-height: 1.38; margin-bottom: 21px;" %) | ||
74 | == (% style="font-size: 15pt; font-variant: normal; white-space: pre-wrap; font-family: Arial, sans-serif; color: rgb(0, 0, 0); font-weight: 700; font-style: normal; text-decoration: none" %)**Подключение камеры по ONVIF вручную**(%%) == | ||
75 | |||
76 | |||
![]() |
2.1 | 77 | (% style="line-height:1.38" %) |
![]() |
3.1 | 78 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Применяется, если камера не определяется автоматически или когда она находится в удаленной сети (в Интернете). Так же этот тип подключения позволяет серверу автоматически получать от камеры информацию о с детекции движения в кадре.(%%) |
![]() |
2.1 | 79 | |
80 | |||
81 | |||
82 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 83 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Что потребуется:** |
![]() |
2.1 | 84 | |
85 | |||
![]() |
3.1 | 86 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)IP-адрес камеры. |
87 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)ONVIF-порт (обычно 80, 8000 или 8899). | ||
88 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)RTSP-порт (обычно 554). | ||
89 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Логин и пароль. | ||
90 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Включить службы ONVIF и RTSP на стороне камеры. | ||
![]() |
2.1 | 91 | |
92 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 93 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Ограничения:** |
![]() |
2.1 | 94 | |
95 | |||
![]() |
3.1 | 96 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)ONVIF может работать нестабильно с некоторыми моделями камер из-за различий в реализации. |
![]() |
2.1 | 97 | |
98 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 99 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Подключение:** |
![]() |
2.1 | 100 | |
101 | |||
102 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 103 | (% style="border:none; color:#000000; display:inline-block; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; height:299px; overflow:hidden; text-decoration:none; white-space:pre-wrap; width:602px" %)[[image:https://lh7-rt.googleusercontent.com/docsz/AD_4nXc0gVm-CEHGdzFRAE6UOCqZjR49EJ68ozlWxfPdaC8QTnIShoRLvIHNcaHSeuHYxJIE0wKV1Yn7IjR6MR7XN16Ql8KYdpi3ZNPI8hpHZJNwo2U7X1Eifjrv7rpeMweclY8lyaqzBg?key=qlfTD9iJpXyogJJbeW58lg||height="299" width="602"]](%%) |
![]() |
2.1 | 104 | |
105 | |||
![]() |
8.1 | 106 | (% style="line-height: 1.38; margin-bottom: 21px;" %) |
107 | == (% style="color:#000000; font-family:Arial,sans-serif; font-size:15pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Подключение камеры по RTSP**(%%) == | ||
![]() |
2.1 | 108 | |
109 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 110 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Этот способ работает даже с простыми камерами, которые не поддерживают ONVIF. Подходит для подключения локальных и удаленных устройств, в том числе видеорегистраторов. Формат RTSP-ссылки можно найти в инструкции к камере, в Интернете или запросить у технической поддержки производителя. Проверить корректность RTSP-ссылки можно с помощью бесплатного плеера VLC — просто выберите «Открыть сетевой поток» и вставьте ссылку. |
![]() |
2.1 | 111 | |
112 | |||
113 | |||
114 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 115 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Что потребуется:** |
![]() |
2.1 | 116 | |
117 | |||
![]() |
3.1 | 118 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Полная RTSP-ссылка, включающая логин, пароль, IP-адрес и путь потока. |
119 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Включить службу RTSP на стороне камеры. | ||
![]() |
2.1 | 120 | |
121 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 122 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Ограничения:** |
![]() |
2.1 | 123 | |
124 | |||
![]() |
3.1 | 125 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Не передаёт события движения автоматически. Как настроить их передачу по протоколу SMTP читайте(% style="-webkit-text-decoration-skip:none; color:#4a86e8; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration-skip-ink:none; text-decoration:underline; white-space:pre-wrap" %) в нашей статье. |
126 | * (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)RTSP-ссылку нужно создать заранее. | ||
![]() |
2.1 | 127 | |
128 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 129 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Подключение:** |
![]() |
2.1 | 130 | |
131 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 132 | (% style="border:none; color:#000000; display:inline-block; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; height:297px; overflow:hidden; text-decoration:none; white-space:pre-wrap; width:602px" %)[[image:https://lh7-rt.googleusercontent.com/docsz/AD_4nXfssAknt3-LddvGFVl-uU7Lxmuv4p-H3lA7Q39SS4HzFoMtFGL--fClnSgm6Z8pn_PGddQVQ2qwtpgKS4FM-NDjgjVjnBG1xLTob71PPEFh9Wff5D8zXXzd7Hz9BQDB82PjWNK9?key=qlfTD9iJpXyogJJbeW58lg||height="297" width="602"]] |
![]() |
2.1 | 133 | |
134 | |||
![]() |
8.1 | 135 | (% style="line-height: 1.38; margin-bottom: 21px;" %) |
136 | == (% style="color:#000000; font-family:Arial,sans-serif; font-size:15pt; font-style:normal; font-variant:normal; font-weight:700; text-decoration:none; white-space:pre-wrap" %)**Рекомендации по выбору способа**(%%) == | ||
![]() |
2.1 | 137 | |
138 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 139 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Если ваши камеры находятся в одной сети с сервером, начните с автоматического поиска через ONVIF — это самый быстрый способ добавить устройства. При условии, что у камер одинаковые логины и пароли, они будут подключены автоматически. Если учетные данные у каждой камеры разные, устройства всё равно появятся в списке, но для начала трансляции потребуется вручную зайти в каждую камеру и указать правильный логин и пароль. |
![]() |
2.1 | 140 | |
141 | |||
142 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 143 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Если автоматический поиск не находит нужную камеру, попробуйте добавить ее вручную по ONVIF, указав IP-адрес, порты и доступ. |
![]() |
2.1 | 144 | |
145 | |||
146 | (% style="line-height:1.38" %) | ||
![]() |
3.1 | 147 | (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Если и этот способ не дал результата, используйте RTSP-ссылку. Формат ссылки можно найти в инструкции или запросить у производителя. Мы настоятельно рекомендуем предварительно проверить RTSP-ссылку через VLC-плеер — если видео запускается, значит, подключение возможно и через СтриксВид. |
![]() |
2.1 | 148 | |
149 |