[ANSWERED: NO] Is there a decent Motion detection possible with Linux and a webcam ?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

[ANSWERED: NO] Is there a decent Motion detection possible with Linux and a webcam ?

Post by Menard »

Application in the Mint repositories

Code: Select all

motion --help
motion: invalid option -- '-'
motion Version 4.2.2, Copyright 2000-2019 Jeroen Vreeken/Folkert van Heusden/Kenneth Lavrsen/Motion-Project maintainers

Home page :	 https://motion-project.github.io/ 

usage:	motion [options]


Possible options:

-b			Run in background (daemon) mode.
-n			Run in non-daemon mode.
-s			Run in setup mode.
-c config		Full path and filename of config file.
-d level		Log level (1-9) (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL). default: 6 / NTC.
-k type			Type of log (COR, STR, ENC, NET, DBL, EVT, TRK, VID, ALL). default: ALL.
-p process_id_file	Full path and filename of process id file (pid file).
-l log file 		Full path and filename of log file.
-m			Disable motion detection at startup.
-h			Show this screen.

Motion is configured using a config file only. If none is supplied,
it will read motion.conf from current directory, ~/.motion or /etc/motion.
They are kind but they forget to tell how to stop it, how to really shut it down :(
(because when you are here you can trigger a big number of videos of you moving... and it is also a security threat because you must start this application with sudo and let open, and if internet is connected ... possible problem )
Last edited by LockBot on Fri Jul 28, 2023 10:00 pm, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Is there a decent Motion detection possible with Linux and a webcam ?

Post by Menard »

In addition, another problem is that when I edit the config file to place the folder on another partition (NTFS) it doesn't work, as when it is anywhere on home partition it works, what's this problem ?
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
nooblinx
Level 2
Level 2
Posts: 67
Joined: Sat Jul 03, 2021 4:13 am

Re: Is there a decent Motion detection possible with Linux and a webcam ?

Post by nooblinx »

just kill process:

Code: Select all

sudo killall -9 /usr/bin/motion
still noob in linux :~$ echo "my english is not good"
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Is there a decent Motion detection possible with Linux and a webcam ?

Post by Menard »

nooblinx wrote: Sun Feb 05, 2023 11:25 am just kill process:

Code: Select all

sudo killall -9 /usr/bin/motion
If there was a process, I could kill it in the gnome-system-monitor but I ve tried by ending the service but when killed it carries on to capture ... and the light stays on on the webcam
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
nooblinx
Level 2
Level 2
Posts: 67
Joined: Sat Jul 03, 2021 4:13 am

Re: Is there a decent Motion detection possible with Linux and a webcam ?

Post by nooblinx »

Menard wrote: Sun Feb 05, 2023 12:00 pm
nooblinx wrote: Sun Feb 05, 2023 11:25 am just kill process:

Code: Select all

sudo killall -9 /usr/bin/motion
If there was a process, I could kill it in the gnome-system-monitor but I ve tried by ending the service but when killed it carries on to capture ... and the light stays on on the webcam
I disabled startup service and manually start/end process myself:

sudo systemctl disable motion

startmotion.sh

Code: Select all

#!/bin/bash
sudo /usr/bin/motion  $@
and
stopmotion.sh

Code: Select all

#!/bin/bash
sudo killall -9 /usr/bin/motion
[/quote]
still noob in linux :~$ echo "my english is not good"
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: Is there a decent Motion detection possible with Linux and a webcam ?

Post by Menard »

OK, so there is no decent Motion detection on linux ... :( thanks
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: [ANSWERED : NO]Is there a decent Motion detection possible with Linux and a webcam ?

Post by Menard »

We have not to make the job of the people who build applications
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
User avatar
Bleys
Level 4
Level 4
Posts: 426
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: [ANSWERED : NO]Is there a decent Motion detection possible with Linux and a webcam ?

Post by Bleys »

Just read the documentation on motion: https://motion-project.github.io/motion ... up_service
motion can be started and stopped normally as a program.

In motion.conf:

Code: Select all

# Start in daemon (background) mode and release terminal
daemon off
According to your explanation motion is running as a service. Then of course you can't just stop motion. For that you use systemctl:
Start the Motion service:

Code: Select all

sudo systemctl start motion
Stop the Motion service:

Code: Select all

sudo systemctl stop motion
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: [ANSWERED : NO]Is there a decent Motion detection possible with Linux and a webcam ?

Post by Menard »

Bleys wrote: Fri Feb 10, 2023 5:46 am In motion.conf:

Code: Select all

# Start in daemon (background) mode and release terminal
daemon off
According to your explanation motion is running as a service. Then of course you can't just stop motion. For that you use systemctl:
Start the Motion service:

Code: Select all

sudo systemctl start motion
Stop the Motion service:

Code: Select all

sudo systemctl stop motion
That's what I had done when I wrote "I ve tried by ending the service but when killed, it carries on to capture" but wait ... I ve just tried it another time and that seems to work ... I suppose this, the other time I had close the motion's terminal before to kill this service by systemctl, it can be an explanation
But anyway we are told here, not to use sudo .. and here I ll had to use sudo to start motion and to shut down motion, so 4 times a day :?
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
Menard
Level 7
Level 7
Posts: 1729
Joined: Wed May 08, 2019 5:14 am
Location: Angers (France)

Re: [ANSWERED : NO]Is there a decent Motion detection possible with Linux and a webcam ?

Post by Menard »

Today,

Code: Select all

sudo systemctl stop motion
doesn't work anymore ... :?
My conclusion still will be : nothing works on Linux
Linux Mint 20.3 Cinnamon - K 5.15 - Desktop - english
AMD APU A8 7600 - DDR3 1833 MHz 8 GB x2 Dual Channel
--

If you think tough men are dangerous, wait until you see what weak men are capable of.
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: [ANSWERED : NO]Is there a decent Motion detection possible with Linux and a webcam ?

Post by Cosmo. »

Menard wrote: Fri Mar 10, 2023 5:50 pm nothing works on Linux
Amen
Locked

Return to “Software & Applications”