s60 Posted November 5, 2019 Share Posted November 5, 2019 (edited) Keenetic Omni, Версия ОС 3.1.10 Хочу подключить USB камеру (совместимая 1e4e:0102 USB 2.0 Camera Cubeternet GL-UPC822 UVC WebCam), в Общих настройках установил компоненты OPKG - Модули ядра для поддержки USB-видео - из коробки не работает (как, например, та же Transmission появляется в разделе Приложения), потому что выпилили tot во второй версии прошивки. Подключаюсь по ssh к роутеру и вижу CLI вида "(config)>", а здесь везде в примерах "нормальный" ~ # - как вы к нему переходите? В примерах пишут "~ # opkg install *****" , ясен пень мой "(configure)> opkg install ******" говорит "Command::Base error[7405600]: no such command: install." .... (config)> opkg list-installed Command::Base error[7405600]: no such command: list-installed. Вопрос: установленных модулей USB UVC недостаточно для работы USB камеры? В ппримерах все время упоминается Entware - как я понял OPKG это пакетный менеджер и Entware тоже пакетный менеджер.... OPKG недостаточно для работы камеры? Quote Для подключения по SSH к Entware Как подключаться по SSH именно Entware ? Флешку с EXT3 подключил, для OPKG указал. Как далее ей пользоваться как хранилищем пакетов/программ ? Edited November 5, 2019 by s60 Quote Link to comment Share on other sites More sharing options...
Wulf Posted November 10, 2019 Share Posted November 10, 2019 (edited) Опять лажа. Переставил OPKG. /dev/video0 вижу. Запускаю mjpg_streamer yes | mjpg_streamer -b -i "input_uvc.so -r 1600x896 -f 5" -o "output_http.so -p 8070 -w /opt/share/www/webcam" в логах Ноя 10 16:03:09 MJPG-streamer [10092] starting application Ноя 10 16:03:09 MJPG-streamer [10092] enabling daemon mode Ноя 10 16:03:09 MJPG-streamer [10094] MJPG Streamer Version.: 2.0 Ноя 10 16:03:09 MJPG-streamer [10094] ERROR: could not find input plugin Ноя 10 16:03:09 MJPG-streamer [10094] Perhaps you want to adjust the search path with: Ноя 10 16:03:09 MJPG-streamer [10094] # export LD_LIBRARY_PATH=/path/to/plugin/folder Ноя 10 16:03:09 MJPG-streamer [10094] dlopen: input_uvc.so: cannot open shared object file: No such file or directory Помню легко ларчик открывался, а сейчас рою - не могу найти. Edited November 10, 2019 by Wulf Quote Link to comment Share on other sites More sharing options...
Xfda Posted November 10, 2019 Share Posted November 10, 2019 У меня тоже так. Даже папку www не создаёт. Quote Link to comment Share on other sites More sharing options...
TheBB Posted November 10, 2019 Share Posted November 10, 2019 В OpenWRT пакеты нарезали: # opkg list | grep mjpg-streamer mjpg-streamer - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams mjpg-streamer-input-file - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the file input plugin. mjpg-streamer-input-http - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the http input plugin. mjpg-streamer-input-uvc - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the UVC input plugin. mjpg-streamer-output-file - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the file output plugin. mjpg-streamer-output-http - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the HTTP output plugin. mjpg-streamer-output-rtsp - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the RTSP output plugin. mjpg-streamer-output-zmq - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the ZeroMQ output plugin. mjpg-streamer-www - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides full version of the web content. Includes cambozola applet. mjpg-streamer-www-simple - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides simple version of the web content. # Quote Link to comment Share on other sites More sharing options...
s60 Posted November 10, 2019 Author Share Posted November 10, 2019 2 hours ago, TheBB said: В OpenWRT пакеты нарезали: # opkg list | grep mjpg-streamer mjpg-streamer - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams mjpg-streamer-input-file - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the file input plugin. mjpg-streamer-input-http - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the http input plugin. mjpg-streamer-input-uvc - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the UVC input plugin. mjpg-streamer-output-file - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the file output plugin. mjpg-streamer-output-http - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the HTTP output plugin. mjpg-streamer-output-rtsp - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the RTSP output plugin. mjpg-streamer-output-zmq - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the ZeroMQ output plugin. mjpg-streamer-www - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides full version of the web content. Includes cambozola applet. mjpg-streamer-www-simple - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides simple version of the web content. # ~ # opkg list | grep mjpg-streamer mjpg-streamer - r116-2 - Streaming application for Linux-UVC compatible webcams ~ # Quote Link to comment Share on other sites More sharing options...
s60 Posted November 10, 2019 Author Share Posted November 10, 2019 On 10/11/2019 at 4:25 PM, Xfda said: Сначала установил kmod: opkg install kmod_ndms ~ # opkg install kmod_ndms Unknown package 'kmod_ndms'. Collected errors: * opkg_install_cmd: Cannot install package kmod_ndms. ~ # как установили? Quote Link to comment Share on other sites More sharing options...
s60 Posted November 10, 2019 Author Share Posted November 10, 2019 On 10/11/2019 at 3:42 PM, Ari100krat said: Можно проще: modprobe --first-time -v uvcvideo эта команда проверит загруженные модули для видео, и доставит те, которых не найдёт (опцию -v можно убрать - она для подробного вывода результатов). ~ # modprobe -sh: modprobe: not found ~ # как modprobe добавить ? Quote Link to comment Share on other sites More sharing options...
TheBB Posted November 10, 2019 Share Posted November 10, 2019 @s60 , у Вас "старая" система пакетов "Entware-Keenetic", переходите на новую "Entware" Quote Link to comment Share on other sites More sharing options...
s60 Posted November 10, 2019 Author Share Posted November 10, 2019 4 minutes ago, TheBB said: @s60 , у Вас "старая" система пакетов "Entware-Keenetic", переходите на новую "Entware" спасибо, пошел переделывать ..... устанавливал по этой статье на хабре а там ссылка на http://pkg.entware-keenetic.ru/binaries/keenle/installer/installer-keenle.tar.gz флешка сейчас ext3 - тут прочитал ,что лучше бы ext2 - так как лучше ex2 (без журнала) или ext3 (с журналом) ? Quote Link to comment Share on other sites More sharing options...
TheBB Posted November 10, 2019 Share Posted November 10, 2019 по мне, без разницы, хоть ext4 Quote Link to comment Share on other sites More sharing options...
s60 Posted November 10, 2019 Author Share Posted November 10, 2019 с установленным mjpg-streamer было так insmod /lib/modules/4.9-ndm-3/uvcvideo.ko insmod: can't insert '/lib/modules/4.9-ndm-3/uvcvideo.ko': unknown symbol in module, or unknown parameter удалил mjpg-streamer "insmod /lib/modules/4.9-ndm-3/uvcvideo.ko" - без проблем..... как так то ? Quote Link to comment Share on other sites More sharing options...
TheBB Posted November 10, 2019 Share Posted November 10, 2019 важны наличие и порядок загрузки модулей (в теме и по форуму есть примеры) /opt/home # modinfo /lib/modules/4.9-ndm-3/uvcvideo.ko | grep ^dep depends: videodev,videobuf2-core,usbcore,videobuf2-v4l2,videobuf2-vmalloc /opt/home # Quote Link to comment Share on other sites More sharing options...
s60 Posted November 10, 2019 Author Share Posted November 10, 2019 переустановил Entware установил все пакеты mjpg_stream* что есть в репозитории mjpg-streamer mjpg-streamer-input-file mjpg-streamer-input-uvc mjpg-streamer-output-file mjpg-streamer-output-http mjpg-streamer-www камера определилась ~ # lsusb Bus 001 Device 001: ID 1d6b:0002 Bus 001 Device 010: ID 090c:1000 Bus 001 Device 002: ID 05e3:0608 Bus 002 Device 001: ID 1d6b:0001 Bus 001 Device 003: ID 1e4e:0102 <---- моя USB камера ~ # ls /dev/vid* /dev/video0 установид kmod для modprobe --first-time -v uvcvideo делаю: BusyBox v1.31.0 () built-in shell (ash) ~ # /opt/etc/init.d/S96mjpg-streamer start starting mjpg_streamer... enabling daemon modeforked to background (5682) ~ # /opt/etc/init.d/S96mjpg-streamer stop stopping mjpg_streamer... killall: mjpg_streamer: no process killed ~ # modprobe --first-time -v uvcvideo ~ # mjpg_streamer -b -i "input_uvc.so -r 320x240 -f 5" -o "output_http.so -p 3000 -w /opt/share/www/webcam" enabling daemon mode~ # forked to background (6649) ~ # /opt/etc/init.d/S96mjpg-streamer stop stopping mjpg_streamer... killall: mjpg_streamer: no process killed ~ # /opt/etc/init.d/S96mjpg-streamer status PID of mjpg_streamer is... ~ # /opt/etc/init.d/S96mjpg-streamer start starting mjpg_streamer... enabling daemon modeforked to background (8529) ~ # /opt/etc/init.d/S96mjpg-streamer status PID of mjpg_streamer is... ~ # htop ~ # ls /dev/vid* /dev/video0 ~ # делаю ~ # /opt/etc/init.d/S96mjpg-streamer start по адресу http://192.168.200.1:3000/stream_simple.html - Попытка соединения не удалась. Firefox не может установить соединение с сервером 192.168.200.1:3000. в какую сторону копать ? Quote Link to comment Share on other sites More sharing options...
s60 Posted November 10, 2019 Author Share Posted November 10, 2019 (edited) в журнале роутера есть Ноя 10 22:43:14 MJPG-streamer [6649] dlopen: input_uvc.so: cannot open shared object file: No such file or directory полный журнал по части запуска mjpg-streamer Spoiler Ноя 10 22:40:18 MJPG-streamer [5680] starting application Ноя 10 22:40:18 MJPG-streamer [5680] enabling daemon mode Ноя 10 22:40:18 MJPG-streamer [5682] MJPG Streamer Version.: 2.0 Ноя 10 22:40:18 MJPG-streamer [5682] ERROR: could not find input plugin Ноя 10 22:40:18 MJPG-streamer [5682] Perhaps you want to adjust the search path with: Ноя 10 22:40:18 MJPG-streamer [5682] # export LD_LIBRARY_PATH=/path/to/plugin/folder Ноя 10 22:40:18 MJPG-streamer [5682] dlopen: input_uvc.so: cannot open shared object file: No such file or directory Ноя 10 22:43:14 MJPG-streamer [6647] starting application Ноя 10 22:43:14 MJPG-streamer [6647] enabling daemon mode Ноя 10 22:43:14 MJPG-streamer [6649] MJPG Streamer Version.: 2.0 Ноя 10 22:43:14 MJPG-streamer [6649] ERROR: could not find input plugin Ноя 10 22:43:14 MJPG-streamer [6649] Perhaps you want to adjust the search path with: Ноя 10 22:43:14 MJPG-streamer [6649] # export LD_LIBRARY_PATH=/path/to/plugin/folder Ноя 10 22:43:14 MJPG-streamer [6649] dlopen: input_uvc.so: cannot open shared object file: No such file or directory Ноя 10 22:48:55 MJPG-streamer [8527] starting application Ноя 10 22:48:55 MJPG-streamer [8527] enabling daemon mode Ноя 10 22:48:55 MJPG-streamer [8529] MJPG Streamer Version.: 2.0 Ноя 10 22:48:55 MJPG-streamer [8529] ERROR: could not find input plugin Ноя 10 22:48:55 MJPG-streamer [8529] Perhaps you want to adjust the search path with: Ноя 10 22:48:55 MJPG-streamer [8529] # export LD_LIBRARY_PATH=/path/to/plugin/folder Ноя 10 22:48:55 MJPG-streamer [8529] dlopen: input_uvc.so: cannot open shared object file: No such file or directory в директории /opt/lib/mjpg-streamer есть файлы: input_file.so input_uvc.so output_file.so output_http.so Edited November 10, 2019 by s60 Quote Link to comment Share on other sites More sharing options...
TheBB Posted November 11, 2019 Share Posted November 11, 2019 13 часа назад, s60 сказал: Ноя 10 22:48:55 MJPG-streamer [8529] # export LD_LIBRARY_PATH=/path/to/plugin/folder Значит-с, надо добавить в скрипт запуска, раз просит "export LD_LIBRARY_PATH=/opt/lib/mjpg-streamer" или указывать полный путь к плагинам "mjpg_streamer -b -i "/opt/lib/mjpg-streamer/input_uvc.so...." на 2.16 - работает, на 3.х - проверить не могу (камера припаяна в GigaII) Quote Link to comment Share on other sites More sharing options...
s60 Posted November 11, 2019 Author Share Posted November 11, 2019 1 hour ago, TheBB said: Значит-с, надо добавить в скрипт запуска, раз просит "export LD_LIBRARY_PATH=/opt/lib/mjpg-streamer" или указывать полный путь к плагинам "mjpg_streamer -b -i "/opt/lib/mjpg-streamer/input_uvc.so...." Заработало ! добавил в скрипт #!/bin/sh prefix="/opt" PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin export LD_LIBRARY_PATH=/opt/lib/mjpg-streamer start() { и картинка появилась... и status выдает PID процесса.... 1 Quote Link to comment Share on other sites More sharing options...
s60 Posted November 11, 2019 Author Share Posted November 11, 2019 правда htop показывает загрузку проца 100% пока скрипт работает..... (без разницы смотреть видео в браузере или закрыть вкладку) Quote Link to comment Share on other sites More sharing options...
TheBB Posted November 11, 2019 Share Posted November 11, 2019 (edited) попробуйте с такими параметрами: ' mjpg_streamer -b -i "input_uvc.so" -o "output_http.so -p 3000 -w /opt/share/www/webcam" ' upd: Скрытый текст ~ # v4l2-ctl --all Driver Info: Driver name : uvcvideo Card type : UVC Camera (046d:0825) Bus info : usb-ehci-platform-2 Driver version : 3.4.113 Capabilities : 0x04000001 Video Capture Streaming Video input : 0 (Camera 1: ok) Format Video Capture: Width/Height : 640/480 Pixel Format : 'MJPG' (MJPEG) Field : None Bytes per Line : 0 Size Image : 341333 Colorspace : sRGB Transfer Function : Default (maps to sRGB) YCbCr/HSV Encoding: Default (maps to ITU-R 601) Quantization : Default (maps to Full Range) Crop Capability Video Capture: Bounds : Left 0, Top 0, Width 640, Height 480 Default : Left 0, Top 0, Width 640, Height 480 Pixel Aspect: 1/1 Streaming Parameters Video Capture: Capabilities : timeperframe Frames per second: 30.000 (30/1) Read buffers : 0 brightness 0x00980900 (int) : min=0 max=255 step=1 default=128 value=128 contrast 0x00980901 (int) : min=0 max=255 step=1 default=32 value=32 saturation 0x00980902 (int) : min=0 max=255 step=1 default=32 value=32 white_balance_temperature_auto 0x0098090c (bool) : default=1 value=1 gain 0x00980913 (int) : min=0 max=255 step=1 default=64 value=63 power_line_frequency 0x00980918 (menu) : min=0 max=2 default=2 value=0 white_balance_temperature 0x0098091a (int) : min=0 max=10000 step=10 default=4000 value=1070 sharpness 0x0098091b (int) : min=0 max=255 step=1 default=24 value=24 backlight_compensation 0x0098091c (int) : min=0 max=1 step=1 default=0 value=1 exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=3 exposure_absolute 0x009a0902 (int) : min=1 max=10000 step=1 default=166 value=166 exposure_auto_priority 0x009a0903 (bool) : default=0 value=1 ~ # Edited November 11, 2019 by TheBB upd Quote Link to comment Share on other sites More sharing options...
s60 Posted November 11, 2019 Author Share Posted November 11, 2019 1 hour ago, TheBB said: попробуйте с такими параметрами: ' mjpg_streamer -b -i "input_uvc.so" -o "output_http.so -p 3000 -w /opt/share/www/webcam" ' нет видео с таким ключом Quote Link to comment Share on other sites More sharing options...
TheBB Posted November 11, 2019 Share Posted November 11, 2019 1 час назад, s60 сказал: нет видео с таким ключом пробуйте http://bin.entware.net/mipselsf-k3.4/test/ Quote Link to comment Share on other sites More sharing options...
s60 Posted November 11, 2019 Author Share Posted November 11, 2019 1 hour ago, TheBB said: пробуйте http://bin.entware.net/mipselsf-k3.4/test/ как устанавливать именно из test ветки? так-то я ставил opkg install mjpg-streamer P.S. перезагрузил роутер (а то загружал модули через modprobe --first-time -v uvcvideo а в скрипте S96mjpg-streamer модули закомментированы решеткой, хотел проверить не отвалится ли видео после перезагрузки..... - отвалась вся флешка - через самбу пустая, через web-морду роутера тоже пустая, мол 27 МБ из 2 ГБ занято.... по ssh не цепляется.... подумал, что из-за ext2 проблема, посмотрел на компе - все файлы на месте, воткнул в роутер - все на месте, работает..... Quote Link to comment Share on other sites More sharing options...
TheBB Posted November 11, 2019 Share Posted November 11, 2019 34 минуты назад, s60 сказал: как устанавливать именно из test ветки? загрузить любым доступным способом и установить вручную, типа такого Скрытый текст апплетом wget от busybox, у Вас пакетов будет меньше (я ставил всё "оптом") ~ # mkdir tmp ~ # cd tmp/ ~/tmp # for pkgs in $(opkg list-installed | grep mjpg | cut -f1 -d' ' ); do wget http://bin.entware.net/mipselsf-k3.4/test/"$pkgs"_2018-10-25-3a_mipsel-3.4.ipk ; done Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer_2018-1 100% |***********************************************************************************| 8028 0:00:00 ETA 'mjpg-streamer_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.176.50:80) saving to 'mjpg-streamer-input-file_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-input- 100% |***********************************************************************************| 6335 0:00:00 ETA 'mjpg-streamer-input-file_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer-input-http_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-input- 100% |***********************************************************************************| 6289 0:00:00 ETA 'mjpg-streamer-input-http_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.176.50:80) saving to 'mjpg-streamer-input-uvc_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-input- 100% |***********************************************************************************| 20681 0:00:00 ETA 'mjpg-streamer-input-uvc_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer-output-file_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-output 100% |***********************************************************************************| 7558 0:00:00 ETA 'mjpg-streamer-output-file_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.176.50:80) saving to 'mjpg-streamer-output-http_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-output 100% |***********************************************************************************| 15353 0:00:00 ETA 'mjpg-streamer-output-http_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer-output-rtsp_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-output 100% |***********************************************************************************| 4961 0:00:00 ETA 'mjpg-streamer-output-rtsp_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.176.50:80) saving to 'mjpg-streamer-output-zmq_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-output 100% |***********************************************************************************| 8586 0:00:00 ETA 'mjpg-streamer-output-zmq_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer-www_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-www_20 100% |***********************************************************************************| 129k 0:00:00 ETA 'mjpg-streamer-www_2018-10-25-3a_mipsel-3.4.ipk' saved ~/tmp # ls -1 mjpg-streamer-input-file_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-input-http_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-input-uvc_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-output-file_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-output-http_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-output-rtsp_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-output-zmq_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-www_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer_2018-10-25-3a_mipsel-3.4.ipk ~/tmp # собсна, установка руками по одному (или оптом) ~/tmp # ~/tmp # for pkgs in $(ls -1); do opkg install --force-reinstall --force-overwrite $pkgs ; done Removing package mjpg-streamer-input-file from root... Installing mjpg-streamer-input-file (2018-10-25-3a) to root... Configuring mjpg-streamer-input-file. Removing package mjpg-streamer-input-http from root... Installing mjpg-streamer-input-http (2018-10-25-3a) to root... Configuring mjpg-streamer-input-http. Removing package mjpg-streamer-input-uvc from root... Installing mjpg-streamer-input-uvc (2018-10-25-3a) to root... Configuring mjpg-streamer-input-uvc. Removing package mjpg-streamer-output-file from root... Installing mjpg-streamer-output-file (2018-10-25-3a) to root... Configuring mjpg-streamer-output-file. Removing package mjpg-streamer-output-http from root... Installing mjpg-streamer-output-http (2018-10-25-3a) to root... Configuring mjpg-streamer-output-http. Removing package mjpg-streamer-output-rtsp from root... Installing mjpg-streamer-output-rtsp (2018-10-25-3a) to root... Configuring mjpg-streamer-output-rtsp. Removing package mjpg-streamer-output-zmq from root... Installing mjpg-streamer-output-zmq (2018-10-25-3a) to root... Configuring mjpg-streamer-output-zmq. Removing package mjpg-streamer-www from root... Installing mjpg-streamer-www (2018-10-25-3a) to root... Configuring mjpg-streamer-www. Removing package mjpg-streamer from root... Installing mjpg-streamer (2018-10-25-3a) to root... Configuring mjpg-streamer. ~/tmp # Quote Link to comment Share on other sites More sharing options...
s60 Posted November 12, 2019 Author Share Posted November 12, 2019 сделал как описано: 18 hours ago, TheBB said: загрузить любым доступным способом и установить вручную, типа такого Reveal hidden contents апплетом wget от busybox, у Вас пакетов будет меньше (я ставил всё "оптом") ~ # mkdir tmp ~ # cd tmp/ ~/tmp # for pkgs in $(opkg list-installed | grep mjpg | cut -f1 -d' ' ); do wget http://bin.entware.net/mipselsf-k3.4/test/"$pkgs"_2018-10-25-3a_mipsel-3.4.ipk ; done Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer_2018-1 100% |***********************************************************************************| 8028 0:00:00 ETA 'mjpg-streamer_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.176.50:80) saving to 'mjpg-streamer-input-file_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-input- 100% |***********************************************************************************| 6335 0:00:00 ETA 'mjpg-streamer-input-file_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer-input-http_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-input- 100% |***********************************************************************************| 6289 0:00:00 ETA 'mjpg-streamer-input-http_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.176.50:80) saving to 'mjpg-streamer-input-uvc_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-input- 100% |***********************************************************************************| 20681 0:00:00 ETA 'mjpg-streamer-input-uvc_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer-output-file_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-output 100% |***********************************************************************************| 7558 0:00:00 ETA 'mjpg-streamer-output-file_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.176.50:80) saving to 'mjpg-streamer-output-http_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-output 100% |***********************************************************************************| 15353 0:00:00 ETA 'mjpg-streamer-output-http_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer-output-rtsp_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-output 100% |***********************************************************************************| 4961 0:00:00 ETA 'mjpg-streamer-output-rtsp_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.176.50:80) saving to 'mjpg-streamer-output-zmq_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-output 100% |***********************************************************************************| 8586 0:00:00 ETA 'mjpg-streamer-output-zmq_2018-10-25-3a_mipsel-3.4.ipk' saved Connecting to bin.entware.net (104.27.177.50:80) saving to 'mjpg-streamer-www_2018-10-25-3a_mipsel-3.4.ipk' mjpg-streamer-www_20 100% |***********************************************************************************| 129k 0:00:00 ETA 'mjpg-streamer-www_2018-10-25-3a_mipsel-3.4.ipk' saved ~/tmp # ls -1 mjpg-streamer-input-file_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-input-http_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-input-uvc_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-output-file_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-output-http_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-output-rtsp_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-output-zmq_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer-www_2018-10-25-3a_mipsel-3.4.ipk mjpg-streamer_2018-10-25-3a_mipsel-3.4.ipk ~/tmp # собсна, установка руками по одному (или оптом) ~/tmp # ~/tmp # for pkgs in $(ls -1); do opkg install --force-reinstall --force-overwrite $pkgs ; done Removing package mjpg-streamer-input-file from root... Installing mjpg-streamer-input-file (2018-10-25-3a) to root... Configuring mjpg-streamer-input-file. Removing package mjpg-streamer-input-http from root... Installing mjpg-streamer-input-http (2018-10-25-3a) to root... Configuring mjpg-streamer-input-http. Removing package mjpg-streamer-input-uvc from root... Installing mjpg-streamer-input-uvc (2018-10-25-3a) to root... Configuring mjpg-streamer-input-uvc. Removing package mjpg-streamer-output-file from root... Installing mjpg-streamer-output-file (2018-10-25-3a) to root... Configuring mjpg-streamer-output-file. Removing package mjpg-streamer-output-http from root... Installing mjpg-streamer-output-http (2018-10-25-3a) to root... Configuring mjpg-streamer-output-http. Removing package mjpg-streamer-output-rtsp from root... Installing mjpg-streamer-output-rtsp (2018-10-25-3a) to root... Configuring mjpg-streamer-output-rtsp. Removing package mjpg-streamer-output-zmq from root... Installing mjpg-streamer-output-zmq (2018-10-25-3a) to root... Configuring mjpg-streamer-output-zmq. Removing package mjpg-streamer-www from root... Installing mjpg-streamer-www (2018-10-25-3a) to root... Configuring mjpg-streamer-www. Removing package mjpg-streamer from root... Installing mjpg-streamer (2018-10-25-3a) to root... Configuring mjpg-streamer. ~/tmp # удалил все пакеты mjpg-stream* руками, закинул скачанные новые пакеты по SMB и установил все пачкой из примера выше итог: 1) ls: /dev/vid*: No such file or directory 2) в браузере картинки нет - попытка соединения не удалась 3) в журнале появилась записть про EXT4 , ранее слова EXT4 не было, флешка в EXT2 - про кого речь-то ? в журнале вроде нет криминала про камеру Spoiler Ноя 12 15:09:34 ndm kernel: EXT4-fs error (device sda1): ext4_mb_generate_buddy:759: group 1, block bitmap and bg descriptor inconsistent: 31873 vs 32135 free clusters Ноя 12 15:15:55 MJPG-streamer [20601] starting application Ноя 12 15:15:55 MJPG-streamer [20601] enabling daemon mode Ноя 12 15:15:55 MJPG-streamer [20603] MJPG Streamer Version.: 2.0 Ноя 12 15:15:55 MJPG-streamer [20603] Using V4L2 device.: /dev/video0 <--- это наверно из скрипта S96mjpg_streamer взято Ноя 12 15:15:55 MJPG-streamer [20603] Desired Resolution: 640 x 480 Ноя 12 15:15:55 MJPG-streamer [20603] Frames Per Second.: 24 Ноя 12 15:15:55 MJPG-streamer [20603] Format............: YUYV Ноя 12 15:15:55 MJPG-streamer [20603] JPEG Quality......: 80 Ноя 12 15:15:55 MJPG-streamer [20603] TV-Norm...........: DEFAULT Ноя 12 15:15:55 MJPG-streamer [20603] init_VideoIn failed Похоже mjpg-stream не стартует - по status нет PID процесса ~ # /opt/etc/init.d/S96mjpg-streamer start starting mjpg_streamer... enabling daemon mode~ # forked to background (23488) ~ # /opt/etc/init.d/S96mjpg-streamer status PID of mjpg_streamer is... ~ # Quote Link to comment Share on other sites More sharing options...
s60 Posted November 12, 2019 Author Share Posted November 12, 2019 упс... пакеты не удалились.... а наслоились..... Spoiler ~ # opkg list | grep mjpg-streamer mjpg-streamer - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams mjpg-streamer - 2018-10-25-3a mjpg-streamer-input-file - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the file input plugin. mjpg-streamer-input-file - 2018-10-25-3a mjpg-streamer-input-http - 2018-10-25-3a mjpg-streamer-input-uvc - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the UVC input plugin. mjpg-streamer-input-uvc - 2018-10-25-3a mjpg-streamer-output-file - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the file output plugin. mjpg-streamer-output-file - 2018-10-25-3a mjpg-streamer-output-http - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides the HTTP output plugin. mjpg-streamer-output-http - 2018-10-25-3a mjpg-streamer-output-rtsp - 2018-10-25-3a mjpg-streamer-www - 2018-10-25-3 - Streaming application for Linux-UVC compatible webcams This package provides full version of the web content. Includes cambozola applet. mjpg-streamer-www - 2018-10-25-3a Quote Link to comment Share on other sites More sharing options...
Wulf Posted November 12, 2019 Share Posted November 12, 2019 При установке kmod_ndms последняя строка modinfo: ERROR: Module alias /opt/lib/modules/4.9-ndm-3/kernel/compat.ko not found. У всех так? Quote Link to comment Share on other sites More sharing options...
s60 Posted November 12, 2019 Author Share Posted November 12, 2019 21 hours ago, TheBB said: пробуйте http://bin.entware.net/mipselsf-k3.4/test/ заменил пакеты на те, что из ветки test ~ # opkg list-installed | grep mjpg-stream mjpg-streamer - 2018-10-25-3a mjpg-streamer-input-file - 2018-10-25-3a mjpg-streamer-input-http - 2018-10-25-3a mjpg-streamer-input-uvc - 2018-10-25-3a mjpg-streamer-output-file - 2018-10-25-3a mjpg-streamer-output-http - 2018-10-25-3a mjpg-streamer-output-rtsp - 2018-10-25-3a mjpg-streamer-www - 2018-10-25-3a ~ # но камера все равно не определяется ~ # modprobe --first-time -v uvcvideo ~ # ls /dev/vid* ls: /dev/vid*: No such file or directory ~ # Quote Link to comment Share on other sites More sharing options...
s60 Posted November 12, 2019 Author Share Posted November 12, 2019 57 minutes ago, Wulf said: При установке kmod_ndms последняя строка modinfo: ERROR: Module alias /opt/lib/modules/4.9-ndm-3/kernel/compat.ko not found. У всех так? установилось без проблем Quote Link to comment Share on other sites More sharing options...
Ari100krat Posted November 12, 2019 Share Posted November 12, 2019 58 минут назад, Wulf сказал: При установке kmod_ndms последняя строка modinfo: ERROR: Module alias /opt/lib/modules/4.9-ndm-3/kernel/compat.ko not found. У всех так? у меня так. но никак не мешает моим задачам. Quote Link to comment Share on other sites More sharing options...
s60 Posted November 12, 2019 Author Share Posted November 12, 2019 с пакетами из ветки test скрипт S96mjpg-streamer не возвращает ~# в командную строку.... Quote Link to comment Share on other sites More sharing options...
Ari100krat Posted November 12, 2019 Share Posted November 12, 2019 52 минуты назад, s60 сказал: ~ # modprobe --first-time -v uvcvideo это ничего не выдаёт? сообщение о том, что модули уже загружены, например? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.