Подключение IP-камер

Подключение исполнительных устройств, датчиков, контроллеров.

Модератор: immortal

pasha413
Сообщения: 131
Зарегистрирован: Сб янв 13, 2018 6:28 pm
Благодарил (а): 34 раза
Поблагодарили: 4 раза

Re: Подключение IP-камер

Сообщение pasha413 » Ср фев 21, 2018 10:27 pm

xor писал(а):
pasha413 писал(а):Здравствуйте
Ну, деталей у себя не помню, у меня на фтп пишет, единственно, в настройках не анонимус, а явно указаны логин/пароль
я для начала без пароля решил попробовать, но не получилось...
Моё: Orange Pi Zero H2 + DietPi / Paspberry Pi3b + MJD 3.41
Аватара пользователя
Sapizdullin
Сообщения: 408
Зарегистрирован: Сб фев 18, 2017 9:47 am
Откуда: Земля
Благодарил (а): 54 раза
Поблагодарили: 61 раз

Re: Подключение IP-камер

Сообщение Sapizdullin » Вт фев 27, 2018 10:07 am

pasha413 писал(а):
xor писал(а):
pasha413 писал(а):Здравствуйте
Ну, деталей у себя не помню, у меня на фтп пишет, единственно, в настройках не анонимус, а явно указаны логин/пароль
я для начала без пароля решил попробовать, но не получилось...
Зачем точка перед слешем? Пользователь заперт в домашней папке? Ftp пользователь?
Intel(R) Core(TM) i7-6700, Debian 9 "Stretch", Zoneminder, Avreg.
Аватара пользователя
xor
Сообщения: 2038
Зарегистрирован: Сб ноя 22, 2014 8:45 pm
Благодарил (а): 284 раза
Поблагодарили: 629 раз

Re: Подключение IP-камер

Сообщение xor » Вт фев 27, 2018 10:35 am

Ну у вас и зрение!

Отправлено с моего Redmi 4X через Tapatalk
Аватара пользователя
Sapizdullin
Сообщения: 408
Зарегистрирован: Сб фев 18, 2017 9:47 am
Откуда: Земля
Благодарил (а): 54 раза
Поблагодарили: 61 раз

Re: Подключение IP-камер

Сообщение Sapizdullin » Вт фев 27, 2018 3:11 pm

xor писал(а):Ну у вас и зрение!

Отправлено с моего Redmi 4X через Tapatalk
Водяная линза от КВН-49 спасает! ;)
Intel(R) Core(TM) i7-6700, Debian 9 "Stretch", Zoneminder, Avreg.
pasha413
Сообщения: 131
Зарегистрирован: Сб янв 13, 2018 6:28 pm
Благодарил (а): 34 раза
Поблагодарили: 4 раза

Re: Подключение IP-камер

Сообщение pasha413 » Вт фев 27, 2018 5:23 pm

Sapizdullin писал(а):Зачем точка перед слешем? Пользователь заперт в домашней папке? Ftp пользователь?
сейчас так, захожу через WinSCP (галка анонимный пользователь, ИП оранжа, порт 21) в корне папка IP_CAM в которой могу делать любые операции копировать/удалять картинки. но с камеры туда не пишет
Вложения
2018-02-27_17-29-09.png
2018-02-27_17-29-09.png (24.16 КБ) 7297 просмотров
2018-02-27_17-23-17.png
пользователь анонимус
2018-02-27_17-23-17.png (5.89 КБ) 7301 просмотр
Моё: Orange Pi Zero H2 + DietPi / Paspberry Pi3b + MJD 3.41
Аватара пользователя
Sapizdullin
Сообщения: 408
Зарегистрирован: Сб фев 18, 2017 9:47 am
Откуда: Земля
Благодарил (а): 54 раза
Поблагодарили: 61 раз

Re: Подключение IP-камер

Сообщение Sapizdullin » Вт фев 27, 2018 10:57 pm

pasha413 писал(а):
Sapizdullin писал(а):Зачем точка перед слешем? Пользователь заперт в домашней папке? Ftp пользователь?
сейчас так, захожу через WinSCP (галка анонимный пользователь, ИП оранжа, порт 21) в корне папка IP_CAM в которой могу делать любые операции копировать/удалять картинки. но с камеры туда не пишет
Уважаемый! Это гадание на кофейной гуще ввиду наличия отсутствия конфига ftpшника. И второе - Вы можете попасть туда из проводника винды? ftp://manamana? Или ftp://192.192.192192? Адрес естественно Ваш.
Расшарьте в фтп сразу эту папку! И будете туда попадать по умолчанию. Без путей.
Intel(R) Core(TM) i7-6700, Debian 9 "Stretch", Zoneminder, Avreg.
skyrider
Сообщения: 138
Зарегистрирован: Ср ноя 22, 2017 11:46 am
Благодарил (а): 35 раз
Поблагодарили: 7 раз

Re: Подключение IP-камер

Сообщение skyrider » Пн мар 05, 2018 3:34 pm

Народ, удалось кому нибудь вывести в МД онлайн видео с камеры Xiaomi XiaoFang Smart Camera или ей подобной?
Установил ХАК http://4pda.ru/forum/index.php?showtopi ... ry57248407 ,
с ним камера передает RTSP в формате rtsp://ВАШ_IP/unicast, в проге iSpy настраиваюRTSP в ручную, видео онлайн с камеры показывает.
В МД на сцену и меню получилось добавить камеру через простые устройства, но выводится статичная картинка, как в МД вывести онлайн видео с камеры?
Хотелось бы именно видео а не слайд-шоу, есть готовый кусок кода?
Cashmarik
Сообщения: 55
Зарегистрирован: Вс дек 18, 2016 7:29 am
Благодарил (а): 5 раз
Поблагодарили: 2 раза

Re: Подключение IP-камер

Сообщение Cashmarik » Вт мар 06, 2018 2:14 pm

Столкнулся с проблемой после переустановки MajorDomo.
При обнаружении движения срабатывает скрипт который делает захват фрагмента видео с rtsp

Код: Выделить всё

exec('C:\_majordomo\apps\ffmpeg\ffmpeg.exe -y -i rtsp://192.168.10.80:7447/f31bfe1f-c38d-3c3c-b1ad-4aa9fb3f6507_1 -t 5 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 15 C:/_majordomo/htdocs/cached/img/out2.mp4');
Все работало нормально, а сейчас почти при каждой отправке видео ложится апач.
Вот лог во вкладке Debug из MD:
СпойлерПоказать
19:41:01 0.78150800 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.203,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
19:40:45 0.39865500 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Operation timed out after 45016 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45.016,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":64740}
19:39:45 0.21967300 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Operation timed out after 45000 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":64632}
19:38:53 0.40290700 Error executing job WebCamK_detected (1027544): (C:\_majordomo\htdocs\lib\common.class.php)
19:38:53 0.39363700 GetURL to http://127.0.0.1:80/objects/?job=1027544 (source runScheduledJobs) finished with error:
Operation timed out after 45000 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?job=1027544","content_type":null,"http_code":0,"header_size":0,"request_size":163,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":64535}
19:38:45 0.10834200 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Operation timed out after 45000 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":64521}

19:06:34 0.55169600 Executing (exclusive): C:\_majordomo\htdocs/rc/madplay.exe C:\_majordomo\htdocs/sounds/dingdong.mp3
19:05:40 0.88786800 GetURL to http://127.0.0.1:80/objects/?object=Thi ... &m=StartUp (source raiseEvent) finished with error:
Operation timed out after 45000 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ThisComputer&op=m&m=StartUp","content_type":null,"http_code":0,"header_size":0,"request_size":186,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45,"namelookup_time":1.0e-6,"connect_time":0.016,"pretransfer_time":0.016,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":50903}
19:04:51 0.31731500 Closing thread: c:/_majordomo/server/php/php.exe -q ./scripts/cycle_skype.php --params "a:0:{}">>C:\_majordomo\htdocs/debmes/log_2018-03-06-cycle_skype.php.txt
19:04:50 0.38518700 Running maintenance script
19:04:50 0.29372900 Closing thread: c:/_majordomo/server/php/php.exe -q ./scripts/cycle_connect.php --params "a:0:{}">>C:\_majordomo\htdocs/debmes/log_2018-03-06-cycle_connect.php.txt
19:04:19 0.95315000 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Recv failure: Connection was reset
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":19.704,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":50773}
19:03:45 0.10741900 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Operation timed out after 45016 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45.016,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":50685}
19:02:09 0.58504200 GetURL to http://127.0.0.1:80/objects/?object=Thi ... &m=StartUp (source raiseEvent) finished with error:
Operation timed out after 45015 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ThisComputer&op=m&m=StartUp","content_type":null,"http_code":0,"header_size":0,"request_size":186,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45.015,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":50515}
19:01:20 0.19631100 Closing thread: c:/_majordomo/server/php/php.exe -q ./scripts/cycle_skype.php --params "a:0:{}">>C:\_majordomo\htdocs/debmes/log_2018-03-06-cycle_skype.php.txt
19:01:20 0.18579500 Closing thread: c:/_majordomo/server/php/php.exe -q ./scripts/cycle_connect.php --params "a:0:{}">>C:\_majordomo\htdocs/debmes/log_2018-03-06-cycle_connect.php.txt
19:01:19 0.04563500 Running maintenance script
19:00:03 0.30190900 GetURL to http://127.0.0.1:80/objects/?object=Clo ... =onNewHour (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewHour","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.218,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
19:00:02 0.07865700 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.204,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
18:59:01 0.32266900 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.204,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
18:58:01 0.55488500 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.203,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.203,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
Подскажите пути выхода из ситуации.
Вложения
apache_error.log
(428.86 КБ) 549 скачиваний
За это сообщение автора Cashmarik поблагодарил:
SLT (Вт апр 10, 2018 1:39 pm)
Рейтинг: 1.16%
Аватара пользователя
Vovix
Сообщения: 1155
Зарегистрирован: Пн янв 27, 2014 1:43 am
Откуда: г.Ижевск
Благодарил (а): 60 раз
Поблагодарили: 531 раз
Контактная информация:

Re: Подключение IP-камер

Сообщение Vovix » Ср мар 14, 2018 7:46 pm

Cashmarik писал(а):Столкнулся с проблемой после переустановки MajorDomo.
При обнаружении движения срабатывает скрипт который делает захват фрагмента видео с rtsp

Код: Выделить всё

exec('C:\_majordomo\apps\ffmpeg\ffmpeg.exe -y -i rtsp://192.168.10.80:7447/f31bfe1f-c38d-3c3c-b1ad-4aa9fb3f6507_1 -t 5 -f mp4 -vcodec libx264 -pix_fmt yuv420p -an -vf scale=w=640:h=480:force_original_aspect_ratio=decrease -r 15 C:/_majordomo/htdocs/cached/img/out2.mp4');
Все работало нормально, а сейчас почти при каждой отправке видео ложится апач.
Вот лог во вкладке Debug из MD:
СпойлерПоказать
19:41:01 0.78150800 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.203,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
19:40:45 0.39865500 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Operation timed out after 45016 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45.016,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":64740}
19:39:45 0.21967300 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Operation timed out after 45000 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":64632}
19:38:53 0.40290700 Error executing job WebCamK_detected (1027544): (C:\_majordomo\htdocs\lib\common.class.php)
19:38:53 0.39363700 GetURL to http://127.0.0.1:80/objects/?job=1027544 (source runScheduledJobs) finished with error:
Operation timed out after 45000 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?job=1027544","content_type":null,"http_code":0,"header_size":0,"request_size":163,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":64535}
19:38:45 0.10834200 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Operation timed out after 45000 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":64521}

19:06:34 0.55169600 Executing (exclusive): C:\_majordomo\htdocs/rc/madplay.exe C:\_majordomo\htdocs/sounds/dingdong.mp3
19:05:40 0.88786800 GetURL to http://127.0.0.1:80/objects/?object=Thi ... &m=StartUp (source raiseEvent) finished with error:
Operation timed out after 45000 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ThisComputer&op=m&m=StartUp","content_type":null,"http_code":0,"header_size":0,"request_size":186,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45,"namelookup_time":1.0e-6,"connect_time":0.016,"pretransfer_time":0.016,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":50903}
19:04:51 0.31731500 Closing thread: c:/_majordomo/server/php/php.exe -q ./scripts/cycle_skype.php --params "a:0:{}">>C:\_majordomo\htdocs/debmes/log_2018-03-06-cycle_skype.php.txt
19:04:50 0.38518700 Running maintenance script
19:04:50 0.29372900 Closing thread: c:/_majordomo/server/php/php.exe -q ./scripts/cycle_connect.php --params "a:0:{}">>C:\_majordomo\htdocs/debmes/log_2018-03-06-cycle_connect.php.txt
19:04:19 0.95315000 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Recv failure: Connection was reset
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":19.704,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":50773}
19:03:45 0.10741900 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Operation timed out after 45016 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":188,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45.016,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":50685}
19:02:09 0.58504200 GetURL to http://127.0.0.1:80/objects/?object=Thi ... &m=StartUp (source raiseEvent) finished with error:
Operation timed out after 45015 milliseconds with 0 bytes received
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ThisComputer&op=m&m=StartUp","content_type":null,"http_code":0,"header_size":0,"request_size":186,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":45.015,"namelookup_time":1.0e-6,"connect_time":1.0e-6,"pretransfer_time":1.0e-6,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"127.0.0.1","certinfo":[],"primary_port":80,"local_ip":"127.0.0.1","local_port":50515}
19:01:20 0.19631100 Closing thread: c:/_majordomo/server/php/php.exe -q ./scripts/cycle_skype.php --params "a:0:{}">>C:\_majordomo\htdocs/debmes/log_2018-03-06-cycle_skype.php.txt
19:01:20 0.18579500 Closing thread: c:/_majordomo/server/php/php.exe -q ./scripts/cycle_connect.php --params "a:0:{}">>C:\_majordomo\htdocs/debmes/log_2018-03-06-cycle_connect.php.txt
19:01:19 0.04563500 Running maintenance script
19:00:03 0.30190900 GetURL to http://127.0.0.1:80/objects/?object=Clo ... =onNewHour (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewHour","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.218,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
19:00:02 0.07865700 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.204,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
18:59:01 0.32266900 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.204,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
18:58:01 0.55488500 GetURL to http://127.0.0.1:80/objects/?object=Clo ... nNewMinute (source raiseEvent) finished with error:
Failed to connect to 127.0.0.1 port 80: Connection refused
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.203,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
{"url":"http:\/\/127.0.0.1:80\/objects\/?object=ClockChime&op=m&m=onNewMinute","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.203,"namelookup_time":1.0e-6,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0}
Подскажите пути выхода из ситуации.
Вам сюда, я так думаю!: viewtopic.php?f=7&t=3788&start=420#p74722
Мой -CONNECT-
Windows 7(PHP 7.2) + Raspberry Pi(освещение на 1-Wire) + MP751(управление) + ESP8266(сенсоры) + LAN(сенсоры)
-=: Если вам помогло моё сообщение, нажмите кнопку "Поблагодарить за сообщение автора: Vovix" (кнопка Спасибо) справа! :=-
directman66
Сообщения: 2801
Зарегистрирован: Пн дек 26, 2016 9:51 am
Откуда: Екатеринбург
Благодарил (а): 380 раз
Поблагодарили: 693 раза
Контактная информация:

Re: Подключение IP-камер

Сообщение directman66 » Пн апр 02, 2018 10:03 pm

Нашел как увеличить разрешение снапшотов китайских камер H264, которые возвращают cнап по адресу http://192.168.1.xxx/webcapture.jpg?com ... &channel=0

По умолчанию разрешение снапшотов ужасно маленькое 704х576
В настройках камеры есть импорт/экспорт конфигурации. Экспортируем конфиг - скачается файл с расширением .cfg, это zip архив. Внутри кроме всего прочего есть директория Json, в ней куча файлов. Настройки битрейта, разрешения картинки и т.д. прописаны в файле AVEnc. Этот файл сжат gzip архиватором.
Удобнее, наверное, какой-нибудь xml или json редактор использовать для редактирования, я обычным текстовым редактором менял.
В моем случае: в распакованном AVEnc с самого конца файла поиском нашел строчку "VideoEnable" : true, убедился, что это настройки снапшота (FPS=1), поменял разрешение с D1 на 1080P.
Всё, упаковываем измененный AVEnc gunzip-ом с максимальной компрессией, перезаписываем его в директорию Json в архиве конфига. Через импорт настроек в камере заливаем измененный конфиг.
Думаю, идея в общем понятна. Не забудьте сохранить оригинальный конфиг на всякий случай.
ipcam_res.png
ipcam_res.png (116.12 КБ) 5742 просмотра
Проверено, РАБОТАЕТ!!!!
За это сообщение автора directman66 поблагодарил:
Ron (Пн апр 02, 2018 10:18 pm)
Рейтинг: 1.16%
Если вам помогло данное сообщение, не поленитесь нажать кнопку "спасибо".
CONNECT | Оборудование | Блог | Дополнения | Email | Telegram
Ответить