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: raspberry pi libcamera motion bulseye (tosiara)
   2. Re: raspberry pi libcamera motion bulseye (Ed Kapitein)
   3. Re: raspberry pi libcamera motion bulseye (tosiara)
   4. Re: raspberry pi libcamera motion bulseye (tosiara)


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

Message: 1
Date: Mon, 15 Nov 2021 14:52:57 +0200
From: tosiara <tosi...@gmail.com>
To: Ed Kapitein <e...@kapitein.org>
Cc: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] raspberry pi libcamera motion bulseye
Message-ID:
        <cachtdwrpvn8ap-1rz-nftawiwqfz6+15mugquzj2nnmukec...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Are you able to play 640x480 mode in ffplay or vlc? Does it give you
the same FOV as motion or different?

Which resolution did you use in motion prior to upgrade to bullseye?

On Mon, Nov 15, 2021 at 2:42 PM Ed Kapitein <e...@kapitein.org> wrote:
>
> Hi Tosiara,
>
> The motion log file is attached as requested.
> The only way i can get motion to work is to use 640x480 as the width/height.
> [1] is a picture, taken with libcamera-still, that shows the complete FOV
> [2] is a picture from motion, which only has a small FOV.
>
> Do you have a raspberry pi (3B+) with a V2 camera module? (2B should be good 
> too)
> If you do, you could download the official raspberry pi OS from [3] and use a 
> fresh SD card to try the new libcamera setup with motion.
>
> [1] http://www.kapitein.org/pictures/libcamera-still.jpg
> [2] http://www.kapitein.org/pictures/motion.jpg
> [3] 
> https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-11-08/2021-10-30-raspios-bullseye-armhf-lite.zip
>
> Kind regards,
> Ed
>
>
> On 11/15/21 12:45 PM, tosiara wrote:
>
> Can you attach the full motion log with -d 9 when running your Pi camera?
>
>
> On Mon, Nov 15, 2021 at 1:10 PM Ed Kapitein <e...@kapitein.org> wrote:
>
> Hi Tosiara,
>
> The new raspberry pi OS ( bullseye ) uses libcamera and that is very
> different from the old way of using the camera.
>
> The FOV is the Field Of View and in the attached pictures you can see
> that motion is using a small part of the picture,
>
> and i can not get the complete FOV with motion.
>
> It would be nice if someone with knowledge of motion and libcamera,
> could make a (per camera) table of working settings
>
> something like this:
> +------------------------------------------------------------------------------------+
> | raspberry pi camera module V2 NOIR |
> +--------------+-------------------------------------+-------------------------------+
> | device |v4l2-ctl |motion.conf |
> +--------------+-------------------------------------+-------------------------------+
> | /dev/video0 |set-fmt-video=width=1640,height=1232
> |with=1640,height=1232,input=-1 | | /dev/video14
> |set-fmt-video=width=640,height=480 |with=640,height=480,input=8 |
> +--------------+-------------------------------------+-------------------------------+
> I assume that many wildlife camera's are build around motion and will
> start to fail if people upgrade to the new raspberry pi OS Kind regards, Ed
>
> On 11/15/21 11:00 AM, tosiara wrote:
>
> Maybe it is not motion, bet Raspberry changed something in the new OS
> image I don't know what is FOV on pi camera and how motion can control
> it On Sun, Nov 14, 2021 at 6:32 PM Ed Kapitein via Motion-user
> <motion-user@lists.sourceforge.net> wrote:
>
> Hi, I own a raspberry pi 3B+ and a camera v2 NOIR and use motion.
> After upgrading to bullseye i had and have some difficulties to use
> motion. For me it does not work "out of the box" I needed to rename
> the existing cameraX-dist.conf to something else then .conf to get
> motion working. And when using /dev/video0 the FOV is smaller than it
> should be. I assume the documentation needs an update. Motion *is*
> working, but i assume that with libcamera there is need of working
> examples of config files with the available raspberry pi camera's.
> Could someone please add a dedicated section for the raspberry pi and
> the well known camera's, so we can continue to use motion with the
> new setup? Let me know if i can test anything! Kind regards, Ed
> _______________________________________________ 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
>
>



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

Message: 2
Date: Mon, 15 Nov 2021 14:58:56 +0100
From: Ed Kapitein <e...@kapitein.org>
To: tosiara <tosi...@gmail.com>
Cc: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] raspberry pi libcamera motion bulseye
Message-ID: <7ab761ae-ea02-dce0-9563-3d1eefea7...@kapitein.org>
Content-Type: text/plain; charset=utf-8; format=flowed

Yes, mplayer plays it just fine:

Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Planar YV12

and is has the same FOV as the motion picture. [1]

Before the upgrade to bullseye i also used 640x480 and got the whole FOV.

[3] is a video clips made with the old setup.

More info on FOV and binning (which i think is happening) is on [1]


Kind regards,

Ed

[1] http://www.kapitein.org/pictures/motion.jpg

[2] https://picamera.readthedocs.io/en/release-1.12/fov.html

[3] http://www.kapitein.org/pictures/04-20211028034157.mp4


PS

Motion gives me a signal when the mouse is caught, so we can release it 
into the wild.

No animals where harmed during the recording of this clip ;-)


On 11/15/21 1:52 PM, tosiara wrote:
> Are you able to play 640x480 mode in ffplay or vlc? Does it give you
> the same FOV as motion or different?
>
> Which resolution did you use in motion prior to upgrade to bullseye?
>
> On Mon, Nov 15, 2021 at 2:42 PM Ed Kapitein <e...@kapitein.org> wrote:
>> Hi Tosiara,
>>
>> The motion log file is attached as requested.
>> The only way i can get motion to work is to use 640x480 as the width/height.
>> [1] is a picture, taken with libcamera-still, that shows the complete FOV
>> [2] is a picture from motion, which only has a small FOV.
>>
>> Do you have a raspberry pi (3B+) with a V2 camera module? (2B should be good 
>> too)
>> If you do, you could download the official raspberry pi OS from [3] and use 
>> a fresh SD card to try the new libcamera setup with motion.
>>
>> [1] http://www.kapitein.org/pictures/libcamera-still.jpg
>> [2] http://www.kapitein.org/pictures/motion.jpg
>> [3] 
>> https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-11-08/2021-10-30-raspios-bullseye-armhf-lite.zip
>>
>> Kind regards,
>> Ed
>>
>>
>> ><SNIP><



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

Message: 3
Date: Mon, 15 Nov 2021 16:59:41 +0200
From: tosiara <tosi...@gmail.com>
To: Ed Kapitein <e...@kapitein.org>
Cc: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] raspberry pi libcamera motion bulseye
Message-ID:
        <cachtdwtuqhtfyxcgyybwyh6hsdd4iyrfuful39lkko5i322...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

> Before the upgrade to bullseye i also used 640x480 and got the whole FOV.

Unfortunately, there is nothing motion can do if this is the FOV that
camera provides over V4L2 interface (since MPlayer shows the same)

You could ask Raspberry community, maybe someone came across this
issue and has a fix

On Mon, Nov 15, 2021 at 3:58 PM Ed Kapitein <e...@kapitein.org> wrote:
>
> Yes, mplayer plays it just fine:
>
> Movie-Aspect is undefined - no prescaling applied.
> VO: [xv] 640x480 => 640x480 Planar YV12
>
> and is has the same FOV as the motion picture. [1]
>
> Before the upgrade to bullseye i also used 640x480 and got the whole FOV.
>
> [3] is a video clips made with the old setup.
>
> More info on FOV and binning (which i think is happening) is on [1]
>
>
> Kind regards,
>
> Ed
>
> [1] http://www.kapitein.org/pictures/motion.jpg
>
> [2] https://picamera.readthedocs.io/en/release-1.12/fov.html
>
> [3] http://www.kapitein.org/pictures/04-20211028034157.mp4
>
>
> PS
>
> Motion gives me a signal when the mouse is caught, so we can release it
> into the wild.
>
> No animals where harmed during the recording of this clip ;-)
>
>
> On 11/15/21 1:52 PM, tosiara wrote:
> > Are you able to play 640x480 mode in ffplay or vlc? Does it give you
> > the same FOV as motion or different?
> >
> > Which resolution did you use in motion prior to upgrade to bullseye?
> >
> > On Mon, Nov 15, 2021 at 2:42 PM Ed Kapitein <e...@kapitein.org> wrote:
> >> Hi Tosiara,
> >>
> >> The motion log file is attached as requested.
> >> The only way i can get motion to work is to use 640x480 as the 
> >> width/height.
> >> [1] is a picture, taken with libcamera-still, that shows the complete FOV
> >> [2] is a picture from motion, which only has a small FOV.
> >>
> >> Do you have a raspberry pi (3B+) with a V2 camera module? (2B should be 
> >> good too)
> >> If you do, you could download the official raspberry pi OS from [3] and 
> >> use a fresh SD card to try the new libcamera setup with motion.
> >>
> >> [1] http://www.kapitein.org/pictures/libcamera-still.jpg
> >> [2] http://www.kapitein.org/pictures/motion.jpg
> >> [3] 
> >> https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-11-08/2021-10-30-raspios-bullseye-armhf-lite.zip
> >>
> >> Kind regards,
> >> Ed
> >>
> >>
> >> ><SNIP><



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

Message: 4
Date: Mon, 15 Nov 2021 17:39:51 +0200
From: tosiara <tosi...@gmail.com>
To: Ed Kapitein <e...@kapitein.org>
Cc: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] raspberry pi libcamera motion bulseye
Message-ID:
        <cachtdwrgqj8smuq8zlzhdoekbyi4gorts8ccy_ahoyfr9kv...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

Also, you can check which formats are available:

v4l2-ctl --list-formats-ex -d /dev/video0

Maybe there are other resolutions that would get wider picture from the sensor


On Mon, Nov 15, 2021 at 4:59 PM tosiara <tosi...@gmail.com> wrote:
>
> > Before the upgrade to bullseye i also used 640x480 and got the whole FOV.
>
> Unfortunately, there is nothing motion can do if this is the FOV that
> camera provides over V4L2 interface (since MPlayer shows the same)
>
> You could ask Raspberry community, maybe someone came across this
> issue and has a fix
>
> On Mon, Nov 15, 2021 at 3:58 PM Ed Kapitein <e...@kapitein.org> wrote:
> >
> > Yes, mplayer plays it just fine:
> >
> > Movie-Aspect is undefined - no prescaling applied.
> > VO: [xv] 640x480 => 640x480 Planar YV12
> >
> > and is has the same FOV as the motion picture. [1]
> >
> > Before the upgrade to bullseye i also used 640x480 and got the whole FOV.
> >
> > [3] is a video clips made with the old setup.
> >
> > More info on FOV and binning (which i think is happening) is on [1]
> >
> >
> > Kind regards,
> >
> > Ed
> >
> > [1] http://www.kapitein.org/pictures/motion.jpg
> >
> > [2] https://picamera.readthedocs.io/en/release-1.12/fov.html
> >
> > [3] http://www.kapitein.org/pictures/04-20211028034157.mp4
> >
> >
> > PS
> >
> > Motion gives me a signal when the mouse is caught, so we can release it
> > into the wild.
> >
> > No animals where harmed during the recording of this clip ;-)
> >
> >
> > On 11/15/21 1:52 PM, tosiara wrote:
> > > Are you able to play 640x480 mode in ffplay or vlc? Does it give you
> > > the same FOV as motion or different?
> > >
> > > Which resolution did you use in motion prior to upgrade to bullseye?
> > >
> > > On Mon, Nov 15, 2021 at 2:42 PM Ed Kapitein <e...@kapitein.org> wrote:
> > >> Hi Tosiara,
> > >>
> > >> The motion log file is attached as requested.
> > >> The only way i can get motion to work is to use 640x480 as the 
> > >> width/height.
> > >> [1] is a picture, taken with libcamera-still, that shows the complete FOV
> > >> [2] is a picture from motion, which only has a small FOV.
> > >>
> > >> Do you have a raspberry pi (3B+) with a V2 camera module? (2B should be 
> > >> good too)
> > >> If you do, you could download the official raspberry pi OS from [3] and 
> > >> use a fresh SD card to try the new libcamera setup with motion.
> > >>
> > >> [1] http://www.kapitein.org/pictures/libcamera-still.jpg
> > >> [2] http://www.kapitein.org/pictures/motion.jpg
> > >> [3] 
> > >> https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-11-08/2021-10-30-raspios-bullseye-armhf-lite.zip
> > >>
> > >> Kind regards,
> > >> Ed
> > >>
> > >>
> > >> ><SNIP><



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



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

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 185, Issue 13
********************************************

Reply via email to