Какая у тебя камера (название)?
И так, что нам нужно. Мы хотив видеть и слышать что происходит дома либо где то ещё в наше с вами отсутствие . Можно конечно купить ethernet камеру но пока цена на них впечетляет. Хочется получить хорошего результата от USB веб камер с встроенным микрофоном. Результат от стандартных средств прошивки несколько не устраивал и я решил попробовать поиграться с программой palantir, и вот результат ...
Сначала нам нужно отключить в вебморде асуса все стандартные приложения которые используют камеру и так как с этого момента с загрузкой роутера у нас не будут грузиться драйера на камеру в post-boot надо добавить следующее
если при загрузке в логах мы наблюдаем следущееCode:insmod videodev.o insmod pwc.o insmod pwcx.o
то собственно всё в порядке и можно переходить к установке самой программы, если нет то ставим на свою камеру драйвера отдельно ...Code:kernel: usbaudio: device 2 audiocontrol interface 1 has 1 input and 0 output AudioStreaming interfaces kernel: usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured kernel: usbaudio: valid input sample rate 44100 kernel: usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 44100 sratehi 44100 attributes 0x00 kernel: usbaudio: device 2 interface 2 altsetting 2 channels 1 framesize 2 configured kernel: usbaudio: valid input sample rate 22050 kernel: usbaudio: device 2 interface 2 altsetting 2: format 0x00000010 sratelo 22050 sratehi 22050 attributes 0x00 kernel: usbaudio: device 2 interface 2 altsetting 3 channels 1 framesize 2 configured kernel: usbaudio: valid input sample rate 11025 kernel: usbaudio: device 2 interface 2 altsetting 3: format 0x00000010 sratelo 11025 sratehi 11025 attributes 0x00 kernel: usbaudio: device 2 interface 2 altsetting 4 channels 1 framesize 2 configured kernel: usbaudio: valid input sample rate 8000 kernel: usbaudio: device 2 interface 2 altsetting 4: format 0x00000010 sratelo 8000 sratehi 8000 attributes 0x00 kernel: usbaudio: registered dsp 14,3 kernel: usbaudio: warning: found 1 of 0 logical channels. kernel: usbaudio: assuming the channel found is the master channel (got a Philips camera?). Should be fine. kernel: usbaudio: registered mixer 14,0 USB webcam: attached
на всякий случай убеждаемся в том что все устройства у нас в системе появились
теперь ставим программуCode:ls /dev/sound/ dsp mixer ls /dev/v4l video0
так как palantir не работает в фоне то ставим приложение screen, для у кого этот пакет не установленCode:ipkg install palantir
теперь настраиваем сам palantir, там ничего сложного но на всякий случай привожу пример изменённых мест в конфигеCode:ipkg install screen
/opt/etc/palantir.conf
пробуем запуститьCode:## VideoDevice: video device to capture from. ## Default is /dev/video0. # # VideoDevice /dev/video0 VideoDevice /dev/v4l/video0 ## FrameSize: size of captured frames. ## Default is 320x240. # FrameSize 640x480 ## FrameRate: capture frame rate, in frames per second. ## Only works with webcams supported by the pwc driver. ## Default is 15. # # FrameRate 30 FrameRate 5 ## Audio: enable or disable audio stream. ## Allowed values are "On" and "Off". ## Default is On. # # Audio On ## AudioCaptureDevice: audio device to capture from. ## Default is /dev/dsp. # AudioCaptureDevice /dev/sound/dsp ## VideoAudioInput: audio input on the video capture device. ## ## Default is input 0, which is often the only audio device (if any) on the ## capture card. # VideoAudioInput 0 ## VideoAudioVolume: volume of the audio input device selected with ## VideoAudioInput. ## Allowed values are 0...65535. ## Default is 65535. # VideoAudioVolume 65535 ## TCPPort: TCP base port to listen to. Clients connect to this port ## for the HTTP (video+data) stream. ## If the audio channel is enabled, it is made available to clients ## on an additional port, which defaults to (base port)+1 (a different value ## can be selected via a command-line option or the TCPAudioPort directive). # TCPPort 3000 ## TCPAudioPort: TCP audio port to listen to (if the audio channel is ## not disabled). ## Default is (base port)+1. # TCPAudioPort 3001 ## ControlTimeout: duration for the control time share, in seconds. ## Default is 30. # ControlTimeout 65535 ## ClientTimeout: maximum duration of a single client connection, in seconds. ## Default is to allow indefinitely long connections. ClientTimeout 300 ## ClientAckTimeout: how long the server should wait for the "frame received" ## acknowledgement from the client, in seconds. ## Default is 30 seconds. # ClientAckTimeout 65535 ## MaxStreamingClients: maximum number of simultaneous connections to video ## stream. Clients in excess get a snapshot. ## Default is 5. # MaxStreamingClients 1 ## Greeting: message sent to clients upon connection. ## Default is "Experimental Palantir server". # # Greeting "Experimental Palantir server" Greeting "Palantir server on WL-500gP" ## LogFile: location of the log file. If none is specified, diagnostic # messages go to stderr. LogFile /opt/var/log/palantir/palantir.log
Смотреть можно как браузером так и программой клиентом. Соединяемся программой palantir4pc, в строке вводим IP роутера:видео_порт из конфига. Появится изображение с видео камеры, нажимаем в программе control, становится активным окошко audio ставим в неё галочку и должен был пойти звук. если всё в порядке то старт палантира можно повесить на кнопку в lighttpd или при загрузке что бы стартовал и открыть соответствующие порты в iptables.Code:/tmp/harddisk/opt/bin/screen -dm -s /tmp/harddisk/opt/bin/palantir или /opt/bin/screen -dm -s /opt/bin/palantir или screen -dm -s palantir
у меня звук не пошёл, пришлось искать palantir по свежее. Из архива palantir-bin-2.7-mips.tgz содержимое копируем вс заменой, переносим файл конфигурацииCode:/opt/binчто бы после перезагрузки файл конфигурации не пропал делаем следующееCode:из /opt/etc/ в /tmp/local/share/palantir/
Пробуем снова запустить сервер, соединяемся и теперь не только с видео но и со звуком всё в порядкеCode:flashfs save flashfs commit flashfs enable
Громкость звука с микрофона можно регулировать утилитой smixer, кидаем её в любое удибное для нас место, на пример /opt/bin/ конфигурацию на пример в /opt/etc/ с содержанием громкости микрофона
и выполняеем в консолиCode:vol Mic 100
PS .. не забываем то что palantir и smixer должны быть исполняемымиCode:smixer -a -f /opt/etc/smixer.conf
PSS если у кого то удастся подцепиться к палантиру другой сторонней программой то было бы интересно узнать название проги .. так как родной клиент периодически рвёт соединение
Last edited by karter; 20-02-2009 at 13:53.
Какая у тебя камера (название)?
WL500gP (1.9.2.7-10) + USB HDD Samsung 200gb
My home page - MyLan.Od.Ua
WL500gP (1.9.2.7-10) + USB HDD Samsung 200gb
My home page - MyLan.Od.Ua
А вот с этим барахлом Genius CamLook 110 оно интересно работать будет? стоит всего рублей 600...
WL500gP v2
installed: samba3, vsftpd, rtorrent, lighttpd, sendsms, twonky, cron
Камера VideoCam Slim 321C http://goods.marketgid.com/goods/276/5183235/
При установке пишет
insmod: A module named videodev already exists
insmod: A module named videodev already exists
insmod: A module named usbcore already exists
insmod: usb-uhci.o: no module by that name found
insmod: A module named usb-ohci already exists
insmod: uhci.o: no module by that name found
insmod: ELF file not for this architecture
insmod: Could not load the module: Inappropriate ioctl for device
Module Size Used by Tainted: P
pwcx 103884 0 (unused)
pwc 50528 0 [pwcx]
videodev 8312 0 [pwc]
usb-storage 63928 3
sd_mod 13276 6
scsi_mod 70200 2 [usb-storage sd_mod]
printer 12900 0 (unused)
ehci-hcd 23804 0 (unused)
usb-ohci 21908 0 (unused)
usbcore 78496 1 [pwc usb-storage printer ehci-hcd usb-ohci]
ip_nat_ftp 3912 0 (unused)
ip_conntrack_ftp 5216 1
wl 892280 0 (unused)
et 31288 0 (unused)
На сколько я понял драйвер не встает. Какой драйвер использовать . Не могу найти . Может есть какой-то универсальный ?
При загрузке пишет
Jan 1 03:00:11 pppd[146]: Connect: ppp0 <--> /dev/pts/0
Jan 1 03:00:12 dropbear[168]: Running in background
Jan 1 03:00:12 kernel: Linux video capture interface: v1.00
Jan 1 03:00:13 kernel: pwc Philips webcam module version 9.0.2 loaded.
Jan 1 03:00:13 kernel: pwc Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.
Jan 1 03:00:13 kernel: pwc Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
Jan 1 03:00:13 kernel: pwc the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.
Jan 1 03:00:13 kernel: usb.c: registered new driver Philips webcam
Jan 1 03:00:13 kernel: pwc Philips webcam decompressor routines version 9.0-BETA-2
Jan 1 03:00:13 kernel: pwc Supports all cameras supported by the main module (pwc).
Так же нашел список совместимости камер.
http://www.wl500g.info/showthread.php?t=63&page=4
Кто скажет дело в PWC ? Обновлять его нужно ? Если да то как ?
Last edited by egoistes; 17-03-2009 at 08:10.
ipkg install palantir
Package palantir (2.6-1) installed in /opt/ is up to date.
Nothing to be done
Successfully terminated.
[admin@WL root]$ screen -dm -s palantir
screen: can't load library 'libncurses.so.5'
и что делать??
у меня не судьба...
Jan 1 02:00:02 kernel: usb.c: USB device 2 (vend/prod 0x4fc/0xc15) is not claimed by any active driver.
нужно искать камеру из списка совместимых....
устройство должно решать проблема - а не создавать их!
WL-500W, WRT610N v2 + WD 250Gb 2.5" Отправка смс + шаринг на openbox x730
TwonkyMedia + dbhub_0.450 + lighttpd+ssl+auth + dlengine + NOD32 update server
Огромный респект Олегу и vectorm
+1 у меня такая же, но когда подключаю
вот логи:
Oct 8 21:18:12 kernel: hub.c: new USB device 01:03.0-2, assigned address 2
Oct 8 21:18:14 kernel: usbaudio: device 2 audiocontrol interface 1 has 1 input and 0 output AudioStreaming interfaces
Oct 8 21:18:14 kernel: usbaudio: device 2 interface 2 altsetting 1 channels 1 framesize 2 configured
Oct 8 21:18:14 kernel: usbaudio: valid input sample rate 44100
Oct 8 21:18:14 kernel: usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 44100 sratehi 44100 attributes 0x00
Oct 8 21:18:14 kernel: usbaudio: device 2 interface 2 altsetting 2 channels 1 framesize 2 configured
Oct 8 21:18:14 kernel: usbaudio: valid input sample rate 22050
Oct 8 21:18:14 kernel: usbaudio: device 2 interface 2 altsetting 2: format 0x00000010 sratelo 22050 sratehi 22050 attributes 0x00
Oct 8 21:18:14 kernel: usbaudio: device 2 interface 2 altsetting 3 channels 1 framesize 2 configured
Oct 8 21:18:14 kernel: usbaudio: valid input sample rate 11025
Oct 8 21:18:14 kernel: usbaudio: device 2 interface 2 altsetting 3: format 0x00000010 sratelo 11025 sratehi 11025 attributes 0x00
Oct 8 21:18:14 kernel: usbaudio: device 2 interface 2 altsetting 4 channels 1 framesize 2 configured
Oct 8 21:18:14 kernel: usbaudio: valid input sample rate 8000
Oct 8 21:18:14 kernel: usbaudio: device 2 interface 2 altsetting 4: format 0x00000010 sratelo 8000 sratehi 8000 attributes 0x00
Oct 8 21:18:14 kernel: usbaudio: registered dsp 14,3
Oct 8 21:18:14 kernel: usbaudio: warning: found 1 of 0 logical channels.
Oct 8 21:18:14 kernel: usbaudio: assuming the channel found is the master channel (got a Philips camera?). Should be fine.
Oct 8 21:18:14 kernel: usbaudio: registered mixer 14,0
Oct 8 21:18:14 USB webcam: attached
Oct 8 21:18:16 kernel: pwc Philips webcam module version 9.0.2 loaded.
Oct 8 21:18:16 kernel: pwc Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.
Oct 8 21:18:16 kernel: pwc Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,
Oct 8 21:18:16 kernel: pwc the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.
Oct 8 21:18:16 kernel: pwc Default image size set to vga [640x480].
Oct 8 21:18:16 kernel: usb.c: registered new driver Philips webcam
Oct 8 21:18:16 kernel: pwc Logitech QuickCam Zoom (new model) USB webcam detected.
Oct 8 21:18:16 kernel: pwc Registered as /dev/video0.
Oct 8 21:18:16 kernel: pwc Philips webcam decompressor routines version 9.0-BETA-2
Oct 8 21:18:16 kernel: pwc Supports all cameras supported by the main module (pwc).
Oct 8 21:18:17 kernel: pwc Failed to set LED on/off time.
Oct 8 21:18:17 kernel: pwc Too many ISOC errors, bailing out.
Oct 8 21:18:17 kernel: pwc Too many ISOC errors, bailing out.
Oct 8 21:18:17 kernel: pwc Too many ISOC errors, bailing out.
Oct 8 21:18:17 kernel: pwc Too many ISOC errors, bailing out.
Oct 8 21:18:20 USB webcam: webcam capture no frame
Oct 8 21:18:20 kernel: pwc Too many ISOC errors, bailing out.
драйвер схватывает, но ошибка выпадает...
помогите, я в этом не бум бум
А самому ознакомится со списком поддерживаемых камер? )
http://www.ideasonboard.org/uvc/#devices
А вообще интересно, эта прога пойдет с uvc драйвером? И собственно как его запустить руками в новых ревизиях, если камера выключена через веб морду. В первом посте вроде даны команды для другого драйвера.
Last edited by Viper_Rus; 12-10-2010 at 08:50.
Asus RT-N16(1.9.2.7-rtn-r4xxx) + multi-wan + PopTop 1.3.4-2 + MediaTomb 0.11
Asus O!Play (1.16P) + moServices