Форум обсуждения систем  

Вернуться   Форум обсуждения систем "Умный дом", проектов Ардуино, OpenWRT и других DIY устройств > Форум умного дома > Сделай сам > OpenWRT/LEDE

Ответ
 
Опции темы Поиск в этой теме Опции просмотра
Старый 17.09.2012, 01:09   #1
Admin
Administrator
 
Аватар для Admin
 
Регистрация: 12.04.2010
Адрес: Москва
Сообщений: 9,618
Вес репутации: 9823
Admin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant future
По умолчанию Подключаем USB веб камеру (WebCam) в OpenWrt

Устанавливаем необходимые пакеты
opkg update
opkg install kmod-video-uvc mjpg-streamer



Подключаем web-камеру к устройству и проверяем, определилась ли она в системе
root@OpenWrt:/# ls /dev/vid*

Редактируем фаил конфигурации
vi /etc/config/mjpg-streamer
Цитата:
config mjpg-streamer core
option enabled "1"
option device "/dev/video0"
option resolution "640x480"
option fps "25"
option www "/www/webcam"
option port "8080"
#option yuv "on"
#option quality "50"
Потом выполнить
/etc/init.d/mjpg-streamer enable
/etc/init.d/mjpg-streamer start


Делаем reboot и смотрим через веб браузер, IE и Opera криво работают, лучше всего использовать Chrom
http://192.168.1.99:8080/stream.html

Без ребута настройки можно поменять так:
поток в формате YUV
mjpg_streamer -i "input_uvc.so -d /dev/video0 -y -r 640x480 -f 5 -q 50" -o "output_http.so -w /www/webcam -p 8080"

Поток в формате MJPG
mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 5" -o "output_http.so -w /www/webcam -p 8080"

Поток в фоновом режиме
mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 640x480 -f 5" -o "output_http.so -w /www/webcam -p 8080" -b


Список поддерживаемых Web камер
Цитата:
0402:5606 USB 2.0 Camera (VIT D2010 notebooks) ALi Corporation [12]
0402:9665 1.3M WebCam (Acer Aspire AS7551-7442 notebooks) ALi Corporation
0408:030c HP Webcam (HP Pavilion DV6744 and DV6750) Quanta Computer
0408:2fb1 Laptop Integrated Webcam 2HDM (Dell XPS notebooks) Quanta Computer
0416:a91a LogiLink Wireless Webcam Windbond
041e:4057 Creative Live! Cam Optia Creative Labs
041e:4058 Creative Live! Cam Optia AF Creative Labs
041e:4063 Creative Live! Cam Video IM Pro Creative Labs [7]
041e:4065 Creative Live! Cam Optia Pro Creative Labs
041e:406a Creative Live! Cam Notebook Ultra Creative Labs
041e:406b Creative Live! Cam Chat IM Creative Labs
041e:406c Creative Live! Cam Sync Creative Labs
041e:4071 Creative Live! Cam Vid. IM Ultra Creative Labs
041e:4080 Creative Live! Cam Socialize HD Creative Labs [16]
041e:4088 Creative Live! Cam Chat HD Creative Labs
0458:505e Genius iSlim 330 Genius
0458:7055 Genius iSlim 2020AF Genius
0458:705d Genius iSlim 2000AF Genius
0458:706e Genius eFace 2025 Genius
0458:7070 Genius FaceCam 310 Genius [13]
0458:7071 Genius iSlim 1300 V2 Genius
0458:707c Genius eFace 1300 Genius
0458:7081 Genius FaceCam 2000 Genius
045e:00f8 Microsoft LifeCam NX-6000 Microsoft
045e:074a Microsoft LifeCam VX-500 Microsoft
045e:075d Microsoft LifeCam Cinema Microsoft [13]
045e:076d Microsoft LifeCam HD-5000 Microsoft
045e:0770 Microsoft LifeCam VX-700 Microsoft
045e:0772 Microsoft LifeCam Studio Microsoft [13]
045e:0779 Microsoft LifeCam HD-3000 Microsoft
046d:0802 Logitech Webcam C200 Logitech
046d:0804 Logitech Webcam C250 Logitech
046d:0805 Logitech Webcam C300 Logitech
046d:0807 Logitech Webcam C500 Logitech
046d:0808 Logitech Webcam C600 Logitech
046d:0809 Logitech Webcam Pro 9000 Logitech
046d:080a Logitech Portable Webcam C905 Logitech
046d:0819 Logitech Webcam C210 Logitech
046d:081d Logitech Webcam C310 Logitech
046d:0821 Logitech Portable Webcam C910 Logitech
046d:0825 Logitech HD Webcam C270 Logitech
046d:0826 Logitech HD Webcam C525 Logitech
046d:08c1 Logitech Quickcam Fusion Logitech [1,2]
046d:08c2 Logitech Quickcam Orbit/Sphere MP Logitech [1,2]
046d:08c3 Logitech Quickcam for Notebooks Pro Logitech [1,2]
046d:08c5 Logitech Quickcam Pro 5000 Logitech [1,2]
046d:08c6 Logitech Quickcam OEM Dell Notebook Logitech [1,2]
046d:08c7 Logitech Quickcam OEM Cisco VT Camera II Logitech [1,2]
046d:08c9 Logitech Quickcam Ultra Vision Logitech [1,2]
046d:08ca Logitech Quickcam Fusion (2006 model) Logitech [1,2]
046d:08cb Logitech Quickcam for Notebooks Pro (2006 model) Logitech [1,2]
046d:08cc Logitech Quickcam Orbit/Sphere MP (2006 model) Logitech [1,2]
046d:08ce Logitech Quickcam Pro 5000 (2006 model) Logitech [1,2]
046d:0990 Logitech Quickcam Pro 9000
Logitech Quickcam Pro 9000 for Business Logitech [6]
046d:0991 Logitech Quickcam Pro for Notebooks (2007 model)
Logitech Quickcam Pro for Notebooks for Business Logitech
046d:0992 Logitech Quickcam Communicate Deluxe Logitech
046d:0994 Logitech Quickcam Orbit/Sphere AF Logitech
046d:09a1 Logitech Quickcam Communicate MP/S5500
Logitech Quickcam Communicate MP for Business Logitech
046d:09a2 Logitech Quickcam Communicate Deluxe/S7500 Logitech
046d:09a4 Logitech Quickcam E 3500 Logitech
046d:09a5 Logitech Quickcam 3000 for Business Logitech
046d:09a6 Logitech Quickcam Vision Pro Logitech
046d:09b0 Acer OrbiCam (Acer notebooks) Logitech
046d:09b2 Fujitsu Webcam (Fujitsu-Siemens notebooks) Logitech [3]
046d:09c0 Quickcam for Dell Notebooks (Dell notebooks) Logitech [1,2]
046d:09c1 Logitech Quickcam Deluxe for Notebooks
Logitech Quickcam Deluxe for Notebooks for Business Logitech [1,2]
0471:0331 Philips SPC 1300NC Philips
0471:0332 Philips SPC 1000NC Philips
0471:0333 Philips SPC 620NC Philips
0471:0334 Philips SPC 520/525NC Philips
0471:2034 Philips SPC 530NC Philips
0471:2037 Philips SPC 1330NC Philips
0471:2038 Philips SPC 2050NC Philips
0471:20d0 Philips SPZ2000 Philips
0474:02da Sanyo Xacti HD2000 Sanyo Electric
0474:0722 Sanyo W33SA Sanyo Electric
0474:0b0e Sanyo VPC-CA102 Sanyo Electric
0489:d00a Traveler DC 8900 Schenker Inc.
04cb:014c Fujifilm FinePix A340 Fujifilm
04cb:016f Fujifilm FinePix S5500 Zoom Fujifilm
04cb:0172 Fujifilm FinePix E550 Fujifilm
04da:2318 Panasonic Camcorder NV-GS11/230/250 (webcam mode) Panasonic
04da:231a Panasonic Camcorder NV-GS11/230/250 (DV mode) Panasonic
04da:231d Panasonic Camcorder NV-GS27/37/320/500 (webcam mode) Panasonic
04da:231e Panasonic Camcorder NV-GS27/37/320/500 (DV mode) Panasonic
04f2:a133 Chicony USB 2.0 1.3MP UVC Camera (Maxell MaxCam MWC-1300D) Chicony Electronics
04f2:a13c HP KQ246AA 8.0MP Deluxe Webcam Chicony Electronics
04f2:a13e Panda 10C Chicony Electronics
04f2:a147 Medion P86004 2MP Webcam with Headset Chicony Electronics
04f2:b008 Chicony USB 2.0 Camera Chicony Electronics
04f2:b012 Chicony 1.3M UVC Webcam (Asus G1S notebooks) Chicony Electronics [3]
04f2:b013 Chicony USB 2.0 Camera (Lenovo 3000 N200 notebooks) Chicony Electronics
04f2:b015 Chicony VGA 24fps UVC Webcam (HP notebooks) Chicony Electronics
04f2:b016 Chicony VGA 30fps UVC Webcam (HP notebooks) Chicony Electronics
04f2:b018 Chicony 2M UVC Webcam (Compal notebooks) Chicony Electronics
04f2:b021 ViewSonic 1.3M, USB2.0 Webcam (ViewSonic VX2255WMB screens) Chicony Electronics [5]
04f2:b022 Gateway USB 2.0 Webcam (One C34xx notebooks) Chicony Electronics
04f2:b023 Gateway USB 2.0 Webcam (HP Pavilion DV9560EG notebooks) Chicony Electronics
04f2:b024 USB 2.0 Webcam (Packard Bell notebooks) Chicony Electronics
04f2:b027 Gateway USB 2.0 Webcam (Gateway T-1616 notebooks) Chicony Electronics
04f2:b029 USB 2.0 1.3M UVC WebCam (Asus F6S notebooks) Chicony Electronics
04f2:b033 USB 2.0 1.3M UVC WebCam (Asus M70VM notebooks) Chicony Electronics
04f2:b044 Acer CrystalEye webcam (Acer Aspire 5535 notebooks) Chicony Electronics
04f2:b062 CNF7045 (Packard-Bell notebooks) Chicony Electronics
04f2:b070 Toshiba Satellite L350D notebooks Chicony Electronics
04f2:b071 CNF7129 (Asus N10JA2 and EeePC 1000HE netbooks, K50IN notebooks) Chicony Electronics [3,14]
04f2:b073 CNF7231 (MSI MS-1722 ID1 notebooks) Chicony Electronics
04f2:b082 CKA7227 (HP EliteBook 2530p notebooks) Chicony Electronics
04f2:b083 CKF7063 (HP Compaq 6830s notebooks) Chicony Electronics
04f2:b084 Unnamed (Acer Aspire One D150) Chicony Electronics
04f2:b105 Lenovo EasyCamera (Lenovo IdeaPad Y530 notebooks) Chicony Electronics
04f2:b106 CNF7246 (Asus G71V notebooks) Chicony Electronics
04f2:b107 CNF7070 (HP 2133 notebooks) Chicony Electronics
04f2:b169 CNF8248 (Fujitsu Lifebook T731 notebooks) Chicony Electronics [3]
04f2:b1b9 (Asus U52F notebooks) Chicony Electronics [3]
04f2:b1bb (Asus N82JV notebooks) Chicony Electronics [3]
04f2:b1be USB2.0 0.3M UVC WebCam (Asus UL30JT notebooks) Chicony Electronics [3]
04f2:b1e5 USB2.0 0.3M UVC WebCam (Asus K25JC and K52De notebooks) Chicony Electronics [3]
04f2:b221 Integrated Camera (Lenovo Thinkpad T420s notebooks) Chicony Electronics
04f2:b230 HP HD Webcam [Fixed] (HP ??? notebooks) Chicony Electronics [3]
058f:3820 Future Boy PC USB Webcam (Alcor Micro AU3820 chipset) Alcor Micro
05a9:2640 OmniVision OV2640 (Dell Inspiron 1420/1720 notebooks) OmniVision
05a9:2643 OmniVision Monitor Webcam (Dell SP2208WFP) OmniVision
05a9:2649 OmniVision Monitor Webcam (Dell SP2309W) OmniVision
05a9:7670 OmniVision OV7670 (Dell XPS m1330 notebooks) OmniVision
05ac:8502 Apple built-in iSight Apple [4]
05c8:0103 FO13FF-65 PC-CAM Foxlink
05c8:0403 HP Webcam [2 MP Fixed] (HP Mini 5103 netbook) Foxlink
05ca:18a1 Integrated Webcam (Dell Studio 1535 notebooks) Ricoh
05ca:18b7 Sony Visual Communication Camera (Sony VPCS12J1E notebooks) Ricoh
05e3:0505 BW Microscope GenesysLogic
064e:8100 Integrated Webcam 2M (Dell Vostro 1088 notebooks) SuYin
064e:a100 Acer OrbiCam (Acer notebooks) SuYin
064e:a101 Acer CrystalEye webcam (Acer notebooks) SuYin
064e:a102 Webcam (Acer Timeline 1810T notebooks) SuYin
064e:a103 Acer OrbiCam (Acer Aspire 7730ZG-343G32Mn notebooks) SuYin
064e:a110 HP Webcam (HP TX2000 notebooks) SuYin
064e:a111 USB 2.0 Camera (Datron TW7A notebooks) SuYin
064e:a116 USB 2.0 UVC 1.3M WebCam (Asus N20A notebooks) SuYin [3]
064e:a117 Acer HD Crystal Eye webcam (Acer 4930 notebooks) SuYin
064e:a118 Integrated Webcam (Dell Mini 9 netbooks) SuYin
064e:a136 USB 2.0 UVC 0.3M Webcam (Asus UL50VT netbooks) SuYin
064e:a219 UVC 1.3M Webcam (Acer Aspire 5745G notebooks) SuYin
064e:d101 Acer Crystal Eye webcam (Acer Aspire One AOA150-Ab netbooks) SuYin
064e:e201 Integrated Webcam (Lenovo Thinkpad Edge 13" notebooks) SuYin
064e:f209 HP Webcam (HP Pavillon DV7 4152EG notebooks) SuYin
06f8:3005 Hercules Dualpix Exchange Guillemot Corp.
06f8:3007 Hercules Dualpix Chat and Show Guillemot Corp.
06f8:300a Hercules Dualpix Infinite Guillemot Corp.
06f8:300c Hercules Classic Silver Guillemot Corp.
06f8:3020 Hercules Webcam EC300 (Malata PC-81005 netbooks and clones) Guillemot Corp.
090c:37b3 Lenovo EasyCamera (Lenovo G560 notebooks) Silicon Motion
090c:b370 Silicon Motion SM370 Silicon Motion
090c:b371 Silicon Motion SM371 Silicon Motion
093a:2700 iSonic W002
A4Tech PK-635K
Digital Innovations 1.3MP Webcam Pixart Imaging
093a:2800 DealExtreme USB 2.0 Camera Pixart Imaging
093a:2900 Agama V-315 Pixart Imaging
0ac8:0336 Elecom UCAM-DLQ30 (Vimicro VC0336 chipset) Solid Years
0ac8:3313 TopSpeed USB 2.0 Camera B. Vimicro
0ac8:332d Vega USB 2.0 Camera (AOC screens and Techsolo TCA-4900) Vimicro
0ac8:3330 Sirius USB 2.0 Camera (Xinyi Y867 LCD Prince) Vimicro
0ac8:3343 Sirius USB 2.0 Camera (Fujitsu A6110 notebook) Vimicro
0ac8:3410 Venus USB 2.0 Camera (Minoru3D) Vimicro [8]
0ac8:3420 Venus USB 2.0 Camera (Tevion MD 85872 and Minoru3D) Vimicro [8]
0ac8:3450 A4Tech PK-333E A4Tech
0ac8:3460 Kodak Dual Webcamera Sakar Corp.
0ac8:3610 VMS-004D - 400x USB Microscope Veho [11]
0ac8:c302 Vega USB 2.0 Camera (Samsung Q45 notebook) Vimicro
0ac8:c303 Saturn USB 2.0 Camera (Samsung screens) Vimicro
0ac8:c315 HP Elite Autofocus Webcam Vimicro
0ac8:c338 Namuge 2MP Webcam Namuga
0bd3:0555 SPCAM SP620U 1/1.8" CCD 1600x1200 Ophir Optronics
0bda:5801 Realtek 2SF022 (HP Pavillon DV7 4151SG notebooks) Realtek
0c45:62c0 Sonix USB 2.0 Camera (Acer Aspire 5050 and HP Pavilion DV6000 notebooks)
Trust SpotLight Webcam Pro
Centrios 1.3MP auto focus Sonix Technology
0c45:62e0 MSI Starcam Racer
Rosewill RCM-8163 Sonix Technology
0c45:62f1 Avatec CMA-L688
HueHD Sonix Technology
HueHD [11]
0c45:6310 USB 2.0 Camera (Trust Chat Webcam) Sonix Technology
0c45:63e0 Sonix Integrated Webcam (Dell notebooks) Sonix Technology
0c45:63ea Laptop Integrated Webcam 2M (Dell Studio 1555 notebooks) Sonix Technology
0c45:6409 USB 2.0 Camera (Nokia Booklet 3G netbooks) Sonix Technology
0c45:6415 Laptop Integrated Webcam 1.3M (Dell Inspiron 13z notebooks) Sonix Technology
0e8d:0004 MediaTek MT6227 phone MediaTek Inc
13d3:509b USB 2.0 Camera (Asus EeePC T91 netbooks) Genesys Logic Technology
13d3:5103 USB 2.0 Camera (Medion Akoya All-in-one PC) Sonix Technology
13d3:5122 USB 2.0 Camera (Asus NX90Jq and U33JC notebooks) Sonix Technology [3]
13d3:5130 USB 2.0 Camera (Asus K40AE, K50IE and K52JT notebooks) Sonix Technology [3]
13d3:5702 USB 2.0 UVC VGA WebCam (Asus Eee PC 1001PXD-EU17 netbooks) Azurewave
13d3:5710 USB 2.0 UVC VGA WebCam (Asus U31SD notebooks) Azurewave
145f:013e Trust Megapixel USB2 WB-5600R Trust
145f:013f Trust Megapixel USB2 Auto Focus Webcam Trust
145f:0142 Trust WB-6250X Webcam Trust
145f:015b Trust WB-8500X Webcam Trust
152d:0310 JMicron USB2.0 XGA WebCam JMicron
174f:1118 Syntek D-Max HP Webcam (HP Pavillon DV3 notebooks) Syntek
174f:5212 Syntek USB 2.0 UVC PC Camera (HP Spartan notebooks) Syntek
174f:5215 Syntek USB 2.0 UVC PC Camera (upcoming UMPC device) Syntek
174f:5271 Syntek USB 2.0 UVC PC Camera (upcoming UMPC device) Syntek
174f:5931 Syntek USB 2.0 UVC PC Camera (Samsung Q310 notebooks) Syntek
174f:5a11 Unknown (Asus A8Sc notebook) Unknown
174f:5a31 Sonix USB 2.0 Camera (Asus M50SV notebook) Sonix
174f:5a35 Sonix USB 2.0 Camera (Asus F3KE and G2S notebook) Sonix [3]
174f:8a12 Syntek USB 2.0 UVC PC Camera (Packard Bell Easynote MX52 notebooks) Syntek
174f:8a33 Syntek USB 2.0 UVC PC Camera (Asus U3S notebooks) Syntek
174f:8a34 Syntek USB 2.0 UVC PC Camera (JAOtech Smart Terminal) Syntek
177f:0060 Sweex WC060 Series HD Webcam
1778:0204 PEVO corp IPEVO Point 2 View
17dc:0202 Miricle 307K Thermoteknix
17ef:1004 Integrated Camera (Lenovo Thinkpad T61 notebooks) Lenovo
17ef:480b Integrated Camera (Lenovo SL400 and SL500 notebooks) Lenovo
17ef:481c Integrated Camera (Lenovo SL510 notebooks) Lenovo
1871:0101 Bresser Junior DigiMicro DM 400 Digital Microscope Bresser
1871:01f0 Aveo Technology USB 2.0 Camera Aveo Technology
1871:0306 Aveo Technology USB 2.0 Camera Aveo Technology
1871:7670 Aveo Technology USB 2.0 Camera Aveo Technology
18cd:cafe Pico iMage Ecamm
18ec:3188 Manta MM-353 Plako ArkMicro
18ec:3288 FSC WebCam V30S ArkMicro [9]
18ec:3290 USB 2.0 PC Camera (Sabrent WCM-6LNV) ArkMicro
18ec:3299 USB 2.0 PC Camera (model number QC3231) ArkMicro
199e:8101 DFx 21BU04 ImagingSource
19ab:1000 Bodelin ProScope HR Bodelin
19ab:1020 Bodelin ProScope HR2 Bodelin
19b4:0104 Celestron Digital Microscope Imager Celestron
19ff:0102 Dynex 1.3MP Webcam Dynex
1b3b:2951 MSI StarCam 370i Unknown
1bcf:2809 Laptop Integrated Webcam FHD (Dell Vostro 3550 notebooks) Sunplus
1c4f:3000 SiGma Micro USB Web Camera SiGma Micro
1cac:a332 Kinstone C8 webcam (Vimicro chipset) Kinstone
1cac:b288 Kinstone C18 webcam (Sonix chipset) Kinstone
1e4e:0100 USB 2.0 Camera Etron Technologies [10]
1e4e:0102 USB 2.0 Camera Etron Technologies
22b8:6006 Motorola MOTOROKR E6 Motorola
5986:0100 Acer OrbiCam (Acer notebooks) Bison Electronics
5986:0101 USB2.0 Camera (Packard Bell Easynote SJ notebooks) Bison Electronics
5986:0102 Acer Crystal Eye webcam (Acer TravelMate 7720 notebooks) Bison Electronics
5986:0200 Acer OrbiCam (Acer notebooks) Bison Electronics
5986:0202 Bison (Fujitsu-Siemens Amilo SI2636 notebooks) Bison Electronics
5986:0203 Bison (Advent 4211 and MSI Wind notebooks) Bison Electronics
5986:0205 Lenovo EasyCamera (Lenovo N500 and U330 notebooks) Bison Electronics [9]
5986:0241 Bison (MSI Wind Top AE1900 nettop) Bison Electronics [15]
5986:0314 BisonCam, NB Pro (MSI Wind U135DX netbook) Bison Electronics
5986:0343 BisonCam, NB Pro (Clevo P150HM notebook) Bison Electronics
eb1a:2571 eMPIA 27xx based camera (unbranded) eMPIA Technology
eb1a:2761 eMPIA 2761 based camera (unbranded) eMPIA Technology
eb1a:2771 eMPIA 2771 based camera (Intelbras iPlug notebook) eMPIA Technology
Admin вне форума   Ответить с цитированием
Старый 18.09.2012, 10:37   #2
Admin
Administrator
 
Аватар для Admin
 
Регистрация: 12.04.2010
Адрес: Москва
Сообщений: 9,618
Вес репутации: 9823
Admin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant future
По умолчанию

У меня камера вместе с роутером лежит на полу под столом
При установленном разрешении 960х720, роутер без проблем транслирует видео с частотой кадров 5Гц

Скриншот веб интерфеса камеры
Нажмите на изображение для увеличения
Название: stream.jpg
Просмотров: 2051
Размер:	71.3 Кб
ID:	483


Фотография сделанная удаленно из браузера
http://192.168.1.99:8080/?action=snapshot
Нажмите на изображение для увеличения
Название: strmr.jpg
Просмотров: 1753
Размер:	79.5 Кб
ID:	484
Admin вне форума   Ответить с цитированием
Старый 30.09.2012, 14:50   #3
Admin
Administrator
 
Аватар для Admin
 
Регистрация: 12.04.2010
Адрес: Москва
Сообщений: 9,618
Вес репутации: 9823
Admin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant future
По умолчанию

Выяснил, что если отключить от хаба звуковую карту то увеличивается пропускная способность, а она влияет на разрешение и частоту кадров
Без USB Sound card мне удалось добиться 960х720 с частотой кадров 5Гц
С подключенной звуковой картой 640х480 с частотой кадров 3Гц
Admin вне форума   Ответить с цитированием
Старый 16.10.2012, 13:03   #4
Sirocco
Senior Member
 
Регистрация: 12.10.2012
Адрес: Moscow-Voronezg
Сообщений: 272
Вес репутации: 0
Sirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant future
По умолчанию

Мало у вас. У меня 25кадров 640х480 на дефолтных настройках. Вот тут приводил видео и описание, если интересно.
Sirocco вне форума   Ответить с цитированием
Старый 16.10.2012, 13:07   #5
Admin
Administrator
 
Аватар для Admin
 
Регистрация: 12.04.2010
Адрес: Москва
Сообщений: 9,618
Вес репутации: 9823
Admin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant futureAdmin has a brilliant future
По умолчанию

Так у меня при разрешении 960х720
А Вы чем скорость кадров измеряли?
В настройках я могу любой Fps поставить, но в реальности он не будет превышать возможности роутера
Admin вне форума   Ответить с цитированием
Старый 16.02.2013, 07:24   #6
andr128
Senior Member
 
Аватар для andr128
 
Регистрация: 16.09.2012
Адрес: Irkutsk
Сообщений: 555
Вес репутации: 1605
andr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond reputeandr128 has a reputation beyond repute
По умолчанию

Купил камеру Logitech HD Webcam C310

при 640х480 25fps - роутер вполне справляется, при 30 fps - начинаются артефакты.
Смотрел по wi-fi ноутбуком.
Я очень доволен результатом.
andr128 вне форума   Ответить с цитированием
Старый 25.10.2013, 01:21   #7
borey
Member
 
Регистрация: 25.10.2013
Сообщений: 80
Вес репутации: 0
borey is an unknown quantity at this point
По умолчанию нет изображения ((

Здравствуйте,

Помогите, плз. Камера Dialog WC-15U, UVC.

dmesg дает такое:
...
[ 10.610000] Linux video capture interface: v2.00
[ 10.650000] USB Serial support registered for pl2303
[ 10.660000] usbcore: registered new interface driver pl2303
[ 10.660000] pl2303: Prolific PL2303 USB to serial adaptor driver
[ 10.790000] uvcvideo: Found UVC 1.00 device USB2.0 Camera (1e4e:0103)
[ 10.800000] uvcvideo: UVC non compliance - GET_DEF(PROBE) not supported. Enabling workaround.
[ 10.810000] input: USB2.0 Camera as /devices/platform/ehci-platform/usb1/1-1/1-1:1.0/input/input0
[ 10.820000] usbcore: registered new interface driver uvcvideo
[ 10.820000] USB Video Class driver (1.1.1)
...


cat /etc/config/mjpg-streamer

config mjpg-streamer core
option enabled "1"
option device "/dev/video0"
option resolution "640x480"
option fps "5"
option www "/www/webcam"
option port "8080"


делал
/etc/init.d/mjpg-streamer enable
/etc/init.d/mjpg-streamer start

но в процессах mjpg-streamer нет, порт 8080 закрыт (не подключиться telnet, при том, что luci на 80 открывается, SSH по 22 тоже)..

если запустить руками

mjpg_streamer

выдает такое:

MJPG Streamer Version: svn rev: exported
o: www-folder-path...: disabled
o: HTTP TCP port.....: 8080
o: usernameassword.: disabled
o: commands..........: enabled

далее при заходе на http://10.10.10.10:8080/
выдет:
404: Not Found!
Invalid input plugin number

Как я понимаю, проблема в получении картинки с устройства - то ли девайс на все поддерживает, то ли в модуле получения картинки..

mjpg_streamer -i "input_uvc.so"
выдает такое:

MJPG Streamer Version: svn rev: exported
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: MJPEG
Unable to set format: 1196444237 res: 640x480
Init v4L2 failed !! exit fatal
i: init_VideoIn failed

далее - ваще алес капут:

при попытке выполнить

mjpg_streamer -i "input_uvc.so -y" -o "output_http.so -w /www/webcam"

выдает сначала такое:

MJPG Streamer Version: svn rev: exported
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: YUV
i: JPEG Quality......: 80
Adding control for Pan (relative)
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Tilt (relative)
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Pan Reset
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Tilt Reset
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Pan/tilt Reset
UVCIOC_CTRL_ADD - Error: Invalid argument
Adding control for Focus (absolute)
UVCIOC_CTRL_ADD - Error: Invalid argument
mapping control for Pan (relative)
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Tilt (relative)
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Pan Reset
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Tilt Reset
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Pan/tilt Reset
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Focus (absolute)
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for LED1 Mode
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for LED1 Frequency
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Disable video processing
UVCIOC_CTRL_MAP - Error: Invalid argument
mapping control for Raw bits per pixel
UVCIOC_CTRL_MAP - Error: Invalid argument
o: www-folder-path...: /www/webcam/
o: HTTP TCP port.....: 8080
o: usernameassword.: disabled
o: commands..........: enabled

а затем TP-Link MR3020 просто перезагружается..

Не знаю, что и делать..

Последний раз редактировалось borey; 25.10.2013 в 01:24.
borey вне форума   Ответить с цитированием
Старый 25.10.2013, 02:00   #8
borey
Member
 
Регистрация: 25.10.2013
Сообщений: 80
Вес репутации: 0
borey is an unknown quantity at this point
По умолчанию вдогонку

вот еще:

lsmod -a | grep vid

выдает

uvcvideo 56112 0
videobuf2_vmalloc 1536 1 uvcvideo
videobuf2_memops 1312 1 videobuf2_vmalloc
videobuf2_core 15872 1 uvcvideo
videodev 67376 2 uvcvideo,v4l2_common
usbcore 99200 7 uvcvideo,pl2303,usbserial,ohci_hcd,ledtr ig_usbdev,ehci_hcd
input_core 20016 2 uvcvideo
borey вне форума   Ответить с цитированием
Старый 16.10.2012, 15:03   #9
Sirocco
Senior Member
 
Регистрация: 12.10.2012
Адрес: Moscow-Voronezg
Сообщений: 272
Вес репутации: 0
Sirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant future
По умолчанию

Вобще не мерил fps. Но при подключении к компу на вид изображение такое же как и через роутер, никаких задержек, движения плавные, быстрые. Вобщем на вид всё ок, правдя иногда бывают подвисания, но стоит учесть что у меня это всё по wifi.
Sirocco вне форума   Ответить с цитированием
Старый 16.10.2012, 15:04   #10
Sirocco
Senior Member
 
Регистрация: 12.10.2012
Адрес: Moscow-Voronezg
Сообщений: 272
Вес репутации: 0
Sirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant futureSirocco has a brilliant future
По умолчанию

А звук передать с камеры микрофона удалось?
Sirocco вне форума   Ответить с цитированием
Ответ


Здесь присутствуют: 38 (пользователей: 0 , гостей: 38)
 

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 02:17. Часовой пояс GMT +3.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot
Яндекс.Метрика