[FFmpeg-user] command for taking pictures at second 1, 15 ,30?
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sat May 25 01:24:34 EEST 2019
Am Fr., 24. Mai 2019 um 22:48 Uhr schrieb erwin mueller via
ffmpeg-user <ffmpeg-user at ffmpeg.org>:
>
> Even if I am doing this:
> ['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']
> MJPG Streamer Version: svn rev: 3:172M
> i: Using V4L2 device.: /dev/video0
Is there a reason why you are not using ffmpeg to read from v4l2?
> i: Desired Resolution: 1024 x 768
> i: Frames Per Second.: 24
> i: Format............: YUV
> i: JPEG Quality......: 80
> ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
Please understand that on this mailing list , only current FFmpeg git head
is supported.
> built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
> configuration:
> libavutil 56. 22.100 / 56. 22.100
> libavcodec 58. 35.100 / 58. 35.100
> libavformat 58. 20.100 / 58. 20.100
> libavdevice 58. 5.100 / 58. 5.100
> libavfilter 7. 40.101 / 7. 40.101
> libswscale 5. 3.100 / 5. 3.100
> libswresample 3. 3.100 / 3. 3.100
> o: www-folder-path...: /usr/local/www/
> o: HTTP TCP port.....: 9000
> o: username:password.: disabled
> o: commands..........: disabled
> [mjpeg @ 0x1b34f30] EOI missing, emulating
> Input #0, mpjpeg, from 'http://192.168.100.111:9000/?action=stream':
> Duration: N/A, bitrate: N/A
> Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1024x768 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
> Output #2, mp4, to '/home/pi/cam/Klingel-20190524_224626.mp4':
> Metadata:
> encoder : Lavf58.20.100
> Stream #2:0: Video: mjpeg (mp4v / 0x7634706D), yuvj420p(pc, bt470bg/unknown/unknown), 1024x768 [SAR 1:1 DAR 4:3], q=2-31, 25 tbr, 12800 tbn, 25 tbc
> Stream mapping:
> Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native))
> Stream #0:0 -> #1:0 (mjpeg (native) -> mjpeg (native))
> Stream #0:0 -> #2:0 (copy)
> Press [q] to stop, [?] for help
> Output #0, image2, to '"/home/pi/cam/image003.jpg"':
> Metadata:
> encoder : Lavf58.20.100
> Stream #0:0: Video: mjpeg, yuvj420p(pc), 1024x768 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
> Metadata:
> encoder : Lavc58.35.100 mjpeg
> Side data:
> cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
> Output #1, image2, to '"/home/pi/img%03d.jpg"':
> Metadata:
> encoder : Lavf58.20.100
> Stream #1:0: Video: mjpeg, yuvj420p(pc), 1024x768 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 0.07 fps, 0.07 tbn, 0.07 tbc
> Metadata:
> encoder : Lavc58.35.100 mjpeg
> Side data:
> cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
> [image2 @ 0x1b2c6a0] Could not open file : "/home/pi/cam/image003.jpg"te=N/A speed=0.255x
> av_interleaved_write_frame(): Input/output error
Did you test outputting into the current directory?
Is there a directory /home/pi/cam and is the ffmpeg project allowed to
write there?
Please find out what top-posting means and avoid it here, Carl Eugen
More information about the ffmpeg-user
mailing list