View Single Post
  #2  
Old July 10th 19, 08:41 PM posted to microsoft.public.windowsxp.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Convert a 1280x725 MP4 video to a few dozen jpeg files?

BillAhearn wrote:
How can I convert a 1280x725 MP4 video to a few dozen jpeg files?


With FFMPEG.

I keep sample commands in my notes file.

The "Q V 1" thing is the Quality setting, intended to keep sharpness.
The format of the filename is "printf-specification-like". The file
number %05d increments for each picture written out.

cd output-folder # also contains input movie

D:\FFMPEG\bin\ffmpeg -i L:\some.MOV -f image2 -q:v 1 -c:v mjpeg a%05d.jpg

C:\FFMPEG\bin\ffmpeg -i L:\bears.mp4 -f image2 -q:v 1 -c:v bmp a%06d.bmp

I don't really know if the BMP codec needs a quality setting,
but I won't take a chance on it.

If the video has 20000 frames total (say 8 minutes at 60FPS or something),
then you can expect a large number of frames.

I might do this conversion on my RAMDisk, to save wear and tear.

You can also specify time points, if you wanted to process only
a certain range of frames.

You can do just about any movie editing thing with FFMPEG,
but it takes *hours* to craft really good commands.

AVIdemux might also do this task, if you can figure it out
(how to "save in frames" mode). What makes me nervous about
AVIdemux, is some of the "informative" messages when it
opens a movie. FFMPEG doesn't usually wobble all that much.

With the 4.x.x stream, it depends on who builds it as to
whether it works on WinXP. The latest 3.x.x stream might
work better, if you don't want to be downloading two of these.
"Static" means no trailing DLLs - you can move ffmpeg.exe
to whatever directory you're working in. Although there
is a presets folder, on the average day you likely don't
need the presets. At least, not for this job. You can always
add the bin folder to your %path% or something. I try not
to make "the worlds longest string" out of my path.

https://ffmpeg.zeranoe.com/builds/win32/static/

Paul
Ads