Send Motion-user mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Re: Permanent assign cam order: video0 / video1 for USB cam1
/ USB cam2 (Mariusz Ciszewski)
2. Re: Permanent assign cam order: video0 / video1 for USB cam1
/ USB cam2 (Mariusz Ciszewski)
----------------------------------------------------------------------
Message: 1
Date: Sat, 19 Sep 2015 14:56:18 +0200
From: Mariusz Ciszewski <[email protected]>
Subject: Re: [Motion-user] Permanent assign cam order: video0 / video1
for USB cam1 / USB cam2
To: Motion discussion list <[email protected]>
Message-ID:
<caopaqykvd+2z3-jxg9vzn+gcx_k4pl24ymokb6b4ctsducj...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
First camera:
http://pastebin.com/v1PZf2SE
Second camera:
http://pastebin.com/bi92rTU4
2015-09-19 14:55 GMT+02:00 Mariusz Ciszewski <[email protected]>:
> My first camera:
> ATTRS{serial}=="9H005586"
>
> My second camera:
> ATTRS{serial}=="bcm2708_usb"
>
> 2015-09-19 14:49 GMT+02:00 ?ydr?nas Urbonas <[email protected]>:
>
>> # udevadm info /dev/video0
>> P:
>> /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/video4linux/video0
>> N: video0
>> S:
>> v4l/by-id/usb-Chicony_Electronics_Co._Ltd._TOSHIBA_Web_Camera_-_HD_0x0001-video-index0
>> S: v4l/by-path/pci-0000:00:1a.0-usb-0:1.3:1.0-video-index0
>> E:
>> DEVLINKS=/dev/v4l/by-id/usb-Chicony_Electronics_Co._Ltd._TOSHIBA_Web_Camera_-_HD_0x0001-video-index0
>> /dev/v4l/by-path/pci-0000:00:1a.0-usb-0:1.3:1.0-video-index0
>> E: DEVNAME=/dev/video0
>> E:
>> DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/video4linux/video0
>> E: ID_BUS=usb
>> E: ID_FOR_SEAT=video4linux-pci-0000_00_1a_0-usb-0_1_3_1_0
>> E: ID_MODEL=TOSHIBA_Web_Camera_-_HD
>> E: ID_MODEL_ENC=TOSHIBA\x20Web\x20Camera\x20-\x20HD
>> E: ID_MODEL_ID=b307
>> E: ID_PATH=pci-0000:00:1a.0-usb-0:1.3:1.0
>> E: ID_PATH_TAG=pci-0000_00_1a_0-usb-0_1_3_1_0
>> E: ID_REVISION=6030
>> E: ID_SERIAL=Chicony_Electronics_Co._Ltd._TOSHIBA_Web_Camera_-_HD_0x0001
>> E: ID_SERIAL_SHORT=0x0001
>> E: ID_TYPE=video
>> E: ID_USB_DRIVER=uvcvideo
>> E: ID_USB_INTERFACES=:0e0100:0e0200:
>> E: ID_USB_INTERFACE_NUM=00
>> E: ID_V4L_CAPABILITIES=:capture:
>> E: ID_V4L_PRODUCT=TOSHIBA Web Camera - HD
>> E: ID_V4L_VERSION=2
>> E: ID_VENDOR=Chicony_Electronics_Co._Ltd.
>> E: ID_VENDOR_ENC=Chicony\x20Electronics\x20Co.\x2cLtd.
>> E: ID_VENDOR_ID=04f2
>> E: MAJOR=81
>> E: MINOR=0
>> E: SUBSYSTEM=video4linux
>> E: TAGS=:seat:uaccess:
>> E: USEC_INITIALIZED=758607
>>
>>
>> On Sat, Sep 19, 2015 at 3:22 PM, Mariusz Ciszewski <
>> [email protected]> wrote:
>>
>>> Ok. But how can I get this string "046d_0825_77098E00" for all my USB
>>> cameras ?
>>>
>>> Thank you and best regards
>>> Mariusz
>>>
>>> 2015-09-18 8:43 GMT+02:00 ?ydr?nas Urbonas <[email protected]>:
>>>
>>>> Yeah, I had same issue when on boot two cameras got unpredictable
>>>> "video*" thus breaking motion configs.
>>>> So I used udev rule file to assign special names according to USB
>>>> vendor ids, like this:
>>>>
>>>> SUBSYSTEM=="video4linux", ENV{ID_SERIAL}=="046d_0991_DE4250F2",
>>>> SYMLINK+="webcam0"
>>>> SUBSYSTEM=="video4linux", ENV{ID_SERIAL}=="046d_0825_77098E00",
>>>> SYMLINK+="webcam1"
>>>>
>>>> And then I put /dev/webcam0 into motion's config nad I'm then sure I
>>>> use correct camera
>>>>
>>>> HTH
>>>>
>>>> On Thu, Sep 17, 2015 at 8:50 PM, Mariusz Ciszewski <
>>>> [email protected]> wrote:
>>>>
>>>>> Hello.
>>>>>
>>>>>
>>>>> Is it possible somehow to force:
>>>>>
>>>>>
>>>>> /dev/video0 always for USB cam:
>>>>>
>>>>> Bus 001 Device 009: ID 041e:4052 Creative Technology, Ltd Live! Cam
>>>>> Vista IM
>>>>>
>>>>>
>>>>>
>>>>> /dev/video1 always for USB cam:
>>>>>
>>>>> Bus 001 Device 008: ID 041e:4069 Creative Technology, Ltd
>>>>>
>>>>>
>>>>> How to prevent rondom X for /dev/vidX (a few USB webcams) after system
>>>>> bacames restarted?
>>>>>
>>>>>
>>>>> Is it possible to connect a few cameras the same type, e. g.
>>>>>
>>>>> Bus 001 Device 008: ID 041e:4069 Creative Technology, Ltd
>>>>>
>>>>>
>>>>> and keep proper association video0 / video1 / video2 for USB cam1 /
>>>>> USB cam2 / USB cam3 ?
>>>>>
>>>>>
>>>>> Thank you for any hints.
>>>>>
>>>>>
>>>>> Best regards
>>>>>
>>>>> Mariusz
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>>>> Get real-time metrics from all of your servers, apps and tools
>>>>> in one place.
>>>>> SourceForge users - Click here to start your Free Trial of Datadog now!
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>>>> _______________________________________________
>>>>> Motion-user mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Motion-user mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Motion-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Motion-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Sat, 19 Sep 2015 15:14:24 +0200
From: Mariusz Ciszewski <[email protected]>
Subject: Re: [Motion-user] Permanent assign cam order: video0 / video1
for USB cam1 / USB cam2
To: Motion discussion list <[email protected]>
Message-ID:
<CAOpAQyKUvExRJ3Q=kcenuv5pj2ebyagzwqjkzpivwqgph_k...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
So I created file /etc/udev/usb-cam.rules containing:
SUBSYSTEM=="video4linux", ATTRS{serial}=="9H005586", SYMLINK+="webcam0"
SUBSYSTEM=="video4linux", ATTRS{serial}=="bcm2708_usb", SYMLINK+="webcam1"
Then udev restart:
root@raspberrypi:~# udevadm control --reload-rules
root@raspberrypi:~#
But I cant find any webcam files:
root@raspberrypi:~# ls /dev/web*
ls: no access for /dev/web*: No such file or folder
root@raspberrypi:~#
2015-09-19 14:56 GMT+02:00 Mariusz Ciszewski <[email protected]>:
> First camera:
> http://pastebin.com/v1PZf2SE
>
> Second camera:
> http://pastebin.com/bi92rTU4
>
> 2015-09-19 14:55 GMT+02:00 Mariusz Ciszewski <[email protected]>
> :
>
>> My first camera:
>> ATTRS{serial}=="9H005586"
>>
>> My second camera:
>> ATTRS{serial}=="bcm2708_usb"
>>
>> 2015-09-19 14:49 GMT+02:00 ?ydr?nas Urbonas <[email protected]>:
>>
>>> # udevadm info /dev/video0
>>> P:
>>> /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/video4linux/video0
>>> N: video0
>>> S:
>>> v4l/by-id/usb-Chicony_Electronics_Co._Ltd._TOSHIBA_Web_Camera_-_HD_0x0001-video-index0
>>> S: v4l/by-path/pci-0000:00:1a.0-usb-0:1.3:1.0-video-index0
>>> E:
>>> DEVLINKS=/dev/v4l/by-id/usb-Chicony_Electronics_Co._Ltd._TOSHIBA_Web_Camera_-_HD_0x0001-video-index0
>>> /dev/v4l/by-path/pci-0000:00:1a.0-usb-0:1.3:1.0-video-index0
>>> E: DEVNAME=/dev/video0
>>> E:
>>> DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0/video4linux/video0
>>> E: ID_BUS=usb
>>> E: ID_FOR_SEAT=video4linux-pci-0000_00_1a_0-usb-0_1_3_1_0
>>> E: ID_MODEL=TOSHIBA_Web_Camera_-_HD
>>> E: ID_MODEL_ENC=TOSHIBA\x20Web\x20Camera\x20-\x20HD
>>> E: ID_MODEL_ID=b307
>>> E: ID_PATH=pci-0000:00:1a.0-usb-0:1.3:1.0
>>> E: ID_PATH_TAG=pci-0000_00_1a_0-usb-0_1_3_1_0
>>> E: ID_REVISION=6030
>>> E: ID_SERIAL=Chicony_Electronics_Co._Ltd._TOSHIBA_Web_Camera_-_HD_0x0001
>>> E: ID_SERIAL_SHORT=0x0001
>>> E: ID_TYPE=video
>>> E: ID_USB_DRIVER=uvcvideo
>>> E: ID_USB_INTERFACES=:0e0100:0e0200:
>>> E: ID_USB_INTERFACE_NUM=00
>>> E: ID_V4L_CAPABILITIES=:capture:
>>> E: ID_V4L_PRODUCT=TOSHIBA Web Camera - HD
>>> E: ID_V4L_VERSION=2
>>> E: ID_VENDOR=Chicony_Electronics_Co._Ltd.
>>> E: ID_VENDOR_ENC=Chicony\x20Electronics\x20Co.\x2cLtd.
>>> E: ID_VENDOR_ID=04f2
>>> E: MAJOR=81
>>> E: MINOR=0
>>> E: SUBSYSTEM=video4linux
>>> E: TAGS=:seat:uaccess:
>>> E: USEC_INITIALIZED=758607
>>>
>>>
>>> On Sat, Sep 19, 2015 at 3:22 PM, Mariusz Ciszewski <
>>> [email protected]> wrote:
>>>
>>>> Ok. But how can I get this string "046d_0825_77098E00" for all my USB
>>>> cameras ?
>>>>
>>>> Thank you and best regards
>>>> Mariusz
>>>>
>>>> 2015-09-18 8:43 GMT+02:00 ?ydr?nas Urbonas <[email protected]>:
>>>>
>>>>> Yeah, I had same issue when on boot two cameras got unpredictable
>>>>> "video*" thus breaking motion configs.
>>>>> So I used udev rule file to assign special names according to USB
>>>>> vendor ids, like this:
>>>>>
>>>>> SUBSYSTEM=="video4linux", ENV{ID_SERIAL}=="046d_0991_DE4250F2",
>>>>> SYMLINK+="webcam0"
>>>>> SUBSYSTEM=="video4linux", ENV{ID_SERIAL}=="046d_0825_77098E00",
>>>>> SYMLINK+="webcam1"
>>>>>
>>>>> And then I put /dev/webcam0 into motion's config nad I'm then sure I
>>>>> use correct camera
>>>>>
>>>>> HTH
>>>>>
>>>>> On Thu, Sep 17, 2015 at 8:50 PM, Mariusz Ciszewski <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hello.
>>>>>>
>>>>>>
>>>>>> Is it possible somehow to force:
>>>>>>
>>>>>>
>>>>>> /dev/video0 always for USB cam:
>>>>>>
>>>>>> Bus 001 Device 009: ID 041e:4052 Creative Technology, Ltd Live! Cam
>>>>>> Vista IM
>>>>>>
>>>>>>
>>>>>>
>>>>>> /dev/video1 always for USB cam:
>>>>>>
>>>>>> Bus 001 Device 008: ID 041e:4069 Creative Technology, Ltd
>>>>>>
>>>>>>
>>>>>> How to prevent rondom X for /dev/vidX (a few USB webcams) after
>>>>>> system bacames restarted?
>>>>>>
>>>>>>
>>>>>> Is it possible to connect a few cameras the same type, e. g.
>>>>>>
>>>>>> Bus 001 Device 008: ID 041e:4069 Creative Technology, Ltd
>>>>>>
>>>>>>
>>>>>> and keep proper association video0 / video1 / video2 for USB cam1 /
>>>>>> USB cam2 / USB cam3 ?
>>>>>>
>>>>>>
>>>>>> Thank you for any hints.
>>>>>>
>>>>>>
>>>>>> Best regards
>>>>>>
>>>>>> Mariusz
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
>>>>>> Get real-time metrics from all of your servers, apps and tools
>>>>>> in one place.
>>>>>> SourceForge users - Click here to start your Free Trial of Datadog
>>>>>> now!
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
>>>>>> _______________________________________________
>>>>>> Motion-user mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>>
>>>>> _______________________________________________
>>>>> Motion-user mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Motion-user mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Motion-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
------------------------------
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
End of Motion-user Digest, Vol 112, Issue 12
********************************************