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. How view alternate /dev/video channel? (Barry Martin)
   2. Re: How view alternate /dev/video channel? (Gustavo Ovalle)


----------------------------------------------------------------------

Message: 1
Date: Mon, 7 Jun 2021 09:57:51 -0500
From: Barry Martin <barry3mar...@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] How view alternate /dev/video channel?
Message-ID: <d8e4c5dd-ad23-17bf-86db-ad75b201d...@gmail.com>
Content-Type: text/plain; charset="utf-8"; Format="flowed"


Hi Folks!


Me again ? took care of 99% of the gray glitching problems. Currently 
system still has an issue of loss of the video feed of one camera and 
freezing (a still frame) of the other camera which appears to be due to 
the cameras getting too hot in the Storage Area (essentially attic). 
Working on cooling the cameras.


What I accidentally found out is the cameras are working on a different 
video device but I can?t figure out how to get Motion to use this alternate.


v4l2-ctl --list-devices

 ??? H264 USB Camera: USB Camera (usb-0000:01:00.0-1.1):

/dev/video0

/dev/video1

/dev/video2

/dev/video3


 ??? H264 USB Camera: USB Camera (usb-0000:01:00.0-1.2):

/dev/video4

/dev/video5

/dev/video6

/dev/video7


So currently I have camera1.conf looking at /dev.video0 and camera2.conf 
looking at /dev/video4. Everything is happy-happy-joy-joy <g> until it 
get hot in the Storage Area.


I was fiddling around and found cvlc v4l2:///dev/video2 will display the 
video from Camera1, and /dev/video6 for Camera2, even though the video 
feed from Motion is not working. (The Live Stream Server, port 8081 
[8082] section.)



Looking at v4l2-ctl -d /dev/video0--all (and video2, -4, -6) I found:


section = Format Video Capture:


/dev/video0 Width/Height : 1280/720 Pixel Format : 'MJPG' (Motion-JPEG)

 ??? ??? ??? ??? 2 Width/Height : 1920/1080 Pixel Format : 'H264' (H.264)


dev/video4 Width/Height : 1280/720 Pixel Format : 'MJPG' (Motion-JPEG)

 ??? ??? ??? 6 Width/Height : 1920/1080 Pixel Format : 'H264' (H.264)



So it appears devices 0 and 4 (Camera 1 and 2, respectively), used MJPG 
and devices 2 and 6 use H264, which half-explains why cvlc works. 
Switching Motion?s camera configurion to the H264 ?channels? I get the 
Unable to Open Video Device gray screen. Also had changed the 
v4l2_palette from 8 (MJPG) to 21 (H264) but that didn?t help (obviously).


What do I need to do to get the H264 channel running? I still intend to 
cool the cameras.


TIA!

Barry



P.S.:

If anyone wishes to refer to the original thread it?s ?Gray glitching 
but only one of of two identical cameras?.

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Mon, 7 Jun 2021 12:53:38 -0300
From: Gustavo Ovalle <gustavo.ova...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] How view alternate /dev/video channel?
Message-ID:
        <CAOmedOC6Kutssx7uc22rFEt=pkbz9+d5wxxvnjbkob2rrtb...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

   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



El lun, 7 de jun. de 2021 a la(s) 11:59, Barry Martin (
barry3mar...@gmail.com) escribi?:

>
> Hi Folks!
>
>
> Me again ? took care of 99% of the gray glitching problems. Currently
> system still has an issue of loss of the video feed of one camera and
> freezing (a still frame) of the other camera which appears to be due to the
> cameras getting too hot in the Storage Area (essentially attic). Working on
> cooling the cameras.
>
>
> What I accidentally found out is the cameras are working on a different
> video device but I can?t figure out how to get Motion to use this alternate.
>
>
> v4l2-ctl --list-devices
>
>     H264 USB Camera: USB Camera (usb-0000:01:00.0-1.1):
>
>         /dev/video0
>
>         /dev/video1
>
>         /dev/video2
>
>         /dev/video3
>
>
>     H264 USB Camera: USB Camera (usb-0000:01:00.0-1.2):
>
>         /dev/video4
>
>         /dev/video5
>
>         /dev/video6
>
>         /dev/video7
>
>
> So currently I have camera1.conf looking at /dev.video0 and camera2.conf
> looking at /dev/video4. Everything is happy-happy-joy-joy <g> until it get
> hot in the Storage Area.
>
>
> I was fiddling around and found cvlc v4l2:///dev/video2 will display the
> video from Camera1, and /dev/video6 for Camera2, even though the video feed
> from Motion is not working. (The Live Stream Server, port 8081 [8082]
> section.)
>
>
>
> Looking at v4l2-ctl -d /dev/video0 --all (and video2, -4, -6) I found:
>
>
> section = Format Video Capture:
>
>
> /dev/video0 Width/Height : 1280/720 Pixel Format : 'MJPG' (Motion-JPEG)
>
>                 2 Width/Height : 1920/1080 Pixel Format : 'H264' (H.264)
>
>
> dev/video4 Width/Height : 1280/720 Pixel Format : 'MJPG' (Motion-JPEG)
>
>                 6 Width/Height : 1920/1080 Pixel Format : 'H264' (H.264)
>
>
>
> So it appears devices 0 and 4 (Camera 1 and 2, respectively), used MJPG
> and devices 2 and 6 use H264, which half-explains why cvlc works. Switching
> Motion?s camera configurion to the H264 ?channels? I get the Unable to Open
> Video Device gray screen. Also had changed the v4l2_palette from 8 (MJPG)
> to 21 (H264) but that didn?t help (obviously).
>
>
> What do I need to do to get the H264 channel running? I still intend to
> cool the cameras.
>
>
> TIA!
>
> Barry
>
>
>
> P.S.:
>
> If anyone wishes to refer to the original thread it?s ?Gray glitching but
> only one of of two identical cameras?.
>
> _______________________________________________
> 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



-- 
Gustavo J. Ovalle
Ara?a
Ituzaingo 1365
S3070BPW - San Crist?bal
Santa Fe
e-mail: gustavo.ova...@gmail.com
-------------- 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 5
*******************************************

Reply via email to