[FFmpeg-user] Output image sequence duplicate first image
Mark Filipak
markfilipak.windows+ffmpeg at gmail.com
Tue Apr 21 01:10:33 EEST 2020
Hi, Adam,
On 04/20/2020 10:28 AM, adam smith via ffmpeg-user wrote:
> Hi you lovely people,
>
> I am trying to output a sequence of jpeg images from a video file. The command does indeed output a sequence of images, but the first and second are always duplicates, while the rest run in sequence until the maximum is reached or the file runs out.
> I am not sure what I have done wrong. I thought I have asked for -r 10/60 so 10 a minute regardless of frame rate.
>
> Any ideas how to stop the duplicate being created?
> Thanks in advance
>
> Here is my full terminal…
>
> /usr/src/app # ffmpeg -y -i /data/vod-storage-dev/source/testfile.mxf -r 20/60 -s 283x159 -frames:v 10 -pix_fmt yuvj420p -c:v mjpeg /data/vod-storage-dev/temp_out/1cq8tq69tkumv1es0zxeb0ty4qa_%03d.jpeg
May I suggest the following workaround?
Remove the 1st (duplicate) frame with a select filter:
ffmpeg -y -i /data/vod-storage-dev/source/testfile.mxf -vf select='not(eq(n\,0))' -r 20/60 -s
283x159 -frames:v 10 -pix_fmt yuvj420p -c:v mjpeg
/data/vod-storage-dev/temp_out/1cq8tq69tkumv1es0zxeb0ty4qa_%03d.jpeg
Untested.
More information about the ffmpeg-user
mailing list