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. Motion on macOS (Mac mini 2023) (Dougie Nisbet) 2. Re: Motion on macOS (Mac mini 2023) (MrDave) ---------------------------------------------------------------------- Message: 1 Date: Sun, 26 Mar 2023 14:00:07 +0100 From: Dougie Nisbet <dou...@katsura.uk> To: Motion discussion list <motion-user@lists.sourceforge.net> Subject: [Motion-user] Motion on macOS (Mac mini 2023) Message-ID: <af8dfc12-8a40-47c5-bdc6-d511df658...@katsura.uk> Content-Type: text/plain; charset="utf-8" I?m trying to get motion running on a Mac and I think I?m close. Downloaded and installed according to the documentation and looks ok: Hardware is a Mac mini 2023 running Ventura 13.2.1 Motion is: dill:~ dougie$ motion -h motion Version 4.5.1+git20230125-ab0a463, Copyright 2000-2021 Jeroen Vreeken/Folkert van Heusden/Kenneth Lavrsen/Motion-Project maintainers I?ve tried to mimic the installs I have on my raspberry pi?s as much as possible although of course the hardware is quite different. I?m using a simple Logitech USB camera which I can get working with FaceTime. System Information reports: HD Webcam C615: Model ID: UVC Camera VendorID_1133 ProductID_2092 Unique ID: 0x2400000046d082c I think my problem is I?ve no idea what device to specify in the config file. Normally for the rpis, module or USB, it?s /dev/video0. What should I put for the Mac? Thanks for any pointers. Extract from log file: [0:] [NTC] [ALL] [Mar 25 20:29:40] main: Motion thread 1 restart [0:] [NTC] [ALL] [Mar 25 20:29:40] motion_start_thread: Camera ID: 0 is from /Users/dougie/.motion/motion.conf [0:] [NTC] [ALL] [Mar 25 20:29:40] motion_start_thread: Camera ID: 0 Camera Name: office Device: /dev/video0 [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:40] motion_init: Camera 0 started: motion detection Enabled [1:ml1:office] [ERR] [ALL] [Mar 25 20:29:40] init_camera_type: Unable to determine camera type (MMAL, Netcam, V4L2, BKTR) [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:40] motion_loop: Thread exiting [0:] [NTC] [ALL] [Mar 25 20:29:41] main: Motion thread 1 restart [0:] [NTC] [ALL] [Mar 25 20:29:41] motion_start_thread: Camera ID: 0 is from /Users/dougie/.motion/motion.conf [0:] [NTC] [ALL] [Mar 25 20:29:41] motion_start_thread: Camera ID: 0 Camera Name : office Device: /dev/video0 [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:41] motion_init: Camera 0 started: motion detection Enabled [1:ml1:office] [ERR] [ALL] [Mar 25 20:29:41] init_camera_type: Unable to determine camera type (MMAL, Netcam, V4L2, BKTR) [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:41] motion_loop: Thread exiting [0:] [NTC] [ALL] [Mar 25 20:29:42] main: Motion thread 1 restart [0:] [NTC] [ALL] [Mar 25 20:29:42] motion_start_thread: Camera ID: 0 is from /Users/dougie/.motion/motion.conf [0:] [NTC] [ALL] [Mar 25 20:29:42] motion_start_thread: Camera ID: 0 Camera Name: office Device: /dev/video0 [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:42] motion_init: Camera 0 started: motion detection Enabled [1:ml1:office] [ERR] [ALL] [Mar 25 20:29:42] init_camera_type: Unable to determine camera type (MMAL, Netcam, V4L2, BKTR) [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:42] motion_loop: Thread exiting [0:] [NTC] [ALL] [Mar 25 20:29:43] sig_handler: Received signal 2. [0:] [NTC] [ALL] [Mar 25 20:29:43] main: Threads finished [0:] [NTC] [ALL] [Mar 25 20:29:43] main: Motion terminating [0:] [NTC] [ALL] [Mar 25 20:29:43] motion_remove_pid: Removed process id file (pid file). [0:] [NTC] [ALL] [Mar 25 20:29:43] motion_remove_pid: Closing logfile (/Users/dougie/log/motion.log). -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Sun, 26 Mar 2023 10:05:00 -0600 From: MrDave <motionmrd...@gmail.com> To: motion-user@lists.sourceforge.net Subject: Re: [Motion-user] Motion on macOS (Mac mini 2023) Message-ID: <44ce5e7b-3b67-b1e9-0deb-7900a09cb...@gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" Well, the following shouldn't surprise you......Apple does its own thing.. To my knowledge, Apple was based upon BSD and that distro did not historically support v4l2.? Instead I seem to recall that Apple created its own proprietary variant called AVFoundation for webcams.? That "framework" isn't v4l2 so it won't be supported by a /dev/video device. I do recall that it was somehow put into ffmpeg so in theory, you could re-write Motion to read it in like what Motion does with the v4l2 device via the netcam_url option...Or try to write an ffmpeg script that reads the AVFoundation device and then streams it to a local port and then set up Motion to use the local address as the netcam_url Bottom line is that it isn't straight forward or even generally possible for webcams.? Only netcams are supported on Mac's.. On 3/26/2023 7:00 AM, Dougie Nisbet wrote: > I?m trying to get motion running on a Mac and I think I?m close. > Downloaded and installed according to the documentation and looks ok: > > Hardware is a Mac mini 2023 running Ventura 13.2.1 > > Motion is: > > dill:~ dougie$ motion -h > > motion Version 4.5.1+git20230125-ab0a463, Copyright 2000-2021 Jeroen > Vreeken/Folkert van Heusden/Kenneth Lavrsen/Motion-Project maintainers > > > I?ve tried to mimic the installs I have on my raspberry pi?s as much > as possible although of course the hardware is quite different. I?m > using a simple Logitech USB camera which I can get working with > FaceTime. System Information reports: > > > *HD Webcam C615:* > > > ? Model ID:UVC Camera VendorID_1133 ProductID_2092 > > ? Unique ID:0x2400000046d082c > > > I think my problem is I?ve no idea what device to specify in the > config file. Normally for the rpis, module or USB, it?s /dev/video0. > What should I put for the Mac? Thanks for any pointers. > > Extract from log file: > > [0:] [NTC] [ALL] [Mar 25 20:29:40] main: Motion thread 1 restart > > [0:] [NTC] [ALL] [Mar 25 20:29:40] motion_start_thread: Camera ID: 0 > is from /Users/dougie/.motion/motion.conf > > [0:] [NTC] [ALL] [Mar 25 20:29:40] motion_start_thread: Camera ID: 0 > Camera Name: office Device: /dev/video0 > > [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:40] motion_init: Camera 0 > started: motion detection Enabled > > [1:ml1:office] [ERR] [ALL] [Mar 25 20:29:40] init_camera_type: Unable > to determine camera type (MMAL, Netcam, V4L2, BKTR) > > [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:40] motion_loop: Thread exiting > > [0:] [NTC] [ALL] [Mar 25 20:29:41] main: Motion thread 1 restart > > [0:] [NTC] [ALL] [Mar 25 20:29:41] motion_start_thread: Camera ID: 0 > is from /Users/dougie/.motion/motion.conf > > [0:] [NTC] [ALL] [Mar 25 20:29:41] motion_start_thread: Camera ID: 0 > Camera Name > > : office Device: /dev/video0 > > [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:41] motion_init: Camera 0 > started: motion detection Enabled > > [1:ml1:office] [ERR] [ALL] [Mar 25 20:29:41] init_camera_type: Unable > to determine camera type (MMAL, Netcam, V4L2, BKTR) > > [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:41] motion_loop: Thread exiting > > [0:] [NTC] [ALL] [Mar 25 20:29:42] main: Motion thread 1 restart > > [0:] [NTC] [ALL] [Mar 25 20:29:42] motion_start_thread: Camera ID: 0 > is from /Users/dougie/.motion/motion.conf > > [0:] [NTC] [ALL] [Mar 25 20:29:42] motion_start_thread: Camera ID: 0 > Camera Name: office Device: /dev/video0 > > [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:42] motion_init: Camera 0 > started: motion detection Enabled > > [1:ml1:office] [ERR] [ALL] [Mar 25 20:29:42] init_camera_type: Unable > to determine camera type (MMAL, Netcam, V4L2, BKTR) > > [1:ml1:office] [NTC] [ALL] [Mar 25 20:29:42] motion_loop: Thread exiting > > [0:] [NTC] [ALL] [Mar 25 20:29:43] sig_handler: Received signal 2. > > [0:] [NTC] [ALL] [Mar 25 20:29:43] main: Threads finished > > [0:] [NTC] [ALL] [Mar 25 20:29:43] main: Motion terminating > > [0:] [NTC] [ALL] [Mar 25 20:29:43] motion_remove_pid: Removed process > id file (pid file). > > [0:] [NTC] [ALL] [Mar 25 20:29:43] motion_remove_pid: Closing logfile > (/Users/dougie/log/motion.log). > > > > > > _______________________________________________ > 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 199, Issue 12 ********************************************