Motioneye and Libcamera #2429

Open
opened 2026-02-28 01:11:48 -05:00 by deekerman · 46 comments
Owner

Originally created by @Schnitzer50 on GitHub (Aug 22, 2023).

Hello Motioneyeteam!
How long will it be before Motioneye also supports the new camera drivers for RPi?
Sonnige Grüße aus Ulm, Germany

Originally created by @Schnitzer50 on GitHub (Aug 22, 2023). Hello Motioneyeteam! How long will it be before Motioneye also supports the new camera drivers for RPi? Sonnige Grüße aus Ulm, Germany
Author
Owner

@zagrim commented on GitHub (Aug 23, 2023):

Libcamera support is still "under construction", and that applies to the yet unreleased ME 0.43 with Python3 support. The topic has been discussed here: #2425 (and here: #2683).

As far as I've understood things correctly, there are some workarounds mentioned in #2683, but no complete solution yet. There is a PR (https://github.com/motioneye-project/motioneye/pull/2765) linked to the other issue and it is waiting for testing, with some instructions on how that could be done (but I admit they might not be good instructions in case one is not that tech-savvy).

@zagrim commented on GitHub (Aug 23, 2023): Libcamera support is still "under construction", and that applies to the yet unreleased ME 0.43 with Python3 support. The topic has been discussed here: #2425 (and here: #2683). As far as I've understood things correctly, there are some workarounds mentioned in #2683, but no complete solution yet. There is a PR (https://github.com/motioneye-project/motioneye/pull/2765) linked to the other issue and it is waiting for testing, with some instructions on how that could be done (but I admit they might not be good instructions in case one is not that tech-savvy).
Author
Owner

@pingufreak commented on GitHub (Nov 18, 2023):

Hello Bello 🐶,

working with Debian Bookworm with current patchlevel:

apt update 
apt upgrade -y
python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'
apt install -y libcamera-v4l2
sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service
systemctl daemon-reload
systemctl enable motioneye --now

In motionEye add the first camera.

Example:
Local V4L2 Camera
/base/soc/.../.../ov5647...

Please update the wiki, I can't do a pull-request on it 🙈 🙉 🙊:

Install on Debian 12 (Bookworm)

Greetings from Trier (Germany)

7 Edits 😀

Have a nice day!

pingufreak

@pingufreak commented on GitHub (Nov 18, 2023): Hello Bello :dog:, working with Debian Bookworm with current patchlevel: ``` apt update apt upgrade -y python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' apt install -y libcamera-v4l2 sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service systemctl daemon-reload systemctl enable motioneye --now ``` In motionEye add the first camera. Example: Local V4L2 Camera /base/soc/.../.../ov5647... Please update the wiki, I can't do a pull-request on it 🙈 🙉 🙊: [Install on Debian 12 (Bookworm)](https://github.com/motioneye-project/motioneye/wiki/Install-on-Debian-12-(Bookworm)) Greetings from Trier (Germany) 7 Edits 😀 Have a nice day! pingufreak
Author
Owner

@Martypose commented on GitHub (Nov 23, 2023):

@pingufreak
im gonna try your solution for bookworm in a pi4 8gb with a rpi cam ov5647
hope it works cause im losing my mind with motioneye haha

@Martypose commented on GitHub (Nov 23, 2023): @pingufreak im gonna try your solution for bookworm in a pi4 8gb with a rpi cam ov5647 hope it works cause im losing my mind with motioneye haha
Author
Owner

@Juanderer98 commented on GitHub (Nov 27, 2023):

@pingufreak,
Thank you for your suggestions... I (and others) have been struggling with this issue. I tried your suggestion on a fresh install of 64bit raspian bookworm on a RPi 4b 4Gb model. after trying to execute the third line I get:
...
**error: externally-managed-environment

This environment is externally managed**
...
I assume that this is a new "feature" of Debian Bookworm, that I haven't figured out yet. Is there a way to get motioneye to install directly, or a simple way to set up a venv?

Thank you for any suggestions...

@Juanderer98 commented on GitHub (Nov 27, 2023): @pingufreak, Thank you for your suggestions... I (and others) have been struggling with this issue. I tried your suggestion on a fresh install of 64bit raspian bookworm on a RPi 4b 4Gb model. after trying to execute the third line I get: ... **error: externally-managed-environment This environment is externally managed** ... I assume that this is a new "feature" of Debian Bookworm, that I haven't figured out yet. Is there a way to get motioneye to install directly, or a simple way to set up a venv? Thank you for any suggestions...
Author
Owner

@Juanderer98 commented on GitHub (Nov 27, 2023):

@pingufreak
I tried entering the third line:
python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' --break-system-packages
in hopes of getting around the venv issue. It seemed to be working, but then got the following error. I'm not sure what next to try...

...
Collecting pycurl
Downloading pycurl-7.45.2.tar.gz (234 kB)
------------------------------------- 234.2/234.2 kB 491.7 kB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

python setup.py egg_info did not run successfully.
exit code: 1

[26 lines of output]
Traceback (most recent call last):
File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 229, in configure_unix
p = subprocess.Popen((self.curl_config(), '--version'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1024, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'curl-config'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 970, in
ext = get_extension(sys.argv, split_extension_source=split_extension_source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 634, in get_extension
ext_config = ExtensionConfiguration(argv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 93, in init
self.configure()
File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 234, in configure_unix
raise ConfigurationError(msg)
ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
root@raspberrypi:/home/pi#

@Juanderer98 commented on GitHub (Nov 27, 2023): @pingufreak I tried entering the third line: python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' --break-system-packages in hopes of getting around the venv issue. It seemed to be working, but then got the following error. I'm not sure what next to try... ... Collecting pycurl Downloading pycurl-7.45.2.tar.gz (234 kB) ------------------------------------- 234.2/234.2 kB 491.7 kB/s eta 0:00:00 Preparing metadata (setup.py) ... error error: subprocess-exited-with-error python setup.py egg_info did not run successfully. exit code: 1 [26 lines of output] Traceback (most recent call last): File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 229, in configure_unix p = subprocess.Popen((self.curl_config(), '--version'), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'curl-config' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 34, in <module> File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 970, in <module> ext = get_extension(sys.argv, split_extension_source=split_extension_source) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 634, in get_extension ext_config = ExtensionConfiguration(argv) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 93, in __init__ self.configure() File "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", line 234, in configure_unix raise ConfigurationError(msg) ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory: 'curl-config' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed Encountered error while generating package metadata. See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. root@raspberrypi:/home/pi#
Author
Owner

@zagrim commented on GitHub (Nov 27, 2023):

@Juanderer98 you seem to be missing curl-config, which should be available in libcurl4-openssl-dev package which you need to install. And given that there are a couple of other additional packages for 64-bit RPis in the dev branch installation instructions (see step 1 here) you might need to install those, too.

@zagrim commented on GitHub (Nov 27, 2023): @Juanderer98 you seem to be missing `curl-config`, which should be available in `libcurl4-openssl-dev` package which you need to install. And given that there are a couple of other additional packages for 64-bit RPis in the dev branch installation instructions ([see step 1 here](https://github.com/motioneye-project/motioneye/tree/dev#installation)) you might need to install those, too.
Author
Owner

@pingufreak commented on GitHub (Nov 28, 2023):

Please read the logs / rtfm:

apt install -y curl-config

The other errors: bookworm doesn't come with python2, you really need to
install the dev version of motioneye with pip3.

On Tue, Nov 28, 2023, 4:37 AM Juanderer98 @.***> wrote:

@pingufreak https://github.com/pingufreak
I tried entering the third line:
python3 -m pip install '
https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'
--break-system-packages
in hopes of getting around the venv issue. It seemed to be working, but
then got the following error. I'm not sure what next to try...

...
Collecting pycurl
Downloading pycurl-7.45.2.tar.gz (234 kB)
------------------------------------- 234.2/234.2 kB 491.7 kB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

python setup.py egg_info did not run successfully.
exit code: 1

[26 lines of output]
Traceback (most recent call last):
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 229, in configure_unix
p = subprocess.Popen((self.curl_config(), '--version'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1024, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'curl-config'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 970, in
ext = get_extension(sys.argv,
split_extension_source=split_extension_source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 634, in get_extension
ext_config = ExtensionConfiguration(argv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 93, in init
self.configure()
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 234, in configure_unix
raise ConfigurationError(msg)
ConfigurationError: Could not run curl-config: [Errno 2] No such file or
directory: 'curl-config'
[end of output]

note: This error originates from a subprocess, and is likely not a problem
with pip.
error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
@.***:/home/pi#


Reply to this email directly, view it on GitHub
https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-1829019362,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APZW37NT6U6NHLOV5SNKJ2DYGVMA3AVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZGAYTSMZWGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

@pingufreak commented on GitHub (Nov 28, 2023): Please read the logs / rtfm: apt install -y curl-config The other errors: bookworm doesn't come with python2, you really need to install the dev version of motioneye with pip3. On Tue, Nov 28, 2023, 4:37 AM Juanderer98 ***@***.***> wrote: > @pingufreak <https://github.com/pingufreak> > I tried entering the third line: > python3 -m pip install ' > https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' > --break-system-packages > in hopes of getting around the venv issue. It seemed to be working, but > then got the following error. I'm not sure what next to try... > > ... > Collecting pycurl > Downloading pycurl-7.45.2.tar.gz (234 kB) > ------------------------------------- 234.2/234.2 kB 491.7 kB/s eta 0:00:00 > Preparing metadata (setup.py) ... error > error: subprocess-exited-with-error > > python setup.py egg_info did not run successfully. > exit code: 1 > > [26 lines of output] > Traceback (most recent call last): > File > "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", > line 229, in configure_unix > p = subprocess.Popen((self.curl_config(), '--version'), > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/lib/python3.11/subprocess.py", line 1024, in *init* > self._execute_child(args, executable, preexec_fn, close_fds, > File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child > raise child_exception_type(errno_num, err_msg, err_filename) > FileNotFoundError: [Errno 2] No such file or directory: 'curl-config' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "", line 2, in > File "", line 34, in > File > "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", > line 970, in > ext = get_extension(sys.argv, > split_extension_source=split_extension_source) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File > "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", > line 634, in get_extension > ext_config = ExtensionConfiguration(argv) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File > "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", > line 93, in *init* > self.configure() > File > "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", > line 234, in configure_unix > raise ConfigurationError(msg) > ConfigurationError: Could not run curl-config: [Errno 2] No such file or > directory: 'curl-config' > [end of output] > > note: This error originates from a subprocess, and is likely not a problem > with pip. > error: metadata-generation-failed > > Encountered error while generating package metadata. > > See above for output. > > note: This is an issue with the package mentioned above, not pip. > hint: See above for details. > ***@***.***:/home/pi# > > — > Reply to this email directly, view it on GitHub > <https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-1829019362>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/APZW37NT6U6NHLOV5SNKJ2DYGVMA3AVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZGAYTSMZWGI> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Author
Owner

@pingufreak commented on GitHub (Nov 28, 2023):

99,999999% of the time for fixing issues is reading logs / docs and
understanding in detail what's going on. If you just follow this advise,
you can get really good quite fast.

On Tue, Nov 28, 2023, 7:42 AM Ix Yps @.***> wrote:

Please read the logs / rtfm:

apt install -y curl-config

The other errors: bookworm doesn't come with python2, you really need to
install the dev version of motioneye with pip3.

On Tue, Nov 28, 2023, 4:37 AM Juanderer98 @.***>
wrote:

@pingufreak https://github.com/pingufreak
I tried entering the third line:
python3 -m pip install '
https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'
--break-system-packages
in hopes of getting around the venv issue. It seemed to be working, but
then got the following error. I'm not sure what next to try...

...
Collecting pycurl
Downloading pycurl-7.45.2.tar.gz (234 kB)
------------------------------------- 234.2/234.2 kB 491.7 kB/s eta
0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

python setup.py egg_info did not run successfully.
exit code: 1

[26 lines of output]
Traceback (most recent call last):
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 229, in configure_unix
p = subprocess.Popen((self.curl_config(), '--version'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1024, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'curl-config'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 970, in
ext = get_extension(sys.argv,
split_extension_source=split_extension_source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 634, in get_extension
ext_config = ExtensionConfiguration(argv)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 93, in init
self.configure()
File
"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",
line 234, in configure_unix
raise ConfigurationError(msg)
ConfigurationError: Could not run curl-config: [Errno 2] No such file or
directory: 'curl-config'
[end of output]

note: This error originates from a subprocess, and is likely not a
problem with pip.
error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
@.***:/home/pi#


Reply to this email directly, view it on GitHub
https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-1829019362,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APZW37NT6U6NHLOV5SNKJ2DYGVMA3AVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZGAYTSMZWGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

@pingufreak commented on GitHub (Nov 28, 2023): 99,999999% of the time for fixing issues is reading logs / docs and understanding in detail what's going on. If you just follow this advise, you can get really good quite fast. On Tue, Nov 28, 2023, 7:42 AM Ix Yps ***@***.***> wrote: > Please read the logs / rtfm: > > apt install -y curl-config > > The other errors: bookworm doesn't come with python2, you really need to > install the dev version of motioneye with pip3. > > On Tue, Nov 28, 2023, 4:37 AM Juanderer98 ***@***.***> > wrote: > >> @pingufreak <https://github.com/pingufreak> >> I tried entering the third line: >> python3 -m pip install ' >> https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' >> --break-system-packages >> in hopes of getting around the venv issue. It seemed to be working, but >> then got the following error. I'm not sure what next to try... >> >> ... >> Collecting pycurl >> Downloading pycurl-7.45.2.tar.gz (234 kB) >> ------------------------------------- 234.2/234.2 kB 491.7 kB/s eta >> 0:00:00 >> Preparing metadata (setup.py) ... error >> error: subprocess-exited-with-error >> >> python setup.py egg_info did not run successfully. >> exit code: 1 >> >> [26 lines of output] >> Traceback (most recent call last): >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 229, in configure_unix >> p = subprocess.Popen((self.curl_config(), '--version'), >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> File "/usr/lib/python3.11/subprocess.py", line 1024, in *init* >> self._execute_child(args, executable, preexec_fn, close_fds, >> File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child >> raise child_exception_type(errno_num, err_msg, err_filename) >> FileNotFoundError: [Errno 2] No such file or directory: 'curl-config' >> >> During handling of the above exception, another exception occurred: >> >> Traceback (most recent call last): >> File "", line 2, in >> File "", line 34, in >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 970, in >> ext = get_extension(sys.argv, >> split_extension_source=split_extension_source) >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 634, in get_extension >> ext_config = ExtensionConfiguration(argv) >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 93, in *init* >> self.configure() >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 234, in configure_unix >> raise ConfigurationError(msg) >> ConfigurationError: Could not run curl-config: [Errno 2] No such file or >> directory: 'curl-config' >> [end of output] >> >> note: This error originates from a subprocess, and is likely not a >> problem with pip. >> error: metadata-generation-failed >> >> Encountered error while generating package metadata. >> >> See above for output. >> >> note: This is an issue with the package mentioned above, not pip. >> hint: See above for details. >> ***@***.***:/home/pi# >> >> — >> Reply to this email directly, view it on GitHub >> <https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-1829019362>, >> or unsubscribe >> <https://github.com/notifications/unsubscribe-auth/APZW37NT6U6NHLOV5SNKJ2DYGVMA3AVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZGAYTSMZWGI> >> . >> You are receiving this because you were mentioned.Message ID: >> ***@***.***> >> >
Author
Owner

@Schnitzer50 commented on GitHub (Nov 28, 2023):

Hello everyone, first of all thank you for the detailed information on how to improve MotionEye.For me as a simple user, the instructions are very confusing and I cannot estimate the consequences. Are there no easy update options for Motioneye? I still understand updates via the user interface or terminal instructions for Debian11, and I can also load them from GitHub. Best regards✉️ vom 🖥Am 28.11.2023 um 07:44 schrieb pingufreak @.***>:
99,999999% of the time for fixing issues is reading logs / docs and

understanding in detail what's going on. If you just follow this advise,

you can get really good quite fast.

On Tue, Nov 28, 2023, 7:42 AM Ix Yps @.***> wrote:

Please read the logs / rtfm:

apt install -y curl-config

The other errors: bookworm doesn't come with python2, you really need to

install the dev version of motioneye with pip3.

On Tue, Nov 28, 2023, 4:37 AM Juanderer98 @.***>

wrote:

@pingufreak https://github.com/pingufreak

I tried entering the third line:

python3 -m pip install '

https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'

--break-system-packages

in hopes of getting around the venv issue. It seemed to be working, but

then got the following error. I'm not sure what next to try...

...

Collecting pycurl

Downloading pycurl-7.45.2.tar.gz (234 kB)

------------------------------------- 234.2/234.2 kB 491.7 kB/s eta

0:00:00

Preparing metadata (setup.py) ... error

error: subprocess-exited-with-error

python setup.py egg_info did not run successfully.

exit code: 1

[26 lines of output]

Traceback (most recent call last):

File

"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",

line 229, in configure_unix

p = subprocess.Popen((self.curl_config(), '--version'),

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "/usr/lib/python3.11/subprocess.py", line 1024, in init

self._execute_child(args, executable, preexec_fn, close_fds,

File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child

raise child_exception_type(errno_num, err_msg, err_filename)

FileNotFoundError: [Errno 2] No such file or directory: 'curl-config'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 2, in

File "", line 34, in

File

"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",

line 970, in

ext = get_extension(sys.argv,

split_extension_source=split_extension_source)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File

"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",

line 634, in get_extension

ext_config = ExtensionConfiguration(argv)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File

"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",

line 93, in init

self.configure()

File

"/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py",

line 234, in configure_unix

raise ConfigurationError(msg)

ConfigurationError: Could not run curl-config: [Errno 2] No such file or

directory: 'curl-config'

[end of output]

note: This error originates from a subprocess, and is likely not a

problem with pip.

error: metadata-generation-failed

Encountered error while generating package metadata.

See above for output.

note: This is an issue with the package mentioned above, not pip.

hint: See above for details.

@.***:/home/pi#

Reply to this email directly, view it on GitHub

https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-1829019362,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/APZW37NT6U6NHLOV5SNKJ2DYGVMA3AVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZGAYTSMZWGI

.

You are receiving this because you were mentioned.Message ID:

@.***>

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

@Schnitzer50 commented on GitHub (Nov 28, 2023): Hello everyone, first of all thank you for the detailed information on how to improve MotionEye.For me as a simple user, the instructions are very confusing and I cannot estimate the consequences. Are there no easy update options for Motioneye? I still understand updates via the user interface or terminal instructions for Debian11, and I can also load them from GitHub. Best regards✉️ vom 🖥Am 28.11.2023 um 07:44 schrieb pingufreak ***@***.***>: 99,999999% of the time for fixing issues is reading logs / docs and understanding in detail what's going on. If you just follow this advise, you can get really good quite fast. On Tue, Nov 28, 2023, 7:42 AM Ix Yps ***@***.***> wrote: > Please read the logs / rtfm: > > apt install -y curl-config > > The other errors: bookworm doesn't come with python2, you really need to > install the dev version of motioneye with pip3. > > On Tue, Nov 28, 2023, 4:37 AM Juanderer98 ***@***.***> > wrote: > >> @pingufreak <https://github.com/pingufreak> >> I tried entering the third line: >> python3 -m pip install ' >> https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' >> --break-system-packages >> in hopes of getting around the venv issue. It seemed to be working, but >> then got the following error. I'm not sure what next to try... >> >> ... >> Collecting pycurl >> Downloading pycurl-7.45.2.tar.gz (234 kB) >> ------------------------------------- 234.2/234.2 kB 491.7 kB/s eta >> 0:00:00 >> Preparing metadata (setup.py) ... error >> error: subprocess-exited-with-error >> >> python setup.py egg_info did not run successfully. >> exit code: 1 >> >> [26 lines of output] >> Traceback (most recent call last): >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 229, in configure_unix >> p = subprocess.Popen((self.curl_config(), '--version'), >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> File "/usr/lib/python3.11/subprocess.py", line 1024, in *init* >> self._execute_child(args, executable, preexec_fn, close_fds, >> File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child >> raise child_exception_type(errno_num, err_msg, err_filename) >> FileNotFoundError: [Errno 2] No such file or directory: 'curl-config' >> >> During handling of the above exception, another exception occurred: >> >> Traceback (most recent call last): >> File "", line 2, in >> File "", line 34, in >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 970, in >> ext = get_extension(sys.argv, >> split_extension_source=split_extension_source) >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 634, in get_extension >> ext_config = ExtensionConfiguration(argv) >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 93, in *init* >> self.configure() >> File >> "/tmp/pip-install-gp3rsl8m/pycurl_3fffa710a6074f8d9ede04a2314e9dfb/setup.py", >> line 234, in configure_unix >> raise ConfigurationError(msg) >> ConfigurationError: Could not run curl-config: [Errno 2] No such file or >> directory: 'curl-config' >> [end of output] >> >> note: This error originates from a subprocess, and is likely not a >> problem with pip. >> error: metadata-generation-failed >> >> Encountered error while generating package metadata. >> >> See above for output. >> >> note: This is an issue with the package mentioned above, not pip. >> hint: See above for details. >> ***@***.***:/home/pi# >> >> — >> Reply to this email directly, view it on GitHub >> <https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-1829019362>, >> or unsubscribe >> <https://github.com/notifications/unsubscribe-auth/APZW37NT6U6NHLOV5SNKJ2DYGVMA3AVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRZGAYTSMZWGI> >> . >> You are receiving this because you were mentioned.Message ID: >> ***@***.***> >> > —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
Author
Owner

@Juanderer98 commented on GitHub (Nov 28, 2023):

@pingufreak
Thank you for your guidance.

99,999999% of the time for fixing issues is reading logs / docs and
understanding in detail what's going on. If you just follow this advise,
you can get really good quite fast.

I'm still trying to find the applicable log file... I found '/var/log/apt/term.log' but this doesn't seem to have the information on errors. By docs, I'm guessing that would be the motioneye wiki, which I'm re-reading. The most recent error is below:

root@raspberrypi:/home/pi# sed -i 's//usr/local/bin/meyectl//usr/bin/libcamerify /usr/local/bin/meyectl/' /etc/systemd/system/motioneye.service
sed: can't read /etc/systemd/system/motioneye.service: No such file or directory

Any suggestions are most welcome.

@Juanderer98 commented on GitHub (Nov 28, 2023): @pingufreak Thank you for your guidance. ------- _99,999999% of the time for fixing issues is reading logs / docs and understanding in detail what's going on. If you just follow this advise, you can get really good quite fast._ ------- I'm still trying to find the applicable log file... I found '/var/log/apt/term.log' but this doesn't seem to have the information on errors. By docs, I'm guessing that would be the motioneye wiki, which I'm re-reading. The most recent error is below: ------- root@raspberrypi:/home/pi# sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service sed: can't read /etc/systemd/system/motioneye.service: No such file or directory ------- Any suggestions are most welcome.
Author
Owner

@Juanderer98 commented on GitHub (Nov 28, 2023):

@pingufreak,
Thank you again for your guidance (and patience). Maybe I'm getting a little closer to understanding your suggestion to read logs / docs, but probably not. Anyway, I'm looking through the manual for the sed command. I'm guessing it is to modify the file motioneye.service in place, by replacing paths but I'm still stuck trying to find the original motioneye.service file. I tried to do 'find files' with the file manager, but no luck...

@Juanderer98 commented on GitHub (Nov 28, 2023): @pingufreak, Thank you again for your guidance (and patience). Maybe I'm getting a little closer to understanding your suggestion to read logs / docs, but probably not. Anyway, I'm looking through the manual for the sed command. I'm guessing it is to modify the file motioneye.service in place, by replacing paths but I'm still stuck trying to find the original motioneye.service file. I tried to do 'find files' with the file manager, but no luck...
Author
Owner

@ishetkunst commented on GitHub (Feb 20, 2024):

Thanks. This worked!

@ishetkunst commented on GitHub (Feb 20, 2024): Thanks. This worked!
Author
Owner

@Schnitzer50 commented on GitHub (Feb 21, 2024):

Please explain me how to easily update motioneye with libcamera. Thanks for your help.

@Schnitzer50 commented on GitHub (Feb 21, 2024): Please explain me how to easily update motioneye with libcamera. Thanks for your help.
Author
Owner

@Schnitzer50 commented on GitHub (Feb 28, 2024):

My installed Motioneye version is 22.4.1. Is there already a newer version? If so, what is the easiest way to install it?

@Schnitzer50 commented on GitHub (Feb 28, 2024): My installed Motioneye version is 22.4.1. Is there already a newer version? If so, what is the easiest way to install it?
Author
Owner

@CHARL13is commented on GitHub (Mar 1, 2024):

@pingufreak did you manage to write an article in the end? I'm trying to use Motioneye with an RPi 5 (Bookworm) with a Pi v2 NOIR camera but having tried all of the various advice and guides I cannot get this to work. What I could really do with is a step-by-step from a fresh install. It used to be so easy!

@CHARL13is commented on GitHub (Mar 1, 2024): @pingufreak did you manage to write an article in the end? I'm trying to use Motioneye with an RPi 5 (Bookworm) with a Pi v2 NOIR camera but having tried all of the various advice and guides I cannot get this to work. What I could really do with is a step-by-step from a fresh install. It used to be so easy!
Author
Owner

@Martypose commented on GitHub (Mar 2, 2024):

@pingufreak did you manage to write an article in the end? I'm trying to use Motioneye with an RPi 5 (Bookworm) with a Pi v2 NOIR camera but having tried all of the various advice and guides I cannot get this to work. What I could really do with is a step-by-step from a fresh install. It used to be so easy!

I would also appreciate some kind of basic guide for this same setup.

Thank you very much.

@Martypose commented on GitHub (Mar 2, 2024): > @pingufreak did you manage to write an article in the end? I'm trying to use Motioneye with an RPi 5 (Bookworm) with a Pi v2 NOIR camera but having tried all of the various advice and guides I cannot get this to work. What I could really do with is a step-by-step from a fresh install. It used to be so easy! I would also appreciate some kind of basic guide for this same setup. Thank you very much.
Author
Owner

@jr3us commented on GitHub (Mar 10, 2024):

I have used the following instructions on my RPi 3b 32 bit bookworm and they worked fine.

I did have to download a tar.gz file directly from GitHub as there was no dev.tar.gz at the link below.

Thanks for the updates!

Hello Bello 🐶,

working with Debian Bookworm with current patchlevel:

apt update 
apt upgrade -y
python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'
apt install -y libcamera-v4l2
sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service
systemctl daemon-reload
systemctl enable motioneye --now

In motionEye add the first camera.

Example: Local V4L2 Camera /base/soc/.../.../ov5647...

Please update the wiki, I can't do a pull-request on it 🙈 🙉 🙊:

Install on Debian 12 (Bookworm)

Greetings from Trier (Germany)

7 Edits 😀

Have a nice day!

pingufreak

@jr3us commented on GitHub (Mar 10, 2024): I have used the following instructions on my RPi 3b 32 bit bookworm and they worked fine. I did have to download a tar.gz file directly from GitHub as there was no dev.tar.gz at the link below. Thanks for the updates! > Hello Bello 🐶, > > working with Debian Bookworm with current patchlevel: > > ``` > apt update > apt upgrade -y > python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' > apt install -y libcamera-v4l2 > sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service > systemctl daemon-reload > systemctl enable motioneye --now > ``` > > In motionEye add the first camera. > > Example: Local V4L2 Camera /base/soc/.../.../ov5647... > > Please update the wiki, I can't do a pull-request on it 🙈 🙉 🙊: > > [Install on Debian 12 (Bookworm)](https://github.com/motioneye-project/motioneye/wiki/Install-on-Debian-12-(Bookworm)) > > Greetings from Trier (Germany) > > 7 Edits 😀 > > Have a nice day! > > pingufreak
Author
Owner

@birefringence commented on GitHub (Jun 2, 2024):

I have the original v1 camera module connected to a Pi Zero 2 W and the above instructions work in so far as that the module is detected. The picture I see, however, only consists of green stripes. I see some changes when I move the camera. Therefore, I conclude that data is transferred but there seems to be a problem with the pixel format. Everything looks fine directly with libcamera. I tried experimenting with the resolution and motion "palette" setting, but that was unsuccessful.

@birefringence commented on GitHub (Jun 2, 2024): I have the original v1 camera module connected to a Pi Zero 2 W and the above instructions work in so far as that the module is detected. The picture I see, however, only consists of green stripes. I see some changes when I move the camera. Therefore, I conclude that data is transferred but there seems to be a problem with the pixel format. Everything looks fine directly with libcamera. I tried experimenting with the resolution and motion "palette" setting, but that was unsuccessful.
Author
Owner

@fikin commented on GitHub (Jul 5, 2024):

Hello Bello 🐶,

working with Debian Bookworm with current patchlevel:

apt update 
apt upgrade -y
python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'
apt install -y libcamera-v4l2
sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service
systemctl daemon-reload
systemctl enable motioneye --now

In motionEye add the first camera.

Example: Local V4L2 Camera /base/soc/.../.../ov5647...

Please update the wiki, I can't do a pull-request on it 🙈 🙉 🙊:

Install on Debian 12 (Bookworm)

Greetings from Trier (Germany)

7 Edits 😀

Have a nice day!

pingufreak

to confirm these instructions worked for me too.

pi zero 2 w + noir 2 + debian bookworm
following main motioneye installation instructions did not render a working camera.
following https://lookslikematrix.de/raspberry-pi/2023/10/14/motion-bookworm.html rendered working motion but not motioneye.
after applying instruction from above, motioneye started working.

@fikin commented on GitHub (Jul 5, 2024): > Hello Bello 🐶, > > working with Debian Bookworm with current patchlevel: > > ``` > apt update > apt upgrade -y > python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' > apt install -y libcamera-v4l2 > sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service > systemctl daemon-reload > systemctl enable motioneye --now > ``` > > In motionEye add the first camera. > > Example: Local V4L2 Camera /base/soc/.../.../ov5647... > > Please update the wiki, I can't do a pull-request on it 🙈 🙉 🙊: > > [Install on Debian 12 (Bookworm)](https://github.com/motioneye-project/motioneye/wiki/Install-on-Debian-12-(Bookworm)) > > Greetings from Trier (Germany) > > 7 Edits 😀 > > Have a nice day! > > pingufreak to confirm these instructions worked for me too. pi zero 2 w + noir 2 + debian bookworm following main motioneye installation instructions did not render a working camera. following https://lookslikematrix.de/raspberry-pi/2023/10/14/motion-bookworm.html rendered working motion but not motioneye. after applying instruction from above, motioneye started working.
Author
Owner

@Martypose commented on GitHub (Jul 7, 2024):

Same

Noir v1 IR torch

Bookworm clean install

Pi4 4gb

Working fine

image

Thanks @pingufreak

EDIT: also working with noir v3 cam

@Martypose commented on GitHub (Jul 7, 2024): Same Noir v1 IR torch Bookworm clean install Pi4 4gb Working fine ![image](https://github.com/motioneye-project/motioneye/assets/46140279/e14a7b54-e11f-44f9-a813-28f52dec3bc0) Thanks @pingufreak EDIT: also working with noir v3 cam
Author
Owner

@jinky77 commented on GitHub (Oct 20, 2024):

Hi there! Reviving this thread as I'm also trying to install motioneye using @pingufreak's solution.

I stumbled upon sed: can't read /etc/systemd/system/motioneye.service: No such file or directory like @Juanderer98 did. I carefully followed the steps above, although I should mention that I did NOT installed motioneye using the official installation guide.

Could any of you guys help me solve this? Thanks!

@jinky77 commented on GitHub (Oct 20, 2024): Hi there! Reviving this thread as I'm also trying to install motioneye using @pingufreak's solution. I stumbled upon `sed: can't read /etc/systemd/system/motioneye.service: No such file or directory` like @Juanderer98 did. I carefully followed the steps above, although I should mention that I did NOT installed motioneye using the official installation guide. Could any of you guys help me solve this? Thanks!
Author
Owner

@Martypose commented on GitHub (Oct 20, 2024):

Create manually that file with

sudo nano /etc/systemd/system/motioneye.service

the content is something like

[Unit]
Description=motionEye Server
After=network.target

[Service]
ExecStartPre=/bin/mkdir -p /run/motioneye
ExecStartPre=/bin/chown root:root /run/motioneye
ExecStart=/usr/bin/libcamerify /homeYOURUSER/motioneye-env/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
User=root
Group=root
Type=simple
Restart=on-failure

[Install]
WantedBy=multi-user.target


The reason you had to create the /etc/systemd/system/motioneye.service file manually is that this file defines how the motionEye service will be managed by systemd, which is the init system used in modern Linux distributions to manage services (including starting, stopping, restarting, and ensuring they run at boot).

Normally, when you install software through package managers (like apt), a service file is automatically created. However, in this case, since you are installing motionEye manually or from a custom method (such as a Python virtual environment), the service file isn't provided by default.

I think.

@Martypose commented on GitHub (Oct 20, 2024): Create manually that file with sudo nano /etc/systemd/system/motioneye.service the content is something like [Unit] Description=motionEye Server After=network.target [Service] ExecStartPre=/bin/mkdir -p /run/motioneye ExecStartPre=/bin/chown root:root /run/motioneye ExecStart=/usr/bin/libcamerify /homeYOURUSER/motioneye-env/bin/meyectl startserver -c /etc/motioneye/motioneye.conf User=root Group=root Type=simple Restart=on-failure [Install] WantedBy=multi-user.target ----- The reason you had to create the /etc/systemd/system/motioneye.service file manually is that this file defines how the motionEye service will be managed by systemd, which is the init system used in modern Linux distributions to manage services (including starting, stopping, restarting, and ensuring they run at boot). Normally, when you install software through package managers (like apt), a service file is automatically created. However, in this case, since you are installing motionEye manually or from a custom method (such as a Python virtual environment), the service file isn't provided by default. I think.
Author
Owner

@jinky77 commented on GitHub (Oct 25, 2024):

Hey @Martypose thank you very much for taking the time to reply. I ended up not needing to manually set motion.service after all, here is what I did:

  1. On a brand new Bookworm (Raspberry Pi OS 64-bit Full) installation, sudo apt update && apt upgrade -y. I've used Raspberry Pi Imager to flash the SD card
  2. Followed the installation instructions provided here. I just skipped the pip installation instructions in point 2 since it was already installed
  3. Installed libcamera-v4l2 with apt install -y libcamera-v4l2
  4. Followed the rest of @pingufreak's instructions
  5. Rebooted and voilà! The camera was indeed recognized by motionEye

To anyone who might need help with, don't hesitate to write!

Capture d’écran 2024-10-25 à 14 28 36

Edit: added details following @pookguy88's reply.

@jinky77 commented on GitHub (Oct 25, 2024): Hey @Martypose thank you very much for taking the time to reply. I ended up not needing to manually set `motion.service` after all, here is what I did: 1. On a brand new Bookworm (Raspberry Pi OS 64-bit Full) installation, `sudo apt update && apt upgrade -y`. I've used [Raspberry Pi Imager](https://www.raspberrypi.com/software/) to flash the SD card 2. Followed the installation instructions provided [here](https://github.com/motioneye-project/motioneye?tab=readme-ov-file). I just skipped the `pip` installation instructions in point 2 since it was already installed 3. Installed `libcamera-v4l2` with `apt install -y libcamera-v4l2` 4. Followed the rest of @pingufreak's instructions 5. Rebooted and voilà! The camera was indeed recognized by motionEye To anyone who might need help with, don't hesitate to write! <img width="414" alt="Capture d’écran 2024-10-25 à 14 28 36" src="https://github.com/user-attachments/assets/fe70f000-3353-4613-9007-e2e186c500f8"> Edit: added details following @pookguy88's reply.
Author
Owner

@pookguy88 commented on GitHub (Oct 29, 2024):

finally got it to work, I Have Raspberry Pi Zero 2 and the Arducam IMX708 - Raspberry Pi Imager and installed the latest Bookworm 64bit lite

followed @pingufreak's instructions

so I used Raspberry Pi Imager and installed the latest Bookworm 64bit lite. Went through everything and booted up Motioneye, couldn't detect my camera.

After reading @jinky77 's comment him saying pip was already installed, I realized I don't think libcamerify was installed on my Bookworm build

So in the apt install -y libcamera-v4l2 step of the instructions, you need to also have libcamera-tools, so add in:
sudo apt-get install libcamera-tools

Because the next step with the sed command is basically a find and replace and it just assumes you have libcamerify installed

So after doing all that and booting up Motioneye, I finally get it to work.

followed @pingufreak's instructions but for the life of me couldn't it get it work.

@pookguy88 commented on GitHub (Oct 29, 2024): finally got it to work, I Have Raspberry Pi Zero 2 and the Arducam IMX708 - Raspberry Pi Imager and installed the latest Bookworm 64bit lite followed @pingufreak's instructions so I used Raspberry Pi Imager and installed the latest Bookworm 64bit lite. Went through everything and booted up Motioneye, couldn't detect my camera. After reading @jinky77 's comment him saying pip was already installed, I realized I don't think libcamerify was installed on my Bookworm build So in the `apt install -y libcamera-v4l2` step of the instructions, you need to also have libcamera-tools, so add in: `sudo apt-get install libcamera-tools` Because the next step with the sed command is basically a find and replace and it just assumes you have libcamerify installed So after doing all that and booting up Motioneye, I finally get it to work. followed @pingufreak's instructions but for the life of me couldn't it get it work.
Author
Owner

@mark4mike commented on GitHub (Nov 2, 2024):

Great thread, I've been trying to get an Arducam IMX708 Camera Module 3 to work with motioneye for a while on a Pi Zero 2 W. Thanks to @pingufreak, @jinky77, and @pookguy88! Just to add to this in case it helps anyone, I had to pretty much do a combo of everyone's steps to some degree and did have to end up installing pip. Additionally, my camera would not work or get detected until doing the following from Arducam's Wiki:

sudo nano /boot/firmware/config.txt

#Find the line: camera_auto_detect=1, update it to:
camera_auto_detect=0

#Find the line: [all], add the following item under it:
dtoverlay=imx708

#Save and reboot.

After the reboot I was able to add the camera in motioneye.

If it helps anyone, here were the steps I followed to get mine working:

  1. Fresh install of Raspberry Pi OS Lite (64-bit) Bookworm
  2. Update OS
sudo apt update
sudo apt upgrade -y
sudo reboot
  1. Install motionEye. I used @pingufreak's method but had to do a couple pre-requisites to get pip installed from the link @jinky77 provided, following the steps based on my architecture. 64-Bit Bookworm in my case:
sudo apt update
sudo apt --no-install-recommends install ca-certificates curl python3 python3-dev libcurl4-openssl-dev gcc libssl-dev
grep -q '\[global\]' /etc/pip.conf 2> /dev/null || printf '%b' '[global]\n' | sudo tee -a /etc/pip.conf > /dev/null
sudo sed -i '/^\[global\]/a\break-system-packages=true' /etc/pip.conf 
curl -sSfO 'https://bootstrap.pypa.io/get-pip.py'
sudo python3 get-pip.py
rm get-pip.py
sudo python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'
  1. I then followed @pookguy88's info and installed libcamera-v412 and libcamera-tools
sudo apt install -y libcamera-v4l2
sudo apt install -y libcamera-tools
  1. Then initiated motionEye:
sudo motioneye_init
sudo sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service
sudo systemctl daemon-reload
sudo systemctl enable motioneye --now
  1. This was when I had edited /boot/firmware/config.txt as I mentioned above and then rebooted.
  2. Navigate to https://[raspberry pi IP address]:8765

After the last reboot I was able to add my camera like normal. Of course libcamera-v412, and libcamera-tools packages can be installed before installing motionEye but this was just the order I did it in.

Thanks all!

Edit: Updated "motionEyeOS" to say "motioneye" as @zagrim pointed out. :)

@mark4mike commented on GitHub (Nov 2, 2024): Great thread, I've been trying to get an Arducam IMX708 Camera Module 3 to work with motioneye for a while on a Pi Zero 2 W. Thanks to @pingufreak, @jinky77, and @pookguy88! Just to add to this in case it helps anyone, I had to pretty much do a combo of everyone's steps to some degree and did have to end up installing `pip`. Additionally, my camera would not work or get detected until doing the following from Arducam's [Wiki:](https://docs.arducam.com/Raspberry-Pi-Camera/Native-camera/12MP-IMX708/#:~:text=Bookworm%20OS%20on%20Pi0%2DPi3) ``` sudo nano /boot/firmware/config.txt #Find the line: camera_auto_detect=1, update it to: camera_auto_detect=0 #Find the line: [all], add the following item under it: dtoverlay=imx708 #Save and reboot. ``` After the reboot I was able to add the camera in motioneye. If it helps anyone, here were the steps I followed to get mine working: 1. Fresh install of Raspberry Pi OS Lite (64-bit) Bookworm 2. Update OS ``` sudo apt update sudo apt upgrade -y sudo reboot ``` 3. [Install motionEye](https://github.com/motioneye-project/motioneye?tab=readme-ov-file#:~:text=on%20Weblate.-,Installation,-These%20install%20instructions). I used @pingufreak's method but had to do a couple pre-requisites to get `pip` installed from the link @jinky77 provided, following the steps based on my architecture. 64-Bit Bookworm in my case: ``` sudo apt update sudo apt --no-install-recommends install ca-certificates curl python3 python3-dev libcurl4-openssl-dev gcc libssl-dev grep -q '\[global\]' /etc/pip.conf 2> /dev/null || printf '%b' '[global]\n' | sudo tee -a /etc/pip.conf > /dev/null sudo sed -i '/^\[global\]/a\break-system-packages=true' /etc/pip.conf curl -sSfO 'https://bootstrap.pypa.io/get-pip.py' sudo python3 get-pip.py rm get-pip.py sudo python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' ``` 4. I then followed @pookguy88's info and installed `libcamera-v412` and `libcamera-tools` ``` sudo apt install -y libcamera-v4l2 sudo apt install -y libcamera-tools ``` 5. Then initiated motionEye: ``` sudo motioneye_init sudo sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service sudo systemctl daemon-reload sudo systemctl enable motioneye --now ``` 6. This was when I had edited `/boot/firmware/config.txt` as I mentioned above and then rebooted. 7. Navigate to https://[raspberry pi IP address]:8765 After the last reboot I was able to add my camera like normal. Of course `libcamera-v412`, and `libcamera-tools` packages can be installed before installing motionEye but this was just the order I did it in. Thanks all! Edit: Updated "motionEyeOS" to say "motioneye" as @zagrim pointed out. :)
Author
Owner

@zagrim commented on GitHub (Nov 4, 2024):

Thanks for all so far for sharing your solutions! 👍 👍 👍
One small clarification @mark4mike though to avoid confusion in others reading this: MotionEyeOS is a stripped-down Linux distro by itself, and what you were installing is the standalone MotionEye application 😃

@zagrim commented on GitHub (Nov 4, 2024): Thanks for all so far for sharing your solutions! :+1: :+1: :+1: One small clarification @mark4mike though to avoid confusion in others reading this: MotionEyeOS is a stripped-down Linux distro by itself, and what you were installing is the standalone MotionEye application :smiley:
Author
Owner

@mark4mike commented on GitHub (Nov 4, 2024):

Thanks for all so far for sharing your solutions! 👍 👍 👍 One small clarification @mark4mike though to avoid confusion in others reading this: MotionEyeOS is a stripped-down Linux distro by itself, and what you were installing is the standalone MotionEye application 😃

That's right, my mistake. The previous times I had played around with it I had always just flashed SD cards directly with motioneyeOS rather than installing it on Raspberry Pi OS. Thanks for clarifying!

@mark4mike commented on GitHub (Nov 4, 2024): > Thanks for all so far for sharing your solutions! 👍 👍 👍 One small clarification @mark4mike though to avoid confusion in others reading this: MotionEyeOS is a stripped-down Linux distro by itself, and what you were installing is the standalone MotionEye application 😃 That's right, my mistake. The previous times I had played around with it I had always just flashed SD cards directly with motioneyeOS rather than installing it on Raspberry Pi OS. Thanks for clarifying!
Author
Owner

@Matthew1471 commented on GitHub (Nov 28, 2024):

This thread has useful info spread across it and each of the provided advice is missing some commands.. Taking a microSD and putting Bookworm Lite 64 bit on it, using the imager customisation to give it the WiFi password and enable SSH and then booting and running:

# All future commands require root
sudo -i

# Update distro
apt-get update
apt-get -y dist-upgrade

# Install python3-pip
apt-get -y install python3-pip

# Fix motioneye dependencies
apt-get -y install python3-jinja2 python3-pil python3-pycurl python3-babel python3-boto3 python3-tornado

# Override pip limitation
grep -q '\[global\]' /etc/pip.conf 2> /dev/null || printf '%b' '[global]\n' | tee -a /etc/pip.conf > /dev/null
sed -i '/^\[global\]/a\break-system-packages=true' /etc/pip.conf

# Install motioneye
pip install --pre motioneye
motioneye_init

# RPI: Fix camera on Bookworm
apt-get -y install libcamera-v4l2 libcamera-tools
sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service
systemctl daemon-reload
systemctl restart motioneye.service

Will get you going..

I also like:

# RPI: Force 5GHz.
nmcli connection modify preconfigured 802-11-wireless.band a

# Install fail2ban, iptables-persistent, unattended-upgrades
apt-get -y install fail2ban iptables-persistent unattended-upgrades

# NAT MotionEye to port 80 using iptables.
#-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8765

# nano /etc/fail2ban/jail.conf so backend=systemd

# RPI: Fix unattended upgrades
# nano /etc/apt/apt.conf.d/50unattended-upgrades
#        // Raspberry Pi OS
#        "origin=Raspberry Pi Foundation,codename=${distro_codename},label=Raspberry Pi Foundation";

# RPI: Fix Wi-Fi (https://github.com/raspberrypi/linux/issues/6049#issuecomment-2595167933)
# either below or append "brcmfmac.roamoff=1 brcmfmac.feature_disable=0x282000" to /boot/firmware/cmdline.txt
echo "options brcmfmac roamoff=1 feature_disable=0x282000" > /etc/modprobe.d/brcmfmac.conf

# Clear logs
journalctl --rotate
journalctl --vacuum-time=1s

Hope this saves someone a lot of time!

@Matthew1471 commented on GitHub (Nov 28, 2024): This thread has useful info spread across it and each of the provided advice is missing some commands.. Taking a microSD and putting Bookworm Lite 64 bit on it, using the imager customisation to give it the WiFi password and enable SSH and then booting and running: ``` # All future commands require root sudo -i # Update distro apt-get update apt-get -y dist-upgrade # Install python3-pip apt-get -y install python3-pip # Fix motioneye dependencies apt-get -y install python3-jinja2 python3-pil python3-pycurl python3-babel python3-boto3 python3-tornado # Override pip limitation grep -q '\[global\]' /etc/pip.conf 2> /dev/null || printf '%b' '[global]\n' | tee -a /etc/pip.conf > /dev/null sed -i '/^\[global\]/a\break-system-packages=true' /etc/pip.conf # Install motioneye pip install --pre motioneye motioneye_init # RPI: Fix camera on Bookworm apt-get -y install libcamera-v4l2 libcamera-tools sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service systemctl daemon-reload systemctl restart motioneye.service ``` Will get you going.. I also like: ``` # RPI: Force 5GHz. nmcli connection modify preconfigured 802-11-wireless.band a # Install fail2ban, iptables-persistent, unattended-upgrades apt-get -y install fail2ban iptables-persistent unattended-upgrades # NAT MotionEye to port 80 using iptables. #-A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8765 # nano /etc/fail2ban/jail.conf so backend=systemd # RPI: Fix unattended upgrades # nano /etc/apt/apt.conf.d/50unattended-upgrades # // Raspberry Pi OS # "origin=Raspberry Pi Foundation,codename=${distro_codename},label=Raspberry Pi Foundation"; # RPI: Fix Wi-Fi (https://github.com/raspberrypi/linux/issues/6049#issuecomment-2595167933) # either below or append "brcmfmac.roamoff=1 brcmfmac.feature_disable=0x282000" to /boot/firmware/cmdline.txt echo "options brcmfmac roamoff=1 feature_disable=0x282000" > /etc/modprobe.d/brcmfmac.conf # Clear logs journalctl --rotate journalctl --vacuum-time=1s ``` Hope this saves someone a lot of time!
Author
Owner

@mkalle333 commented on GitHub (Dec 25, 2024):

@Matthew1471

Thank you so much for the summary, it worked flawlessly on my Raspberry Model 4 B with Camera Module 3.
Might I suggest adding
#sudo systemctl enable motioneye
to start motioneye automatically on start/reboot

Or would it have done anyways? I am not sure.

@mkalle333 commented on GitHub (Dec 25, 2024): @Matthew1471 Thank you so much for the summary, it worked flawlessly on my Raspberry Model 4 B with Camera Module 3. Might I suggest adding `#sudo systemctl enable motioneye` to start motioneye automatically on start/reboot Or would it have done anyways? I am not sure.
Author
Owner

@Matthew1471 commented on GitHub (Jan 21, 2025):

@mkalle333 you're welcome... no need to add enable.. the install script already does that.

I had issues with Wi-Fi on all my Raspberry Pi 4s due to a buggy driver (brcmfmac).. so I've now added this too:

# RPI: Fix Wi-Fi (https://github.com/raspberrypi/linux/issues/6049#issuecomment-2595167933)
# either below or append "brcmfmac.roamoff=1 brcmfmac.feature_disable=0x202000" to /boot/firmware/cmdline.txt
echo "options brcmfmac roamoff=1 feature_disable=0x202000" > /etc/modprobe.d/brcmfmac.conf
@Matthew1471 commented on GitHub (Jan 21, 2025): @mkalle333 you're welcome... no need to add enable.. the install script already does that. I had issues with Wi-Fi on all my Raspberry Pi 4s due to a buggy driver (brcmfmac).. so I've now added this too: ``` # RPI: Fix Wi-Fi (https://github.com/raspberrypi/linux/issues/6049#issuecomment-2595167933) # either below or append "brcmfmac.roamoff=1 brcmfmac.feature_disable=0x202000" to /boot/firmware/cmdline.txt echo "options brcmfmac roamoff=1 feature_disable=0x202000" > /etc/modprobe.d/brcmfmac.conf ```
Author
Owner

@delanthear commented on GitHub (Jan 31, 2025):

This thread has useful info spread across it and each of the provided advice is missing some commands.. Taking a microSD and putting Bookworm Lite 64 bit on it, using the imager customisation to give it the WiFi password and enable SSH and then booting and running:

Gah!

This all worked fine for me last week, amazing job pulling it together.

However though, after a reinstall (using Raspberry Pi OS Lite 64 bit this time rather than the full desktop install, could that be it?) I cannot get MotionEye to detect the camera. Any idea of where to look for clues? The camera is working as I just took a shot with it rpicam-stilll.

@delanthear commented on GitHub (Jan 31, 2025): > This thread has useful info spread across it and each of the provided advice is missing some commands.. Taking a microSD and putting Bookworm Lite 64 bit on it, using the imager customisation to give it the WiFi password and enable SSH and then booting and running: > Gah! This all worked fine for me last week, amazing job pulling it together. However though, after a reinstall (using Raspberry Pi OS Lite 64 bit this time rather than the full desktop install, could that be it?) I cannot get MotionEye to detect the camera. Any idea of where to look for clues? The camera is working as I just took a shot with it rpicam-stilll.
Author
Owner

@Matthew1471 commented on GitHub (Jan 31, 2025):

This thread has useful info spread across it and each of the provided advice is missing some commands.. Taking a microSD and putting Bookworm Lite 64 bit on it, using the imager customisation to give it the WiFi password and enable SSH and then booting and running:

Gah!

This all worked fine for me last week, amazing job pulling it together.

However though, after a reinstall (using Raspberry Pi OS Lite 64 bit this time rather than the full desktop install, could that be it?) I cannot get MotionEye to detect the camera. Any idea of where to look for clues? The camera is working as I just took a shot with it rpicam-stilll.

I had issues sometimes installing packages due to a server error (HTTP 400).. so I'd check each command succeeded. Did you try a reboot after (so it's not in use with rpicam-still etc)? I use only Lite so it definitely works with Lite.. make sure you didn't select Legacy Lite?

@Matthew1471 commented on GitHub (Jan 31, 2025): > > This thread has useful info spread across it and each of the provided advice is missing some commands.. Taking a microSD and putting Bookworm Lite 64 bit on it, using the imager customisation to give it the WiFi password and enable SSH and then booting and running: > > Gah! > > This all worked fine for me last week, amazing job pulling it together. > > However though, after a reinstall (using Raspberry Pi OS Lite 64 bit this time rather than the full desktop install, could that be it?) I cannot get MotionEye to detect the camera. Any idea of where to look for clues? The camera is working as I just took a shot with it rpicam-stilll. I had issues sometimes installing packages due to a server error (HTTP 400).. so I'd check each command succeeded. Did you try a reboot after (so it's not in use with rpicam-still etc)? I use only Lite so it definitely works with Lite.. make sure you didn't select Legacy Lite?
Author
Owner

@delanthear commented on GitHub (Feb 1, 2025):

Yeah, a re-image with the desktop version and it still not working. I followed these instructions exactly, with the same Pi and Camera before and it was fine, but not now.

Just looking at the output from the above commands, is any of this interesting?

After the apt-get -y dist-upgrade

The following packages were automatically installed and are no longer required:
  libcamera0.3 libwlroots12

and looks like it replaces libcamera0.3 with 0.4

The following NEW packages will be installed:
  libcamera0.4 libwlroots-0.18 libxcb-errors0 linux-headers-6.6.74+rpt-common-rpi linux-headers-6.6.74+rpt-rpi-2712 linux-headers-6.6.74+rpt-rpi-v8 linux-image-6.6.74+rpt-rpi-2712
  linux-image-6.6.74+rpt-rpi-v8 linux-kbuild-6.6.74+rpt rasputin

this: (which I suspect has nothing to do with it)

dpkg: lxinput: dependency problems, but removing anyway as you requested:
 lxde depends on rasputin | lxinput; however:
  Package rasputin is not installed.
  Package lxinput is to be removed.

I can see the camera here fine:

ls -l /dev/ | grep video
crw-rw----  1 root  video 239,   0 Feb  1 13:49 cec0
crw-rw----+ 1 root  video 237,   0 Feb  1 13:49 media0
crw-rw----+ 1 root  video 237,   1 Feb  1 13:49 media1
crw-rw----+ 1 root  video 237,   2 Feb  1 13:49 media2
crw-rw----+ 1 root  video 237,   3 Feb  1 13:49 media3
crw-rw----+ 1 root  video  81,  14 Feb  1 13:49 v4l-subdev0
crw-rw----  1 root  video  10, 124 Feb  1 13:49 vchiq
crw-rw----  1 root  video  10, 125 Feb  1 13:49 vcio
crw-rw----  1 root  video  10, 122 Feb  1 13:49 vcsm-cma
crw-rw----+ 1 root  video  81,  13 Feb  1 13:49 video0
crw-rw----+ 1 root  video  81,   7 Feb  1 13:49 video10
crw-rw----+ 1 root  video  81,   9 Feb  1 13:49 video11
crw-rw----+ 1 root  video  81,  10 Feb  1 13:49 video12
crw-rw----+ 1 root  video  81,   0 Feb  1 13:49 video13
crw-rw----+ 1 root  video  81,   1 Feb  1 13:49 video14
crw-rw----+ 1 root  video  81,   2 Feb  1 13:49 video15
crw-rw----+ 1 root  video  81,   3 Feb  1 13:49 video16
crw-rw----+ 1 root  video  81,  11 Feb  1 13:49 video18
crw-rw----+ 1 root  video  81,   4 Feb  1 13:49 video20
crw-rw----+ 1 root  video  81,   5 Feb  1 13:49 video21
crw-rw----+ 1 root  video  81,   6 Feb  1 13:49 video22
crw-rw----+ 1 root  video  81,   8 Feb  1 13:49 video23
crw-rw----+ 1 root  video  81,  12 Feb  1 13:49 video31

and the camera is working:

rpicam-still
[0:03:42.433416410] [1671] ERROR IPAModule ipa_module.cpp:171 Symbol ipaModuleInfo not found
[0:03:42.434173021] [1671] ERROR IPAModule ipa_module.cpp:291 v4l2-compat.so: IPA module has no valid info
[0:03:42.434284167] [1671]  INFO Camera camera_manager.cpp:327 libcamera v0.4.0+50-83cb8101
[0:03:42.576803849] [1674]  WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:03:42.582547524] [1674]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media0 and ISP device /dev/media1
[0:03:42.582775023] [1674]  INFO RPI pipeline_base.cpp:1121 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Preview window unavailable
Mode selection for 1296:972:12:P
    SGBRG10_CSI2P,640x480/0 - Score: 3296
    SGBRG10_CSI2P,1296x972/0 - Score: 1000
    SGBRG10_CSI2P,1920x1080/0 - Score: 1349.67
    SGBRG10_CSI2P,2592x1944/0 - Score: 1567
Stream configuration adjusted
[0:03:42.598697355] [1671]  INFO Camera camera.cpp:1202 configuring streams: (0) 1296x972-YUV420 (1) 1296x972-SGBRG10_CSI2P
[0:03:42.599606570] [1674]  INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
#0 (0.00 fps) exp 33239.00 ag 8.00 dg 1.00
#1 (30.01 fps) exp 33239.00 ag 8.00 dg 1.00
etc

From what I can tell, the service config is set up to use libcamerify correctly:

/etc/systemd/system $ cat motioneye.service 
[Unit]
Description=motionEye Server
After=network.target local-fs.target remote-fs.target

[Service]
User=motion
RuntimeDirectory=motioneye
LogsDirectory=motioneye
StateDirectory=motioneye
ExecStart=/usr/bin/libcamerify /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
Restart=on-abort

[Install]
WantedBy=multi-user.target

Perhaps I damaged the camera somehow between when it was working before and now, but then why would I be able to take stills with it?

I'm far too clueless with linux to actually debug what's going on here, but from what I can see I can't find any errors or clues as to why it wouldn't be working. The dropdown just says (no cameras)

@delanthear commented on GitHub (Feb 1, 2025): Yeah, a re-image with the desktop version and it still not working. I followed these instructions exactly, with the same Pi and Camera before and it was fine, but not now. Just looking at the output from the above commands, is any of this interesting? After the apt-get -y dist-upgrade ``` The following packages were automatically installed and are no longer required: libcamera0.3 libwlroots12 ``` and looks like it replaces libcamera0.3 with 0.4 ``` The following NEW packages will be installed: libcamera0.4 libwlroots-0.18 libxcb-errors0 linux-headers-6.6.74+rpt-common-rpi linux-headers-6.6.74+rpt-rpi-2712 linux-headers-6.6.74+rpt-rpi-v8 linux-image-6.6.74+rpt-rpi-2712 linux-image-6.6.74+rpt-rpi-v8 linux-kbuild-6.6.74+rpt rasputin ``` this: (which I suspect has nothing to do with it) ``` dpkg: lxinput: dependency problems, but removing anyway as you requested: lxde depends on rasputin | lxinput; however: Package rasputin is not installed. Package lxinput is to be removed. ``` I can see the camera here fine: ``` ls -l /dev/ | grep video crw-rw---- 1 root video 239, 0 Feb 1 13:49 cec0 crw-rw----+ 1 root video 237, 0 Feb 1 13:49 media0 crw-rw----+ 1 root video 237, 1 Feb 1 13:49 media1 crw-rw----+ 1 root video 237, 2 Feb 1 13:49 media2 crw-rw----+ 1 root video 237, 3 Feb 1 13:49 media3 crw-rw----+ 1 root video 81, 14 Feb 1 13:49 v4l-subdev0 crw-rw---- 1 root video 10, 124 Feb 1 13:49 vchiq crw-rw---- 1 root video 10, 125 Feb 1 13:49 vcio crw-rw---- 1 root video 10, 122 Feb 1 13:49 vcsm-cma crw-rw----+ 1 root video 81, 13 Feb 1 13:49 video0 crw-rw----+ 1 root video 81, 7 Feb 1 13:49 video10 crw-rw----+ 1 root video 81, 9 Feb 1 13:49 video11 crw-rw----+ 1 root video 81, 10 Feb 1 13:49 video12 crw-rw----+ 1 root video 81, 0 Feb 1 13:49 video13 crw-rw----+ 1 root video 81, 1 Feb 1 13:49 video14 crw-rw----+ 1 root video 81, 2 Feb 1 13:49 video15 crw-rw----+ 1 root video 81, 3 Feb 1 13:49 video16 crw-rw----+ 1 root video 81, 11 Feb 1 13:49 video18 crw-rw----+ 1 root video 81, 4 Feb 1 13:49 video20 crw-rw----+ 1 root video 81, 5 Feb 1 13:49 video21 crw-rw----+ 1 root video 81, 6 Feb 1 13:49 video22 crw-rw----+ 1 root video 81, 8 Feb 1 13:49 video23 crw-rw----+ 1 root video 81, 12 Feb 1 13:49 video31 ``` and the camera is working: ``` rpicam-still [0:03:42.433416410] [1671] ERROR IPAModule ipa_module.cpp:171 Symbol ipaModuleInfo not found [0:03:42.434173021] [1671] ERROR IPAModule ipa_module.cpp:291 v4l2-compat.so: IPA module has no valid info [0:03:42.434284167] [1671] INFO Camera camera_manager.cpp:327 libcamera v0.4.0+50-83cb8101 [0:03:42.576803849] [1674] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise [0:03:42.582547524] [1674] INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media0 and ISP device /dev/media1 [0:03:42.582775023] [1674] INFO RPI pipeline_base.cpp:1121 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml' Preview window unavailable Mode selection for 1296:972:12:P SGBRG10_CSI2P,640x480/0 - Score: 3296 SGBRG10_CSI2P,1296x972/0 - Score: 1000 SGBRG10_CSI2P,1920x1080/0 - Score: 1349.67 SGBRG10_CSI2P,2592x1944/0 - Score: 1567 Stream configuration adjusted [0:03:42.598697355] [1671] INFO Camera camera.cpp:1202 configuring streams: (0) 1296x972-YUV420 (1) 1296x972-SGBRG10_CSI2P [0:03:42.599606570] [1674] INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA #0 (0.00 fps) exp 33239.00 ag 8.00 dg 1.00 #1 (30.01 fps) exp 33239.00 ag 8.00 dg 1.00 etc ``` From what I can tell, the service config is set up to use libcamerify correctly: ``` /etc/systemd/system $ cat motioneye.service [Unit] Description=motionEye Server After=network.target local-fs.target remote-fs.target [Service] User=motion RuntimeDirectory=motioneye LogsDirectory=motioneye StateDirectory=motioneye ExecStart=/usr/bin/libcamerify /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf Restart=on-abort [Install] WantedBy=multi-user.target ``` Perhaps I damaged the camera somehow between when it was working before and now, but then why would I be able to take stills with it? I'm far too clueless with linux to actually debug what's going on here, but from what I can see I can't find any errors or clues as to why it wouldn't be working. The dropdown just says (no cameras)
Author
Owner

@Matthew1471 commented on GitHub (Feb 1, 2025):

@delanthear okay, I'm able to reproduce this.. so last night after your message I noticed there was some pending packages to update for libcamera (I auto upgrade every evening).. I let them update overnight.. rebooted the machine today and I also have the no camera message on a previously working install.

2025-02-01 06:16:52,146 INFO Packages that will be upgraded: libcamera-ipa libcamera-tools libcamera-v4l2 libpisp-common libpisp1 linux-headers-rpi-2712 linux-headers-rpi-v8 linux-image-rpi-2712 linux-image-rpi-v8 linux-libc-dev rpicam-apps-lite
2025-02-01 06:16:52,146 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
2025-02-01 06:21:01,118 INFO All upgrades installed
2025-02-01 06:21:48,967 INFO Packages that were successfully auto-removed: libcamera0.3 linux-headers-6.6.51+rpt-common-rpi linux-headers-6.6.51+rpt-rpi-2712 linux-headers-6.6.51+rpt-rpi-v8 linux-image-6.6.51+rpt-rpi-2712 linux-image-6.6.51+rpt-rpi-v8 linux-kbuild-6.6.51+rpt

One of these being upgraded has broken motion... for existing and new installs.

Broken:

root@Camera1:~# cat /var/log/motioneye/motion.log
...
[0:18:16.596202164] [1792]  INFO Camera camera_manager.cpp:327 libcamera v0.4.0+50-83cb8101
...
[0:18:16.640377798] [1793]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media3 and ISP device /dev/media0
motion: ../include/libcamera/controls.h:189: T libcamera::ControlValue::get() const [with T = long int; typename std::enable_if<((! libcamera::details::is_span<U>::value) && (! std::is_same<std::__cxx11::basic_string<char>, typename std::remove_cv< <template-parameter-1-1> >::type>::value)), std::nullptr_t>::type <anonymous> = nullptr]: Assertion `type_ == details::control_type<std::remove_cv_t<T>>::value' failed.

Working camera that I have yet to reboot:

root@Camera2:~# cat /var/log/motioneye/motion.log
...
[0:00:14.471431100] [737]  INFO Camera camera_manager.cpp:325 libcamera v0.3.2+99-1230f78d
...
[0:00:14.529138674] [738]  INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media1 and ISP device /dev/media0
[0:00:14.530150526] [737]  INFO Camera camera.cpp:1197 configuring streams: (0) 1024x768-YUV420
[0:00:14.530506249] [738]  INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA
[0:00:14.531631915] [737]  INFO Camera camera.cpp:1197 configuring streams: (0) 1024x768-YUV420
[0:00:14.531891971] [738]  INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA

Which looks to be due to a failing assertion inside libcamera (https://libcamera.org/api-html/controls_8h_source.html). Note that libcamera has gone from v0.3 to v0.4 - and motion is erroring because of it.

http://archive.raspberrypi.com/debian/dists/bookworm/main/binary-armhf/Packages:

Package: libcamera-tools
Source: libcamera
Version: 0.4.0+rpt20250127-3
Architecture: armhf
Maintainer: Serge Schneider <serge@raspberrypi.com>
Installed-Size: 730
Depends: libc6 (>= 2.34), libcamera0.4 (>= 0.4.0+rpt20250127), libdrm2 (>= 2.4.62), libevent-2.1-7 (>= 2.1.8-stable), libevent-pthreads-2.1-7 (>= 2.1.8-stable), libgcc-s1 (>= 3.5), libjpeg62-turbo (>= 1.3.1), libsdl2-2.0-0 (>= 2.0.16), libstdc++6 (>= 12), libtiff6 (>= 4.5.0~rc1), libyaml-0-2
Multi-Arch: foreign
Homepage: https://libcamera.org/
Priority: optional
Section: video
Filename: pool/main/libc/libcamera/libcamera-tools_0.4.0+rpt20250127-3_armhf.deb
Size: 315076
SHA512: e5fc7bf74042d7a17d06dc6f3d6e62c91695be351508c757cad9140483e26e4115341e47f5df76ffc5a60dd34dad6ca8bdcc7dbd715c3316fc0437e670ec824e
SHA256: a0f1b508e9383cb45c35c2ec9393199d60dd6c5a8323f9723ed52acccee329d3
SHA1: ce27c6f564e32135367caab726d218a967850a89
MD5sum: f179647a5b0b9ba076a0524d2754b319
Description: complex camera support library (tools)
 libcamera is a complex camera support library which handles low-level
 control of the camera devices, providing a unified higher-level
 programming interface to the applications.
 .
 This package provides cam and qcam, libcamera "Swiss army knife" tools.

This should get you back (and block future updates back to 0.4 for libcamera-tools and libcamera-v4l2):

apt-get purge libpisp-common
wget https://archive.raspberrypi.com/debian/pool/main/libp/libpisp/libpisp-common_1.0.7-1_all.deb
wget https://archive.raspberrypi.com/debian/pool/main/libp/libpisp/libpisp1_1.0.7-1_arm64.deb
wget https://archive.raspberrypi.com/debian/pool/main/libc/libcamera/libcamera-ipa_0.3.2+rpt20241119-1_arm64.deb
wget https://archive.raspberrypi.com/debian/pool/main/libc/libcamera/libcamera0.3_0.3.2+rpt20241119-1_arm64.deb
wget https://archive.raspberrypi.com/debian/pool/main/libc/libcamera/libcamera-tools_0.3.2+rpt20241119-1_arm64.deb
wget https://archive.raspberrypi.com/debian/pool/main/libc/libcamera/libcamera-v4l2_0.3.2+rpt20241119-1_arm64.deb
dpkg -i ./libpisp-common_1.0.7-1_all.deb ./libpisp1_1.0.7-1_arm64.deb ./libcamera-ipa_0.3.2+rpt20241119-1_arm64.deb ./libcamera0.3_0.3.2+rpt20241119-1_arm64.deb ./libcamera-tools_0.3.2+rpt20241119-1_arm64.deb ./libcamera-v4l2_0.3.2+rpt20241119-1_arm64.deb
apt-mark hold libpisp-common

rpicam-apps-lite will remain uninstalled (I don't need it).. if you do just need to add the old deb for that too.

@Matthew1471 commented on GitHub (Feb 1, 2025): @delanthear okay, I'm able to reproduce this.. so last night after your message I noticed there was some pending packages to update for libcamera (I auto upgrade every evening).. I let them update overnight.. rebooted the machine today and I also have the no camera message on a previously working install. ``` 2025-02-01 06:16:52,146 INFO Packages that will be upgraded: libcamera-ipa libcamera-tools libcamera-v4l2 libpisp-common libpisp1 linux-headers-rpi-2712 linux-headers-rpi-v8 linux-image-rpi-2712 linux-image-rpi-v8 linux-libc-dev rpicam-apps-lite 2025-02-01 06:16:52,146 INFO Writing dpkg log to /var/log/unattended-upgrades/unattended-upgrades-dpkg.log 2025-02-01 06:21:01,118 INFO All upgrades installed 2025-02-01 06:21:48,967 INFO Packages that were successfully auto-removed: libcamera0.3 linux-headers-6.6.51+rpt-common-rpi linux-headers-6.6.51+rpt-rpi-2712 linux-headers-6.6.51+rpt-rpi-v8 linux-image-6.6.51+rpt-rpi-2712 linux-image-6.6.51+rpt-rpi-v8 linux-kbuild-6.6.51+rpt ``` One of these being upgraded has broken motion... for existing and new installs. Broken: ``` root@Camera1:~# cat /var/log/motioneye/motion.log ... [0:18:16.596202164] [1792] INFO Camera camera_manager.cpp:327 libcamera v0.4.0+50-83cb8101 ... [0:18:16.640377798] [1793] INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media3 and ISP device /dev/media0 motion: ../include/libcamera/controls.h:189: T libcamera::ControlValue::get() const [with T = long int; typename std::enable_if<((! libcamera::details::is_span<U>::value) && (! std::is_same<std::__cxx11::basic_string<char>, typename std::remove_cv< <template-parameter-1-1> >::type>::value)), std::nullptr_t>::type <anonymous> = nullptr]: Assertion `type_ == details::control_type<std::remove_cv_t<T>>::value' failed. ``` Working camera that I have yet to reboot: ``` root@Camera2:~# cat /var/log/motioneye/motion.log ... [0:00:14.471431100] [737] INFO Camera camera_manager.cpp:325 libcamera v0.3.2+99-1230f78d ... [0:00:14.529138674] [738] INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c0mux/i2c@1/imx219@10 to Unicam device /dev/media1 and ISP device /dev/media0 [0:00:14.530150526] [737] INFO Camera camera.cpp:1197 configuring streams: (0) 1024x768-YUV420 [0:00:14.530506249] [738] INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA [0:00:14.531631915] [737] INFO Camera camera.cpp:1197 configuring streams: (0) 1024x768-YUV420 [0:00:14.531891971] [738] INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Selected unicam format: 1640x1232-pBAA ``` Which looks to be due to a failing assertion inside libcamera (https://libcamera.org/api-html/controls_8h_source.html). Note that `libcamera` has gone from v0.3 to v0.4 - and motion is erroring because of it. http://archive.raspberrypi.com/debian/dists/bookworm/main/binary-armhf/Packages: ``` Package: libcamera-tools Source: libcamera Version: 0.4.0+rpt20250127-3 Architecture: armhf Maintainer: Serge Schneider <serge@raspberrypi.com> Installed-Size: 730 Depends: libc6 (>= 2.34), libcamera0.4 (>= 0.4.0+rpt20250127), libdrm2 (>= 2.4.62), libevent-2.1-7 (>= 2.1.8-stable), libevent-pthreads-2.1-7 (>= 2.1.8-stable), libgcc-s1 (>= 3.5), libjpeg62-turbo (>= 1.3.1), libsdl2-2.0-0 (>= 2.0.16), libstdc++6 (>= 12), libtiff6 (>= 4.5.0~rc1), libyaml-0-2 Multi-Arch: foreign Homepage: https://libcamera.org/ Priority: optional Section: video Filename: pool/main/libc/libcamera/libcamera-tools_0.4.0+rpt20250127-3_armhf.deb Size: 315076 SHA512: e5fc7bf74042d7a17d06dc6f3d6e62c91695be351508c757cad9140483e26e4115341e47f5df76ffc5a60dd34dad6ca8bdcc7dbd715c3316fc0437e670ec824e SHA256: a0f1b508e9383cb45c35c2ec9393199d60dd6c5a8323f9723ed52acccee329d3 SHA1: ce27c6f564e32135367caab726d218a967850a89 MD5sum: f179647a5b0b9ba076a0524d2754b319 Description: complex camera support library (tools) libcamera is a complex camera support library which handles low-level control of the camera devices, providing a unified higher-level programming interface to the applications. . This package provides cam and qcam, libcamera "Swiss army knife" tools. ``` This should get you back (and block future updates back to 0.4 for libcamera-tools and libcamera-v4l2): ``` apt-get purge libpisp-common wget https://archive.raspberrypi.com/debian/pool/main/libp/libpisp/libpisp-common_1.0.7-1_all.deb wget https://archive.raspberrypi.com/debian/pool/main/libp/libpisp/libpisp1_1.0.7-1_arm64.deb wget https://archive.raspberrypi.com/debian/pool/main/libc/libcamera/libcamera-ipa_0.3.2+rpt20241119-1_arm64.deb wget https://archive.raspberrypi.com/debian/pool/main/libc/libcamera/libcamera0.3_0.3.2+rpt20241119-1_arm64.deb wget https://archive.raspberrypi.com/debian/pool/main/libc/libcamera/libcamera-tools_0.3.2+rpt20241119-1_arm64.deb wget https://archive.raspberrypi.com/debian/pool/main/libc/libcamera/libcamera-v4l2_0.3.2+rpt20241119-1_arm64.deb dpkg -i ./libpisp-common_1.0.7-1_all.deb ./libpisp1_1.0.7-1_arm64.deb ./libcamera-ipa_0.3.2+rpt20241119-1_arm64.deb ./libcamera0.3_0.3.2+rpt20241119-1_arm64.deb ./libcamera-tools_0.3.2+rpt20241119-1_arm64.deb ./libcamera-v4l2_0.3.2+rpt20241119-1_arm64.deb apt-mark hold libpisp-common ``` `rpicam-apps-lite` will remain uninstalled (I don't need it).. if you do just need to add the old deb for that too.
Author
Owner

@delanthear commented on GitHub (Feb 1, 2025):

Works! :D

@delanthear commented on GitHub (Feb 1, 2025): Works! :D
Author
Owner

@Matthew1471 commented on GitHub (Feb 5, 2025):

More people are having issues with libcamera0.4 and motion and there's now more details here:

https://github.com/raspberrypi/libcamera/issues/235
https://bugs.libcamera.org/show_bug.cgi?id=253

@Matthew1471 commented on GitHub (Feb 5, 2025): More people are having issues with libcamera0.4 and motion and there's now more details here: https://github.com/raspberrypi/libcamera/issues/235 https://bugs.libcamera.org/show_bug.cgi?id=253
Author
Owner

@bit-bash commented on GitHub (Feb 15, 2025):

Using an RPi 5 with RP Camera V3 with bookworm 64bit lite.
Had some issues after following: https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345
Couldn't get the camera to work.
Turns out I actually have to do this line:
# apt-get -y install libcamera-v4l2 libcamera-tools
That is, I uncommented it then my camera works. In the original post, I thought this line was commented out because it was part of the libcamera downgrading process.
I've got the very latest bookworm updates, so I didn't have to downgrade libcamera0.4 - it's now working.

@bit-bash commented on GitHub (Feb 15, 2025): Using an RPi 5 with RP Camera V3 with bookworm 64bit lite. Had some issues after following: https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345 Couldn't get the camera to work. Turns out I actually have to do this line: `# apt-get -y install libcamera-v4l2 libcamera-tools` That is, I uncommented it then my camera works. In the original post, I thought this line was commented out because it was part of the libcamera downgrading process. I've got the very latest bookworm updates, so I didn't have to downgrade libcamera0.4 - it's now working.
Author
Owner

@Matthew1471 commented on GitHub (Feb 17, 2025):

Using an RPi 5 with RP Camera V3 with bookworm 64bit lite. Had some issues after following: #2812 (comment) Couldn't get the camera to work. Turns out I actually have to do this line: # apt-get -y install libcamera-v4l2 libcamera-tools That is, I uncommented it then my camera works. In the original post, I thought this line was commented out because it was part of the libcamera downgrading process. I've got the very latest bookworm updates, so I didn't have to downgrade libcamera0.4 - it's now working.

Yes the workaround is no longer required as they fixed it in the original repo : https://github.com/raspberrypi/libcamera/issues/235#issuecomment-2647863551

I'll remove my workaround from my instructions.

@Matthew1471 commented on GitHub (Feb 17, 2025): > Using an RPi 5 with RP Camera V3 with bookworm 64bit lite. Had some issues after following: [#2812 (comment)](https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345) Couldn't get the camera to work. Turns out I actually have to do this line: `# apt-get -y install libcamera-v4l2 libcamera-tools` That is, I uncommented it then my camera works. In the original post, I thought this line was commented out because it was part of the libcamera downgrading process. I've got the very latest bookworm updates, so I didn't have to downgrade libcamera0.4 - it's now working. Yes the workaround is no longer required as they fixed it in the original repo : https://github.com/raspberrypi/libcamera/issues/235#issuecomment-2647863551 I'll remove my workaround from my instructions.
Author
Owner

@delanthear commented on GitHub (Feb 17, 2025):

Ah great. Is there an easy way to regress the workaround?

On Mon, 17 Feb 2025, 18:56 Matthew, @.***> wrote:

Using an RPi 5 with RP Camera V3 with bookworm 64bit lite. Had some issues
after following: #2812 (comment)
https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345
Couldn't get the camera to work. Turns out I actually have to do this line: #
apt-get -y install libcamera-v4l2 libcamera-tools That is, I uncommented
it then my camera works. In the original post, I thought this line was
commented out because it was part of the libcamera downgrading process.
I've got the very latest bookworm updates, so I didn't have to downgrade
libcamera0.4 - it's now working.

Yes the workaround is no longer required as they fixed it in the original
repo : raspberrypi/libcamera#235 (comment)
https://github.com/raspberrypi/libcamera/issues/235#issuecomment-2647863551


Reply to this email directly, view it on GitHub
https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2663891934,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMLLNJSB2VFUHLTARGIOVL2QIWFZAVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTHA4TCOJTGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>
[image: Matthew1471]Matthew1471 left a comment
(motioneye-project/motioneye#2812)
https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2663891934

Using an RPi 5 with RP Camera V3 with bookworm 64bit lite. Had some issues
after following: #2812 (comment)
https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345
Couldn't get the camera to work. Turns out I actually have to do this line: #
apt-get -y install libcamera-v4l2 libcamera-tools That is, I uncommented
it then my camera works. In the original post, I thought this line was
commented out because it was part of the libcamera downgrading process.
I've got the very latest bookworm updates, so I didn't have to downgrade
libcamera0.4 - it's now working.

Yes the workaround is no longer required as they fixed it in the original
repo : raspberrypi/libcamera#235 (comment)
https://github.com/raspberrypi/libcamera/issues/235#issuecomment-2647863551


Reply to this email directly, view it on GitHub
https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2663891934,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMLLNJSB2VFUHLTARGIOVL2QIWFZAVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTHA4TCOJTGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

@delanthear commented on GitHub (Feb 17, 2025): Ah great. Is there an easy way to regress the workaround? On Mon, 17 Feb 2025, 18:56 Matthew, ***@***.***> wrote: > Using an RPi 5 with RP Camera V3 with bookworm 64bit lite. Had some issues > after following: #2812 (comment) > <https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345> > Couldn't get the camera to work. Turns out I actually have to do this line: # > apt-get -y install libcamera-v4l2 libcamera-tools That is, I uncommented > it then my camera works. In the original post, I thought this line was > commented out because it was part of the libcamera downgrading process. > I've got the very latest bookworm updates, so I didn't have to downgrade > libcamera0.4 - it's now working. > > Yes the workaround is no longer required as they fixed it in the original > repo : raspberrypi/libcamera#235 (comment) > <https://github.com/raspberrypi/libcamera/issues/235#issuecomment-2647863551> > > — > Reply to this email directly, view it on GitHub > <https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2663891934>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAMLLNJSB2VFUHLTARGIOVL2QIWFZAVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTHA4TCOJTGQ> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> > [image: Matthew1471]*Matthew1471* left a comment > (motioneye-project/motioneye#2812) > <https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2663891934> > > Using an RPi 5 with RP Camera V3 with bookworm 64bit lite. Had some issues > after following: #2812 (comment) > <https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345> > Couldn't get the camera to work. Turns out I actually have to do this line: # > apt-get -y install libcamera-v4l2 libcamera-tools That is, I uncommented > it then my camera works. In the original post, I thought this line was > commented out because it was part of the libcamera downgrading process. > I've got the very latest bookworm updates, so I didn't have to downgrade > libcamera0.4 - it's now working. > > Yes the workaround is no longer required as they fixed it in the original > repo : raspberrypi/libcamera#235 (comment) > <https://github.com/raspberrypi/libcamera/issues/235#issuecomment-2647863551> > > — > Reply to this email directly, view it on GitHub > <https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2663891934>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAMLLNJSB2VFUHLTARGIOVL2QIWFZAVCNFSM6AAAAAA3ZWWI7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRTHA4TCOJTGQ> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Author
Owner

@Rudios81 commented on GitHub (Feb 21, 2025):

I have been trying and debugging the Motioneye over the last 2 days, started to give up just when I stumbled on this thread.
In the end, I had to alter the motioneye.service file as indicated by @pingufreak making use of libcamerify
For some reason, it did not work when using the motion_binary declaration in the motioneye.conf file, neihter did the trick from some other thread, creating a motion.sh in my user home folder trying to start motion using libcamerify.

So altering the motioneye.service file by including libcamerify made my setu work!
RaspberryPI 4B+
RaspberryPI cam 3

@Rudios81 commented on GitHub (Feb 21, 2025): I have been trying and debugging the Motioneye over the last 2 days, started to give up just when I stumbled on this thread. In the end, I had to alter the motioneye.service file as indicated by @pingufreak making use of libcamerify For some reason, it did not work when using the motion_binary declaration in the motioneye.conf file, neihter did the trick from some other thread, creating a motion.sh in my user home folder trying to start motion using libcamerify. So altering the motioneye.service file by including libcamerify made my setu work! RaspberryPI 4B+ RaspberryPI cam 3
Author
Owner

@Matthew1471 commented on GitHub (Feb 21, 2025):

I have been trying and debugging the Motioneye over the last 2 days, started to give up just when I stumbled on this thread. In the end, I had to alter the motioneye.service file as indicated by @pingufreak making use of libcamerify For some reason, it did not work when using the motion_binary declaration in the motioneye.conf file, neihter did the trick from some other thread, creating a motion.sh in my user home folder trying to start motion using libcamerify.

So altering the motioneye.service file by including libcamerify made my setu work! RaspberryPI 4B+ RaspberryPI cam 3

That's what sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service does in my instructions.. you may wish to check the other tweaks as there's a few other things to get things like Wi-Fi stable: https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345

@Matthew1471 commented on GitHub (Feb 21, 2025): > I have been trying and debugging the Motioneye over the last 2 days, started to give up just when I stumbled on this thread. In the end, I had to alter the motioneye.service file as indicated by [@pingufreak](https://github.com/pingufreak) making use of libcamerify For some reason, it did not work when using the motion_binary declaration in the motioneye.conf file, neihter did the trick from some other thread, creating a motion.sh in my user home folder trying to start motion using libcamerify. > > So altering the motioneye.service file by including libcamerify made my setu work! RaspberryPI 4B+ RaspberryPI cam 3 That's what ```sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service``` does in my instructions.. you may wish to check the other tweaks as there's a few other things to get things like Wi-Fi stable: https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345
Author
Owner

@Rudios81 commented on GitHub (Feb 21, 2025):

I have been trying and debugging the Motioneye over the last 2 days, started to give up just when I stumbled on this thread. In the end, I had to alter the motioneye.service file as indicated by @pingufreak making use of libcamerify For some reason, it did not work when using the motion_binary declaration in the motioneye.conf file, neihter did the trick from some other thread, creating a motion.sh in my user home folder trying to start motion using libcamerify.
So altering the motioneye.service file by including libcamerify made my setu work! RaspberryPI 4B+ RaspberryPI cam 3

That's what sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service does in my instructions.. you may wish to check the other tweaks as there's a few other things to get things like Wi-Fi stable: #2812 (comment)

That are indeed the changes I made.
I am working with a wired RPI4, so no wireless issues there.
On the other hand, been banging my head for 2 days now to get my new PI Zero 2W connected without any lick, maybe these tweaks are helpful for that, I'll take a look, thanks for suggesting.

@Rudios81 commented on GitHub (Feb 21, 2025): > > I have been trying and debugging the Motioneye over the last 2 days, started to give up just when I stumbled on this thread. In the end, I had to alter the motioneye.service file as indicated by [@pingufreak](https://github.com/pingufreak) making use of libcamerify For some reason, it did not work when using the motion_binary declaration in the motioneye.conf file, neihter did the trick from some other thread, creating a motion.sh in my user home folder trying to start motion using libcamerify. > > So altering the motioneye.service file by including libcamerify made my setu work! RaspberryPI 4B+ RaspberryPI cam 3 > > That's what `sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service` does in my instructions.. you may wish to check the other tweaks as there's a few other things to get things like Wi-Fi stable: [#2812 (comment)](https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345) That are indeed the changes I made. I am working with a wired RPI4, so no wireless issues there. On the other hand, been banging my head for 2 days now to get my new PI Zero 2W connected without any lick, maybe these tweaks are helpful for that, I'll take a look, thanks for suggesting.
Author
Owner

@Matthew1471 commented on GitHub (Feb 21, 2025):

That are indeed the changes I made. I am working with a wired RPI4, so no wireless issues there. On the other hand, been banging my head for 2 days now to get my new PI Zero 2W connected without any lick, maybe these tweaks are helpful for that, I'll take a look, thanks for suggesting.

Don't run the 5 GHz only command on the Pi Zero 2W.. it does not support 5 GHz and you'll just get yourself disconnected (which if you're running headless is pretty annoying).. I use a lot of Pi4s just for the 5 GHz because I am running MotionEye as remote cameras and then having a central point. The reliability of 2.4 GHz for anything more than IOT is pretty bad these days given the congestion and interference on it.

If you had issues past few days make sure you do an apt-get update and apt-get dist-upgrade as there was a dodgy libcamera issue that has since been fixed but depending on when you installed you may still have the bad version.

The Fix motioneye dependencies section uses the versions available in the Pi OS Debian repo rather than on pip as it's recommended to let package managers take care of system packages and only use pip for virtual environments.. the override pip limitation proposed is to turn off that restriction (motioneye is itself a pip package that isn't in the debian repo) but my preference is always to do the right thing as much as possible and break it in limited and specific ways.

@Matthew1471 commented on GitHub (Feb 21, 2025): > That are indeed the changes I made. I am working with a wired RPI4, so no wireless issues there. On the other hand, been banging my head for 2 days now to get my new PI Zero 2W connected without any lick, maybe these tweaks are helpful for that, I'll take a look, thanks for suggesting. Don't run the 5 GHz only command on the Pi Zero 2W.. it does not support 5 GHz and you'll just get yourself disconnected (which if you're running headless is pretty annoying).. I use a lot of Pi4s just for the 5 GHz because I am running MotionEye as remote cameras and then having a central point. The reliability of 2.4 GHz for anything more than IOT is pretty bad these days given the congestion and interference on it. If you had issues past few days make sure you do an ```apt-get update``` and ```apt-get dist-upgrade``` as there was a dodgy libcamera issue that has since been fixed but depending on when you installed you may still have the bad version. The ```Fix motioneye dependencies``` section uses the versions available in the Pi OS Debian repo rather than on ```pip``` as it's recommended to let package managers take care of system packages and only use pip for virtual environments.. the override pip limitation proposed is to turn off that restriction (```motioneye``` is itself a pip package that isn't in the debian repo) but my preference is always to do the right thing as much as possible and break it in limited and specific ways.
Author
Owner

@Matthew1471 commented on GitHub (Feb 21, 2025):

Ah great. Is there an easy way to regress the workaround?

Sorry @delanthear for not replying sooner.. it's a one-liner to revert the hold we placed on a dependency being allowed to update:

apt-mark unhold libpisp-common

This tells apt-get that the dependency libpisp-common is allowed to update again and so everything else that wants updates that depends on that also being updated should then also update.

Then assuming you'd like to update to all the new things:

apt-get update
apt-get dist-upgrade
@Matthew1471 commented on GitHub (Feb 21, 2025): > Ah great. Is there an easy way to regress the workaround? Sorry @delanthear for not replying sooner.. it's a one-liner to revert the ```hold``` we placed on a dependency being allowed to update: ```apt-mark unhold libpisp-common``` This tells ```apt-get``` that the dependency ```libpisp-common``` is allowed to update again and so everything else that wants updates that depends on that also being updated should then also update. Then assuming you'd like to update to all the new things: ``` apt-get update apt-get dist-upgrade ```
Author
Owner

@DifferentComputers commented on GitHub (May 30, 2025):

I have been trying and debugging the Motioneye over the last 2 days, started to give up just when I stumbled on this thread. In the end, I had to alter the motioneye.service file as indicated by @pingufreak making use of libcamerify For some reason, it did not work when using the motion_binary declaration in the motioneye.conf file, neihter did the trick from some other thread, creating a motion.sh in my user home folder trying to start motion using libcamerify.
So altering the motioneye.service file by including libcamerify made my setu work! RaspberryPI 4B+ RaspberryPI cam 3

That's what sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service does in my instructions.. you may wish to check the other tweaks as there's a few other things to get things like Wi-Fi stable: #2812 (comment)

Just want to chime in here to say that after literally days of trying to get an ArduCam 8mp IMX219 working with MotionEye on Raspberry Pi OS lite, this command finally did the trick. Thank you!

Just for the search engines:
Linux Dash 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux

[0:12:48.209860306] [2125] INFO Camera camera.cpp:1205 configuring streams: (0) 1640x1232-YUV420 (1) 1640x1232-SBGGR10_CSI2P
[0:12:48.210591034] [2128] INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Sel

@DifferentComputers commented on GitHub (May 30, 2025): > > I have been trying and debugging the Motioneye over the last 2 days, started to give up just when I stumbled on this thread. In the end, I had to alter the motioneye.service file as indicated by [@pingufreak](https://github.com/pingufreak) making use of libcamerify For some reason, it did not work when using the motion_binary declaration in the motioneye.conf file, neihter did the trick from some other thread, creating a motion.sh in my user home folder trying to start motion using libcamerify. > > So altering the motioneye.service file by including libcamerify made my setu work! RaspberryPI 4B+ RaspberryPI cam 3 > > That's what `sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service` does in my instructions.. you may wish to check the other tweaks as there's a few other things to get things like Wi-Fi stable: [#2812 (comment)](https://github.com/motioneye-project/motioneye/issues/2812#issuecomment-2506840345) Just want to chime in here to say that after literally days of trying to get an ArduCam 8mp IMX219 working with MotionEye on Raspberry Pi OS lite, this command finally did the trick. Thank you! Just for the search engines: Linux Dash 6.12.25+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30) aarch64 GNU/Linux [0:12:48.209860306] [2125] INFO Camera camera.cpp:1205 configuring streams: (0) 1640x1232-YUV420 (1) 1640x1232-SBGGR10_CSI2P [0:12:48.210591034] [2128] INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1/imx219@10 - Selected sensor format: 1640x1232-SBGGR10_1X10 - Sel
Author
Owner

@houserockr commented on GitHub (Jul 28, 2025):

Hello Bello 🐶,

working with Debian Bookworm with current patchlevel:

apt update 
apt upgrade -y
python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'
apt install -y libcamera-v4l2
sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service
systemctl daemon-reload
systemctl enable motioneye --now

In motionEye add the first camera.

Example: Local V4L2 Camera /base/soc/.../.../ov5647...

Please update the wiki, I can't do a pull-request on it 🙈 🙉 🙊:

Install on Debian 12 (Bookworm)

Greetings from Trier (Germany)

7 Edits 😀

Have a nice day!

pingufreak

This works like a charm! Thank you so much!!!
All it took was to start meyectl through libcamerify, unbelievable!

Question tho:
I cannot change the resolution of my ov5647 camera from within the motioneye UI.
I mean, I can, but the picture will have the same resolution and motioneye just crops it weirdly.
Is there any way to pass arguments like --width and --height from motioneye to whatever is called from libcamera?

@houserockr commented on GitHub (Jul 28, 2025): > Hello Bello 🐶, > > working with Debian Bookworm with current patchlevel: > > ``` > apt update > apt upgrade -y > python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz' > apt install -y libcamera-v4l2 > sed -i 's/\/usr\/local\/bin\/meyectl/\/usr\/bin\/libcamerify \/usr\/local\/bin\/meyectl/' /etc/systemd/system/motioneye.service > systemctl daemon-reload > systemctl enable motioneye --now > ``` > > In motionEye add the first camera. > > Example: Local V4L2 Camera /base/soc/.../.../ov5647... > > Please update the wiki, I can't do a pull-request on it 🙈 🙉 🙊: > > [Install on Debian 12 (Bookworm)](https://github.com/motioneye-project/motioneye/wiki/Install-on-Debian-12-(Bookworm)) > > Greetings from Trier (Germany) > > 7 Edits 😀 > > Have a nice day! > > pingufreak This works like a charm! Thank you so much!!! All it took was to start `meyectl` through `libcamerify`, unbelievable! Question tho: I cannot change the resolution of my ov5647 camera from within the motioneye UI. I mean, I can, but the picture will have the same resolution and motioneye just crops it weirdly. Is there any way to pass arguments like `--width` and `--height` from motioneye to whatever is called from libcamera?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/motioneye#2429
No description provided.