IP Camera Binding: Foscam VD1 recordMP4

Hello all,

openHAB 3.3.0 on Raspberry Pi 4

I would like to use the function recordGIF / recordMP4.

actions.Things.getActions('ipcamera', 'ipcamera:foscam:DoorbellFoscam').recordGIF(timeStamp, 3);
actions.Things.getActions('ipcamera', 'ipcamera:foscam:DoorbellFoscam').recordMP4(timeStamp, 3);

recordGIF works also so far.

2022-08-03 08:52:52.850 [DEBUG] [ng.ipcamera.internal.IpCameraActions] - Recording 20228385252.gif for 3 seconds.
2022-08-03 08:52:52.852 [DEBUG] [hab.binding.ipcamera.internal.Ffmpeg] - Starting ffmpeg with this command now:-y -t 3 -hide_banner -loglevel warning -rtsp_transport tcp -i rtsp://openHAB:********@192.168.53.57:88/videoMain -r 2 -filter_complex scale=-2:360:flags=lanczos,setpts=0.5*PTS,split[o1][o2];[o1]palettegen[p];[o2]fifo[o3];[o3][p]paletteuse /etc/openhab/html/doorbell/20228385252.gif
2022-08-03 08:52:55.446 [DEBUG] [hab.binding.ipcamera.internal.Ffmpeg] - Guessed Channel Layout for Input Stream #0.1 : mono
2022-08-03 08:53:00.564 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://192.168.53.57:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=user&pwd=password

recordMP4 creates a file but with the size 0 byte. The log out put looks like this. Unfortunately I can’t really do anything with the info.

2022-08-03 08:51:59.528 [DEBUG] [ng.ipcamera.internal.IpCameraActions] - Recording 20228385159.mp4 for 3 seconds.
2022-08-03 08:51:59.530 [DEBUG] [hab.binding.ipcamera.internal.Ffmpeg] - Starting ffmpeg with this command now:-y -t 3 -hide_banner -loglevel warning -rtsp_transport tcp -i rtsp://openHAB:********@192.168.53.57:88/videoMain -c:v copy -c:a copy /etc/openhab/html/doorbell/20228385159.mp4
2022-08-03 08:52:01.781 [DEBUG] [hab.binding.ipcamera.internal.Ffmpeg] - Guessed Channel Layout for Input Stream #0.1 : mono
2022-08-03 08:52:01.783 [DEBUG] [hab.binding.ipcamera.internal.Ffmpeg] - [mp4 @ 0xafeaf0] Could not find tag for codec pcm_mulaw in stream #1, codec not currently supported in container
2022-08-03 08:52:01.784 [DEBUG] [hab.binding.ipcamera.internal.Ffmpeg] - Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
2022-08-03 08:52:01.786 [DEBUG] [hab.binding.ipcamera.internal.Ffmpeg] - 
2022-08-03 08:52:04.559 [TRACE] [era.internal.handler.IpCameraHandler] - Sending camera: GET: http://192.168.53.57:88/cgi-bin/CGIProxy.fcgi?cmd=getDevState&usr=user&pwd=password

I found this entry but unfortunately there is no answer/solution.

Greetings Holger

2 Likes