How to extract jpegs from a video file using ffmpeg
- by Andrew Simpson
I am using C# and ffmpeg.
In this scenario I have 279 individual jpegs and i have used ffmpeg to create a AVI file from these images on my client.
CMD Line:
-f image2 -r 10 -i "C:\000EC902F17F\img%05d.jpg" -s 352x288 -y "C:\1\test.avi"
I then upload to my server.
CMD Line:
-i c:\1\1.avi c:\1\img-%05d.jpg
I then extract jpegs from the AVI file. I get 265 jpegs back.
Obviously ffmpeg is dropping these frames (most probable) when the avi is 1st created. Is there a way to 'force' to encode using ALL the images I have?
Thanks.
PS
I did not specify any command line option other than the size of the video output. As far as I am aware if none are specified then ffmpeg automatically chooses the best ones?