PCbanter

PCbanter (http://www.pcbanter.net/index.php)
-   General XP issues or comments (http://www.pcbanter.net/forumdisplay.php?f=18)
-   -   Convert a 1280x725 MP4 video to a few dozen jpeg files? (http://www.pcbanter.net/showthread.php?t=1108035)

BillAhearn July 10th 19 08:14 PM

Convert a 1280x725 MP4 video to a few dozen jpeg files?
 
How can I convert a 1280x725 MP4 video to a few dozen jpeg files?

Paul[_32_] July 10th 19 08:41 PM

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

Shadow July 10th 19 09:15 PM

Convert a 1280x725 MP4 video to a few dozen jpeg files?
 
On Wed, 10 Jul 2019 15:14:34 -0400, BillAhearn
wrote:

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


Either chose Paul's method, or use VLC and take snapshots of
whatever scenes you want to keep.

https://www.vlchelp.com/take-picture-snapshot-video/

The good thing about using FFmpeg is it has countless other
uses, the bad is a steep learning curve.
HTH
[]'s
--
Don't be evil - Google 2004
We have a new policy - Google 2012

Paul in Houston TX[_2_] July 10th 19 10:49 PM

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?


I use MPC-HC for mp4 screen shots.
It is small, lightweight, and works very well.


Jean Fredette July 11th 19 03:40 AM

Convert a 1280x725 MP4 video to a few dozen jpeg files?
 
Paul posted:

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


1 ffmpeg -i file.mp4 frames%03d.jpeg
(one jpeg per frame)

2 ffmpeg -i file.mp4 -r 1 frames%03d.jpeg
(one jpeg per second)

1 Shotcut-File-Export Frame-name-#####.jpg
(the current frame to one jpeg)

2 Shotcut-View-Export-Presets-stills-JPEG-From Source-Export File
(every frame to C:\Users\yourlogin\Videos\name-#####.jpg)

Paul[_32_] July 11th 19 03:49 AM

Convert a 1280x725 MP4 video to a few dozen jpeg files?
 
Jean Fredette wrote:
Paul posted:

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


1 ffmpeg -i file.mp4 frames%03d.jpeg
(one jpeg per frame)

2 ffmpeg -i file.mp4 -r 1 frames%03d.jpeg
(one jpeg per second)

1 Shotcut-File-Export Frame-name-#####.jpg
(the current frame to one jpeg)

2 Shotcut-View-Export-Presets-stills-JPEG-From Source-Export File
(every frame to C:\Users\yourlogin\Videos\name-#####.jpg)


But you do want to pay attention to the quality setting.
I didn't know about that at first, and noticed the
image files were a big "soft". I think there is a default
sharpness it uses, if you don't specify something.

You can try with and without the QV thing and see
for yourself.

Paul

Jean Fredette July 11th 19 04:01 AM

Convert a 1280x725 MP4 video to a few dozen jpeg files?
 
Paul posted:

But you do want to pay attention to the quality setting.


OP didn't ask.

OGuest July 13th 19 06:33 PM

Convert a 1280x725 MP4 video to a few dozen jpeg files?
 
I use VLC.

Just use the record button to record whatever portions of a full video
you want.




All times are GMT +1. The time now is 05:02 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2006 PCbanter
Comments are property of their posters