motion + orient SDVR-405 [SOLVED]
qzaki 28 января, 2010 - 04:54
Всем доброго времени суток!
Никак не могу запустить сей девайс, максимум чего добился это синий фон и часы в углу картинки (motion работает, но сигнала как будто нет). Помогите пожалуйста!
вот /var/log/messages
Jan 28 03:21:34 localhost motion: [0] Processing thread 0 - config file /etc/motion.conf Jan 28 03:21:34 localhost motion: [0] Motion 3.2.11.1 Started Jan 28 03:21:34 localhost motion: [0] ffmpeg LIBAVCODEC_BUILD 3417345 LIBAVFORMAT_BUILD 3417858 Jan 28 03:21:34 localhost motion: [0] Thread 1 is from /etc/motion.conf Jan 28 03:21:34 localhost motion: [1] cap.driver: "bttv" Jan 28 03:21:34 localhost motion: [1] cap.card: "BT878 video (ProVideo PV143)" Jan 28 03:21:34 localhost motion: [1] cap.bus_info: "PCI:0000:05:01.0" Jan 28 03:21:34 localhost motion: [1] cap.capabilities=0x05000015 Jan 28 03:21:34 localhost motion: [1] - VIDEO_CAPTURE Jan 28 03:21:34 localhost motion: [1] - VIDEO_OVERLAY Jan 28 03:21:34 localhost motion: [1] - VBI_CAPTURE Jan 28 03:21:34 localhost motion: [1] - READWRITE Jan 28 03:21:34 localhost motion: [1] - STREAMING Jan 28 03:21:34 localhost motion: [1] Supported palettes: Jan 28 03:21:34 localhost motion: [1] 0: GREY (8 bpp, gray) Jan 28 03:21:34 localhost motion: [1] 1: HI24 (8 bpp, dithered color) Jan 28 03:21:34 localhost motion: [1] 2: RGBO (15 bpp RGB, le) Jan 28 03:21:34 localhost motion: [1] 3: RGBQ (15 bpp RGB, be) Jan 28 03:21:34 localhost motion: [1] 4: RGBP (16 bpp RGB, le) Jan 28 03:21:34 localhost motion: [1] 5: RGBR (16 bpp RGB, be) Jan 28 03:21:34 localhost motion: [1] 6: BGR3 (24 bpp RGB, le) Jan 28 03:21:34 localhost motion: [1] 7: BGR4 (32 bpp RGB, le) Jan 28 03:21:34 localhost motion: [1] 8: RGB4 (32 bpp RGB, be) Jan 28 03:21:34 localhost motion: [1] 9: YUYV (4:2:2, packed, YUYV) Jan 28 03:21:34 localhost motion: [1] 10: YUYV (4:2:2, packed, YUYV) Jan 28 03:21:34 localhost motion: [1] 11: UYVY (4:2:2, packed, UYVY) Jan 28 03:21:34 localhost motion: [1] 12: 422P (4:2:2, planar, Y-Cb-Cr) Jan 28 03:21:34 localhost motion: [1] 13: YU12 (4:2:0, planar, Y-Cb-Cr) Jan 28 03:21:34 localhost motion: [1] Selected palette YU12 Jan 28 03:21:34 localhost motion: [1] index_format 8 Test palette YU12 (720x480) Jan 28 03:21:34 localhost motion: [1] Using palette YU12 (720x480) bytesperlines 720 sizeimage 518400 colorspace 00000000 Jan 28 03:21:34 localhost motion: [1] found control 0x00980900, "Brightness", range 0,65535 Jan 28 03:21:34 localhost motion: [1] "Brightness", default 32768, current 32768 Jan 28 03:21:34 localhost motion: [1] found control 0x00980901, "Contrast", range 0,65535 Jan 28 03:21:34 localhost motion: [1] "Contrast", default 32768, current 32768 Jan 28 03:21:34 localhost motion: [1] found control 0x00980902, "Saturation", range 0,65535 Jan 28 03:21:34 localhost motion: [1] "Saturation", default 32768, current 32768 Jan 28 03:21:34 localhost motion: [1] found control 0x00980903, "Hue", range 0,65535 Jan 28 03:21:34 localhost motion: [1] "Hue", default 32768, current 32768 Jan 28 03:21:34 localhost motion: [1] found control 0x00000000, "42", range 0,0 !DISABLED! Jan 28 03:21:34 localhost motion: [1] "42", default 0, current 0 Jan 28 03:21:34 localhost motion: [1] found control 0x00000000, "42", range 0,0 !DISABLED! Jan 28 03:21:34 localhost motion: [1] "42", default 0, current 0 Jan 28 03:21:34 localhost motion: [1] found control 0x00000000, "42", range 0,0 !DISABLED! Jan 28 03:21:34 localhost motion: [1] "42", default 0, current 0 Jan 28 03:21:34 localhost motion: [1] found control 0x00000000, "42", range 0,0 !DISABLED! Jan 28 03:21:34 localhost motion: [1] "42", default 0, current 0 Jan 28 03:21:34 localhost motion: [1] found control 0x00000000, "42", range 0,0 !DISABLED! Jan 28 03:21:34 localhost motion: [1] "42", default 0, current 0 Jan 28 03:21:34 localhost motion: [1] found control 0x00000000, "42", range 0,0 !DISABLED! Jan 28 03:21:34 localhost motion: [1] "42", default 0, current 0 Jan 28 03:21:34 localhost motion: [1] found control 0x08000000, "chroma agc", range 0,1 Jan 28 03:21:34 localhost motion: [1] "chroma agc", default 0, current 0 Jan 28 03:21:34 localhost motion: [1] found control 0x08000001, "combfilter", range 0,1 Jan 28 03:21:34 localhost motion: [1] "combfilter", default 0, current 0 Jan 28 03:21:34 localhost motion: [1] Resizing pre_capture buffer to 1 items
Ядро [2] linux-2.6.31-gentoo-r6 *
localhost log # cat /usr/src/linux/.config|grep V4L CONFIG_VIDEO_V4L2_COMMON=y # CONFIG_VIDEO_ALLOW_V4L1 is not set CONFIG_VIDEO_V4L1_COMPAT=y CONFIG_VIDEO_V4L2=y CONFIG_V4L_USB_DRIVERS=y
модуль загружаю с такими параметрами
localhost log # cat /etc/modprobe.d/video4linux.conf options bttv card=0x69 tuner=-1 autoload=0
localhost log # lsmod |grep bttv bttv 105604 0 ir_common 48076 1 bttv i2c_algo_bit 4984 1 bttv videobuf_dma_sg 11316 1 bttv videobuf_core 16332 2 bttv,videobuf_dma_sg btcx_risc 4368 1 bttv tveeprom 10720 1 bttv
### v4l2 device info [/dev/video0] ### general info VIDIOC_QUERYCAP driver : "bttv" card : "BT878 video (ProVideo PV143)" bus_info : "PCI:0000:05:01.0" version : 0.9.18 capabilities : 0x5000015 [VIDEO_CAPTURE,VIDEO_OVERLAY,VBI_CAPTURE,READWRITE,STREAMING]
в общем все как в http://avreg.net/howto_linux-capture-cards.html
что мог забыть? (
»
- Для комментирования войдите или зарегистрируйтесь
/etc/modprobe.d/motion.conf
/etc/modprobe.d/motion.conf
Вот и все. Для SDVR405 номер карты 103.
теперь возник организационный вопрос
А как теперь заставить motion смотреть разные камеры при том что чип bttv всего 1, входа 4?
в /dev лишь video0
но камеру 1 он видит четко
судя по документации
судя по документации выше:
options bttv card=103,103,103,103
просмотр с нескольких камер на одной плате захвата
в каждом треде motion нужно найти параметр input, который принимает значение 0..1..2.....7
и указать корректное значение. Значение получить просмотром каналов платы например с помощью xawtv, попробуйте там разные composite0.. s-video, television, что будет зависеть от типа платы.