Videos are not saved, neither with motion detection nor normal recording #2390

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

Originally created by @backupandforkacc on GitHub (May 12, 2023).

The settings seem ok. I can see the stream online, but no video is saved. Neither in the file on the filesystem nor through the explorer in the frontend of motioneye I can see any recorded videos. I can see the pictures when setting to normal recording, but not with motion detection. The motion detection also triggers, at least I get messages via telegram.

grafik
grafik

camera-1.conf.txt
motion.conf.txt
motioneye.conf.txt

Originally created by @backupandforkacc on GitHub (May 12, 2023). The settings seem ok. I can see the stream online, but no video is saved. Neither in the file on the filesystem nor through the explorer in the frontend of motioneye I can see any recorded videos. I can see the pictures when setting to normal recording, but not with motion detection. The motion detection also triggers, at least I get messages via telegram. ![grafik](https://github.com/motioneye-project/motioneye/assets/1709199/716240f2-2375-490a-9f1d-70c58c56ec95) ![grafik](https://github.com/motioneye-project/motioneye/assets/1709199/513f9d1e-89e6-4840-844b-59e3e29e8266) [camera-1.conf.txt](https://github.com/motioneye-project/motioneye/files/11467075/camera-1.conf.txt) [motion.conf.txt](https://github.com/motioneye-project/motioneye/files/11467076/motion.conf.txt) [motioneye.conf.txt](https://github.com/motioneye-project/motioneye/files/11467077/motioneye.conf.txt)
Author
Owner

@MarcelCoding commented on GitHub (May 13, 2023):

I can confirm, since I switched to the edge docker tag (a month ago), videos aren't getting saved anymore.

@MarcelCoding commented on GitHub (May 13, 2023): I can confirm, since I switched to the `edge` docker tag (a month ago), videos aren't getting saved anymore.
Author
Owner

@MichaIng commented on GitHub (May 13, 2023):

Thanks for reporting. Is the container reporting any errors messages? I think with plain motionEye installed via pip it works 🤔.

@MichaIng commented on GitHub (May 13, 2023): Thanks for reporting. Is the container reporting any errors messages? I think with plain motionEye installed via `pip` it works 🤔.
Author
Owner

@backupandforkacc commented on GitHub (May 13, 2023):

Sorry, I now indeed have some error, which I have not detected yesterday:

/var/log/motioneye/motion.log shows

[1:ml1:IMOU] [ERR] [ENC] ffmpeg_set_codec: Could not open codec Encoder not found
[1:ml1:IMOU] [ERR] [ENC] ffmpeg_open: Failed to allocate codec!
[1:ml1:IMOU] [ERR] [EVT] event_ffmpeg_newfile: Error opening context for movie output.

Also ffmpeg seems to be ok

 ffmpeg -v
ffmpeg version 4.3.6-0+deb11u1 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
@backupandforkacc commented on GitHub (May 13, 2023): Sorry, I now indeed have some error, which I have not detected yesterday: /var/log/motioneye/motion.log shows ``` [1:ml1:IMOU] [ERR] [ENC] ffmpeg_set_codec: Could not open codec Encoder not found [1:ml1:IMOU] [ERR] [ENC] ffmpeg_open: Failed to allocate codec! [1:ml1:IMOU] [ERR] [EVT] event_ffmpeg_newfile: Error opening context for movie output. ``` Also ffmpeg seems to be ok ``` ffmpeg -v ffmpeg version 4.3.6-0+deb11u1 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 10 (Debian 10.2.1-6) ```
Author
Owner

@backupandforkacc commented on GitHub (May 14, 2023):

I just installed from scratch as explained here
and still get the error:


[1:ml1:Camera1] [ERR] [ENC] ffmpeg_set_codec: Could not open codec Encoder not found
[1:ml1:Camera1] [ERR] [ENC] ffmpeg_open: Failed to allocate codec!
[1:ml1:Camera1] [ERR] [EVT] event_ffmpeg_newfile: Error opening context for movie output.
#  apt-get install motion ffmpeg v4l-utils -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
motion is already the newest version (4.3.2-1).
v4l-utils is already the newest version (1.20.0-2).
ffmpeg is already the newest version (7:4.3.6-0+deb11u1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
@backupandforkacc commented on GitHub (May 14, 2023): I just installed from scratch as [explained here](https://github.com/motioneye-project/motioneye/wiki/Install-on-Debian-11-(Bullseye)) and still get the error: ``` [1:ml1:Camera1] [ERR] [ENC] ffmpeg_set_codec: Could not open codec Encoder not found [1:ml1:Camera1] [ERR] [ENC] ffmpeg_open: Failed to allocate codec! [1:ml1:Camera1] [ERR] [EVT] event_ffmpeg_newfile: Error opening context for movie output. ``` ``` # apt-get install motion ffmpeg v4l-utils -y Reading package lists... Done Building dependency tree... Done Reading state information... Done motion is already the newest version (4.3.2-1). v4l-utils is already the newest version (1.20.0-2). ffmpeg is already the newest version (7:4.3.6-0+deb11u1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ```
Author
Owner

@MarcelCoding commented on GitHub (May 15, 2023):

Switching the codec from OMX to V4L made the message in the motion log diapering.
I'll keep you updated if videos are being reported again.

image

@MarcelCoding commented on GitHub (May 15, 2023): Switching the codec from OMX to V4L made the message in the motion log diapering. I'll keep you updated if videos are being reported again. ![image](https://github.com/motioneye-project/motioneye/assets/34819524/cd805f95-4b12-4122-8387-5867cad72865)
Author
Owner

@MichaIng commented on GitHub (May 18, 2023):

Ah that makes perfectly sense. Since Bullseye, on RPi by default the KMS video driver is used, which does not support OpenMAX. We need to change the default at best, also because OpenMAX really is an RPi thing only and now even deprecated.

@MichaIng commented on GitHub (May 18, 2023): Ah that makes perfectly sense. Since Bullseye, on RPi by default the KMS video driver is used, which does not support OpenMAX. We need to change the default at best, also because OpenMAX really is an RPi thing only and now even deprecated.
Author
Owner

@MarcelCoding commented on GitHub (May 18, 2023):

Today I got it working using mp4 without omx.

@MarcelCoding commented on GitHub (May 18, 2023): Today I got it working using mp4 without omx.
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#2390
No description provided.