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