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.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to