Send Motion-user mailing list submissions to motion-user@lists.sourceforge.net
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 motion-user-requ...@lists.sourceforge.net You can reach the person managing the list at motion-user-ow...@lists.sourceforge.net When replying, please edit your Subject line so it is more specific than "Re: Contents of Motion-user digest..." Today's Topics: 1. Re: How view alternate /dev/video channel? (Barry Martin) 2. Re: How view alternate /dev/video channel? (tosiara) ---------------------------------------------------------------------- Message: 1 Date: Mon, 7 Jun 2021 11:53:19 -0500 From: Barry Martin <barry3mar...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] How view alternate /dev/video channel? Message-ID: <a4459c8b-088c-6436-2585-c95e7859c...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" On 6/7/21 10:53 AM, Gustavo Ovalle wrote: > > A fragment of documentation: > > Since the exact device number is set by the kernel upon boot, when > there is more than one video device it is possible that the > particular cameras that were assigned to /dev/video0 and > /dev/video1 may switch. In order to set up Motion so that a > particular camera is always assigned the same way, users can set > up a symbolic link using udev rules. To do this a unique attribute > must be identified for each camera. The camera attributes can be > viewed by using the command |udevadm info -a -p $(udevadm info -q > path -n /dev/video0) |while the camera is attached. Usually a > serial number can be used. ("Usually" because some cameras have > been observed to have the same serial number for different cameras) > > https://motion-project.github.io/motion_config.html#Video4Linux_Devices Hi Gustavo! Thanks for the reply ? my problem isn?t so much the two physical cameras ?changing positions? ? they have and I ?just deal wih it?: when viewing the recordings I just remember to view the other camera. When viewing live on a monitor I can configure the utility to put Camera1 (port 8081) on the left or the right (swaps with Camera 2 [port 8082]. Both cameras have the same in the serial number field. What I was wanting to do was both cameras have two video streams (correct term?) when using clvc (vlc at command line): ??? Camera 1 /dev/video0 ??? MPJG output ??? /dev/video2 ??? H264 output ??? Camera 2 /dev/video4 ??? MPJG output ??? /dev/video6 ??? H264 output (Next is same as above, placed within a chart to maybe format better on the reader?s side) Camera 1 /dev/video0 MPJG output /dev/video2 H264 output Camera2 /dev/video4 MPJG output /dev/video6 H264 output Motion can use video0 for Camera1 and video4 for Camera 2. Works fine until it gets hot in the Storage Area (attic). What I?d like to do is be able to use video 2 and 6 as these video sources work per cvlc but Motion is saying ?Unable to Open Video Device?. Motion likes the MJPG sources (0 and 4) but doens?t seem to want to play nice with the H264 ones (2 and 6). I can post the results I got for udevadm info -a -p $(udevadm info -q path -n /dev/video0)and /dev/video2 ? I didn?t see anything but then I?m not sure what I?m loking at. Thanks for the assistance! Barry -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Mon, 7 Jun 2021 20:10:15 +0300 From: tosiara <tosi...@gmail.com> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: Re: [Motion-user] How view alternate /dev/video channel? Message-ID: <CACHTdwTYu_MojthwimH9EhCv+MdOTJpd6u5vmA=mtluoxmi...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Try using those h264 cameras with netcam_url, like v4l2:///dev/video6 and set pixel format to 21 On Mon, Jun 7, 2021, 19:54 Barry Martin <barry3mar...@gmail.com> wrote: > > On 6/7/21 10:53 AM, Gustavo Ovalle wrote: > > > A fragment of documentation: > > > Since the exact device number is set by the kernel upon boot, when > there is more than one video device it is possible that the particular > cameras that were assigned to /dev/video0 and /dev/video1 may switch. In > order to set up Motion so that a particular camera is always assigned the > same way, users can set up a symbolic link using udev rules. To do this a > unique attribute must be identified for each camera. The camera attributes > can be viewed by using the command udevadm info -a -p $(udevadm info > -q path -n /dev/video0) while the camera is attached. Usually a serial > number can be used. ("Usually" because some cameras have been observed to > have the same serial number for different cameras) > > https://motion-project.github.io/motion_config.html#Video4Linux_Devices > > > Hi Gustavo! > > > Thanks for the reply ? my problem isn?t so much the two physical cameras > ?changing positions? ? they have and I ?just deal wih it?: when viewing the > recordings I just remember to view the other camera. When viewing live on a > monitor I can configure the utility to put Camera1 (port 8081) on the left > or the right (swaps with Camera 2 [port 8082]. > > > Both cameras have the same in the serial number field. > > > What I was wanting to do was both cameras have two video streams (correct > term?) when using clvc (vlc at command line): > > > Camera 1 /dev/video0 MPJG output > > /dev/video2 H264 output > > > Camera 2 /dev/video4 MPJG output > > /dev/video6 H264 output > > > (Next is same as above, placed within a chart to maybe format better on > the reader?s side) > > Camera 1 > > /dev/video0 > > MPJG output > > > /dev/video2 > > H264 output > > > > > Camera2 > > /dev/video4 > > MPJG output > > > /dev/video6 > > H264 output > > Motion can use video0 for Camera1 and video4 for Camera 2. Works fine > until it gets hot in the Storage Area (attic). What I?d like to do is be > able to use video 2 and 6 as these video sources work per cvlc but Motion > is saying ?Unable to Open Video Device?. Motion likes the MJPG sources (0 > and 4) but doens?t seem to want to play nice with the H264 ones (2 and 6). > > > I can post the results I got for udevadm info -a -p $(udevadm info -q > path -n /dev/video0) and /dev/video2 ? I didn?t see anything but then I?m > not sure what I?m loking at. > > > Thanks for the assistance! > > Barry > > > > _______________________________________________ > Motion-user mailing list > Motion-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/motion-user > https://motion-project.github.io/ > > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Motion-user mailing list Motion-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/motion-user ------------------------------ End of Motion-user Digest, Vol 180, Issue 6 *******************************************