I am new with ffmpeg and this forum. My project is a door bell with a camera and every thime asomeone is pressing the ring cam is starting and ffmpeg should record 30 sec to mp4 and in parallel I want to save three pictures at 1,15 and 30 seconds.
cam starting is working.
picture taking works but not only three
a mp4 stream is recorderd but it is a kind of timelap. and running only for 7 seconds instead of 30.
This is my ffmpeg command and I would really appreciate any help.
Thanks a lot
Code: Select all
ffmpeg -i "http://192.168.100.111:9000/?action=stream" -f image2 -vf fps=1 /home/pi/cam/image%03d.jpg -f image2 -vf fps=1/15 /home/pi/img%03d.jpg -vcodec copy -an -bufsize 2048k -t 00:00:30 -y