[FFmpeg-user] command for taking pictures at second 1, 15 ,30?

Moritz Barsnick barsnick at gmx.net
Sat May 25 03:12:15 EEST 2019


On Fri, May 24, 2019 at 20:47:54 +0000, erwin mueller via ffmpeg-user wrote:
> ['ffmpeg', '-i', 'http://192.168.100.111:9000/?action=stream', '-f', 'image2', '-vf', 'fps=1', '"/home/pi/cam/image003.jpg"', '-f', 'image2', '-vf', 'fps=1/15', '"/home/pi/img%03d.jpg"', '-vcodec', 'copy', '-an', '-bufsize', '2048k', '-t', '00:00:30', '-y', '/home/pi/cam/Klingel-20190524_224626.mp4']

I don't know what the calling script language is, but I'm sure you're
using too many quotation marks.

'"/home/pi/cam/image003.jpg"'
should be
'/home/pi/cam/image003.jpg'

otherwise the '"' becomes part of the file name, as ffmpeg tells us here:

> Output #0, image2, to '"/home/pi/cam/image003.jpg"':
[...]
> Output #1, image2, to '"/home/pi/img%03d.jpg"':

Moritz


More information about the ffmpeg-user mailing list