Since I updated from version 4.3.2 to 4.5.1 I'm getting the error "ffmpeg_set_outputfile: Permission denied" #1762
Replies: 9 comments 2 replies
-
how do you start motion? |
Beta Was this translation helpful? Give feedback.
-
I usually use systemctl start/stop motion or service motion start/stop but I also used the motion command. I thought systemctl stop would stop motion but the ps command says other motion instances are still running. Let me stop them and try again. /mnt/element/ is the directory I normally use. workdir is presently /var/lib/motion/ as shown in the log above. |
Beta Was this translation helpful? Give feedback.
-
So far motion does not detect any movement. It's definitely not normal. The last line in the log is "netcam_rtsp_connect: norm: Camera source is 10 FPS" |
Beta Was this translation helpful? Give feedback.
-
Kill all running motions, verify it is not running using ps, comment out logging in your config, then run "motion -c myconfig.conf -d 9 -n" and copy here the output from the console |
Beta Was this translation helpful? Give feedback.
-
To edit my last comment, there are videos that were written in /var/lib/motion/ when I was not looking, so at least I know it can work. Right now I have reverted to my original /mnt/element/ workdir. As you can see, nothing was captured while a lot of movement happened. [0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion/motion.conf |
Beta Was this translation helpful? Give feedback.
-
I forgot to mention the upgrade from 4.3.2 to 4.5.1 happened when I upgraded my distribution from bullseye to bookworm. |
Beta Was this translation helpful? Give feedback.
-
I managed to trigger a capture by moving my hand right in front of the camera. Now the time appears twice in the saved video. Why? The new time overlay located in the upper left corner has "precap" and "postcap" underneath it and "trigger" alternatively when there is movement. The permission issue is resolved. Now it's just a matter of understanding why my previous settings don't work anymore and removing the second time overlay. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
If there is really no way to get rid of this superfluous time overlay that appears by default, I am requesting that this behaviour be removed in the next version. |
Beta Was this translation helpful? Give feedback.
-
Did you read the guide?
Yes
What is the base version number of Motion being used?
4.5.x
What was the install method?
Installed via package tool
What is base architecture?
ARM-64bit
What is the distro being used?
Raspbian
Disto version number
Bookworm
Camera type(s) being used?
Network camera with RTSP
Describe the issue/problem and steps to reproduce
Since I updated from version 4.3.2 to 4.5.1 I'm getting the error "ffmpeg_set_outputfile: Permission denied" .
Motion is running as the user motion (as shown by the command
sudo ps -U motion -u motion u
) and motion has ownership and full permission of the target_dir. I even tried with motion's own home directory: /var/lib/motionA secondary problem is that movement is almost never triggered, even with threshold 300 instead of 3000.
Looking at the logs I notice motion attempts to save videos in /mnt/element/ instead of /var/lib/motion/.
Motion log output at log_level 8
Beta Was this translation helpful? Give feedback.
All reactions