LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2022, 06:27 AM   #1
ShadowDonkey
LQ Newbie
 
Registered: Jan 2022
Posts: 6

Rep: Reputation: 1
Resolution issues with motion although supported


Hi !

I'm trying to set up motion detection with motion, but I do not understand why its stuck in 800x600 video mode. Can anyone look at these logs and may be give me a hint on how to reach 1920x1080 (which the camera can do).

Here is from motion.log:
Quote:
[1:ml1] [NTC] [ALL] [Jan 15 12:49:57] motion_init: Camera 0 started: motion detection Enabled
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_device_capability: - VIDEO_CAPTURE
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_device_capability: - STREAMING
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_input_select: Name = "Camera 1"- CAMERA
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_norm_select: Device does not support specifying PAL/NTSC norm
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: Configuration palette index 17 (YU12) for 1920x1080 doesn't work.
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: Supported palettes:
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: (0) MJPG (Motion-JPEG)
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: (1) YUYV (YUYV 4:2:2)
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_set: Testing palette YUYV (1920x1080)
[1:ml1] [WRN] [VID] [Jan 15 12:49:57] v4l2_pixfmt_set: Adjusting resolution from 1920x1080 to 800x600.
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_set: Using palette YUYV (800x600)
[1:ml1] [NTC] [VID] [Jan 15 12:49:57] v4l2_pixfmt_select: Selected palette YUYV
Here are all the supported formats for the camera:
Quote:
v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

[0]: 'MJPG' (Motion-JPEG, compressed)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
[1]: 'YUYV' (YUYV 4:2:2)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.067s (15.000 fps)
I assume I need to change it to motion JPEG someshow?
I found something in motion's manual, but I was really confused how change the settings:
https://motion-project.github.io/mot...l#video_params

If video_params is the solution, where is this used? I tried passing it with sudo motion video_params palette=8, but that didn't work.
I tried adding it to the config file, but it didn't work either.

If anyone knows what the solution is or could point me in the right direction it would be much appreciated.
 
Old 01-16-2022, 05:21 AM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Try:
Code:
video_params v4l2_palette=8
I imagine this would be placed in a config file, I used some sophisticated WW1 code cracking techniques to figure that out:
Quote:
While it always recommended that users remove older configuration options and only use the new options, if users have within the configuration file any of the deprecated options list above, Motion will continue to read those values and upgrade them into the new video_params option.
EDIT: My technique = Read. Not too many folks in WW1 could actually read a write properly

Last edited by Brains; 01-16-2022 at 05:26 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Cities In Motion & Cities In Motion 2 Released For Linux On Steam LXer Syndicated Linux News 0 01-09-2014 08:32 PM
Motion help please (Motion only supports mmap) ?? RaeMarvin Linux - Software 4 09-06-2012 12:25 PM
Why and What is the best" Motion" or "ZoneMinder" for motion detection? MODYSAMA Linux - Newbie 3 07-06-2011 07:16 PM
My screen resolution is too high (although totally supported) edbarx Linux - Desktop 7 10-11-2010 10:29 AM
Error with "SDL_MouseMotionEvent *motion = event->motion;" aatwell Programming 3 11-30-2007 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration