IP Camera Binding Recording Issue

Hi Guys,

i got an issue with the recording of the IP Camera Binding.
I trigger an motion event to record 20 Sec of the RTSP Stream but the File is not created or updated:

2023-02-18 17:33:12.577 [DEBUG] [ng.ipcamera.internal.IpCameraActions] - Recording hauseingang.mp4 for 20 seconds.

2023-02-18 17:33:12.577 [DEBUG] [hab.binding.ipcamera.internal.Ffmpeg] - Starting ffmpeg with this command now:-y -t 20 -hide_banner -loglevel warning -rtsp_transport tcp -i rtsp://admin:********@192.168.101.215:554/user=admin&password=********&channel=1&stream=0.sdp?real_stream--rtp-caching=500 -c:v copy -c:a copy /var/lib/openhab/ipcamera/5590f48d61/hauseingang.mp4

So i have checked the File and the Timestamp is an old one:

**/var/lib/openhab/ipcamera/5590f48d61# ls -lias
total 1892
395035    4 drwxrwxr-x 2 openhab openhab    4096 Feb 15 14:37 .
394955    4 drwxrwxr-x 5 openhab openhab    4096 Feb 18 17:34 ..
394316 1884 -rw-r--r-- 1 openhab openhab 1928177 Feb 18 12:19 hauseingang.mp4
**

i have Set debug to trace to see more details:

2023-02-20 12:34:23.644 [DEBUG] [ng.ipcamera.internal.IpCameraActions] - Recording hauseingang.mp4 for 20 seconds.

2023-02-20 12:34:23.645 [DEBUG] [hab.binding.ipcamera.internal.Ffmpeg] - Starting ffmpeg with this command now:-y -t 20 -hide_banner -loglevel warning -rtsp_transport tcp -i rtsp://192.168.101.215:554/user=admin&password=pass&channel=1&stream=0.sdp?real_stream--rtp-caching=500 -c:v copy -c:a copy /var/lib/openhab/ipcamera/5590f48d61/hauseingang.mp4

2023-02-20 12:34:23.794 [TRACE] [hab.binding.ipcamera.internal.Ffmpeg] - rtsp://192.168.101.215:554/user=admin&password=pass&channel=1&stream=0.sdp?real_stream--rtp-caching=500: Operation not permitted

So it seems the Recording has some issues. Any Help would be nice.
Best Regards
Simon

i found out if i made changes to the THING it works for several times and then it is not working.
Has someone any Idea?

Try putting ffmpeg Operation not permitted into Google and see what comes up. It is a ffmpeg issue / camera not allowing the stream to be opened / drive access issue type of thing going on is my guess.

i checked google but did not find any solution, so the file is created but its empty^^
I dont know why. permission etc checked looks good to me.

Simon