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: v4l2 loopdevice /dev/video0 not work. (Thomas Drebert)
----------------------------------------------------------------------
Message: 1
Date: Thu, 4 Jul 2019 18:14:15 +0200
From: Thomas Drebert <[email protected]>
To: Motion discussion list <[email protected]>
Subject: Re: [Motion-user] v4l2 loopdevice /dev/video0 not work.
Message-ID:
<CANn+32h3jzBMokRUZVM=mlhzw4ks0sw_soykb17x_y8m+oz...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Hello,
I have now found a solution, I think that it is, the size 80 x 60
pixels, because the modulo 8 does not fit, Now use another loop
adapter and enlarge the resolution to 320 x 240 so it works.
regards
Am Do., 4. Juli 2019 um 09:21 Uhr schrieb tosiara <[email protected]>:
>
> Could you show your config?
>
> On Wed, Jul 3, 2019 at 1:27 AM Thomas Drebert <[email protected]> wrote:
> >
> > Hello,
> > Motion Version is "pi_stretch_motion_4.2.2-1_armhf"
> > I try to use a FLIR Lepton module, this module provides device
> > /dev/video0 via the v4l2loopadapter.
> > This is the v4l2-ctl output:
> > Driver Info (not using libv4l2):
> > Driver name : v4l2 loopback
> > Card type : Dummy video device (0x0000)
> > Bus info : platform:v4l2loopback-000
> > Driver version: 4.14.30
> > Capabilities : 0x85208003
> > Video Capture
> > Video Output
> > Video Memory-to-Memory
> > Read/Write
> > Streaming
> > Extended Pix Format
> > Device Capabilities
> > Device Caps : 0x85208003
> > Video Capture
> > Video Output
> > Video Memory-to-Memory
> > Read/Write
> > Streaming
> > Extended Pix Format
> > Device Capabilities
> > Priority: 0
> > Video input : 0 (loopback: ok)
> > Video output: 0 (loopback in)
> > Format Video Output:
> > Width/Height : 80/60
> > Pixel Format : 'RGB3'
> > Field : None
> > Bytes per Line : 240
> > Size Image : 14400
> > Colorspace : sRGB
> > Transfer Function : Default
> > YCbCr/HSV Encoding: Default
> > Quantization : Default
> > Flags :
> > Streaming Parameters Video Capture:
> > Frames per second: 30.000 (30/1)
> > Read buffers : 8
> > Streaming Parameters Video Output:
> > Frames per second: 30.000 (30/1)
> > Write buffers : 8
> >
> > And this the Motion output:
> > [0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file
> > /etc/motion/motion.conf
> > [0:motion] [NTC] [ALL] motion_startup: Logging to syslog
> > [0:motion] [NTC] [ALL] motion_startup: Motion 4.2.2 Started
> > [0:motion] [NTC] [ALL] motion_startup: Using default log type (ALL)
> > [0:motion] [NTC] [ALL] motion_startup: Using log type (ALL) log level (NTC)
> > [0:motion] [NTC] [STR] webu_start_strm: Starting all camera streams on port
> > 8081
> > [0:motion] [NTC] [STR] webu_strm_ntc: Started camera 0 stream on port 8081
> > [0:motion] [NTC] [STR] webu_start_ctrl: Starting webcontrol on port 8080
> > [0:motion] [NTC] [STR] webu_start_ctrl: Started webcontrol on port 8080
> > [0:motion] [NTC] [ENC] ffmpeg_global_init: ffmpeg libavcodec version
> > 57.64.101 libavformat version 57.56.101
> > [0:motion] [NTC] [ALL] translate_init: Sprache: Deutsch
> > [0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 is from
> > /etc/motion/motion.conf
> > [0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 Camera Name:
> > (null) Device: /dev/video0
> > [0:motion] [NTC] [ALL] main: Waiting for threads to finish, pid: 7487
> > [1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection Enabled
> > [1:ml1] [CRT] [NET] motion_init: Image height (60) requested is not modulo
> > 8.
> > [1:ml1] [CRT] [NET] motion_init: Adjusting height to next higher
> > multiple of 8 (64).
> > [1:ml1] [NTC] [VID] vid_start: Opening V4L2 device
> > [1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and
> > input -1
> > [1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE
> > [1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_OUTPUT
> > [1:ml1] [NTC] [VID] v4l2_device_capability: - READWRITE
> > [1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING
> > [1:ml1] [NTC] [VID] v4l2_input_select: Name = "loopback"- CAMERA
> > [1:ml1] [NTC] [VID] v4l2_norm_select: Device does not support
> > specifying PAL/NTSC norm
> > [1:ml1] [NTC] [VID] v4l2_pixfmt_set: Testing palette RGB3 (80x64)
> > [1:ml1] [WRN] [VID] v4l2_pixfmt_set: Adjusting resolution from 80x64 to
> > 80x60.
> > [1:ml1] [ERR] [VID] v4l2_pixfmt_set: Adjusted resolution not modulo 8.
> > [1:ml1] [ERR] [VID] v4l2_pixfmt_set: Specify different palette or
> > width/height in config file.
> > [1:ml1] [NTC] [VID] v4l2_pixfmt_select: Configuration palette index 10
> > (RGB3) for 80x64 doesn't work.
> > [1:ml1] [NTC] [VID] v4l2_pixfmt_select: Supported palettes:
> > [1:ml1] [NTC] [VID] v4l2_pixfmt_select: (0) RGB3 (24-bit RGB 8-8-8)
> > [1:ml1] [NTC] [VID] v4l2_pixfmt_set: Testing palette RGB3 (80x64)
> > [1:ml1] [WRN] [VID] v4l2_pixfmt_set: Adjusting resolution from 80x64 to
> > 80x60.
> > [1:ml1] [ERR] [VID] v4l2_pixfmt_set: Adjusted resolution not modulo 8.
> > [1:ml1] [ERR] [VID] v4l2_pixfmt_set: Specify different palette or
> > width/height in config file.
> > [1:ml1] [ERR] [VID] v4l2_pixfmt_select: Palette selection failed for format
> > RGB3
> > [1:ml1] [ERR] [VID] v4l2_pixfmt_select: Unable to find a compatible
> > palette format.
> > [1:ml1] [ERR] [VID] vid_start: V4L2 device failed to open
> > [1:ml1] [WRN] [ALL] motion_init: Could not fetch initial image from camera
> > [1:ml1] [WRN] [ALL] motion_init: Motion continues using width and
> > height from config file(s)
> > [1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1
> > items
> > [1:ml1] [WRN] [ALL] init_text_scale: Invalid text scale. Adjusted to 1
> > [1:ml1] [WRN] [ALL] Above message repeats 4 times
> > [1:ml1] [WRN] [ALL] mlp_retry: Retrying until successful connection with
> > camera
> > [1:ml1] [NTC] [VID] vid_start: Opening V4L2 device
> > [1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and
> > input -1
> > [1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE
> > [1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_OUTPUT
> > [1:ml1] [NTC] [VID] v4l2_device_capability: - READWRITE
> > [1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING
> > [1:ml1] [NTC] [VID] v4l2_input_select: Name = "loopback"- CAMERA
> > [1:ml1] [NTC] [VID] v4l2_norm_select: Device does not support
> > specifying PAL/NTSC norm
> > [1:ml1] [NTC] [VID] v4l2_pixfmt_set: Testing palette RGB3 (80x64)
> > [1:ml1] [WRN] [VID] v4l2_pixfmt_set: Adjusting resolution from 80x64 to
> > 80x60.
> > [1:ml1] [ERR] [VID] v4l2_pixfmt_set: Adjusted resolution not modulo 8.
> > [1:ml1] [ERR] [VID] v4l2_pixfmt_set: Specify different palette or
> > width/height in config file.
> > [1:ml1] [NTC] [VID] v4l2_pixfmt_select: Configuration palette index 10
> > (RGB3) for 80x64 doesn't work
> >
> > A test with ffmpeg shows that /dev/video0 works:
> >
> >
> > Is there a way to make it running?
> >
> > regards
> > ThomasD
> >
> >
> > _______________________________________________
> > Motion-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/motion-user
> > https://motion-project.github.io/
> >
> > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
------------------------------
------------------------------
Subject: Digest Footer
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
------------------------------
End of Motion-user Digest, Vol 157, Issue 3
*******************************************