News:

--

Main Menu

Extract multiple JPEG images from video?

Started by BG Davis, February 18, 2016, 08:12:34 AM

Previous topic - Next topic

BG Davis

Is there a way to extract multiple JPEG images from a 60p video?  I found one suggestion online but it involved a function that doesn't seem to exist on my newly-downloaded version of Avidemux.  (It suggested "file->save->save jpg images" but the actual path available is File>Save>Save as Image, which will save one frame only.)
I know how to extract one image at a time as above, but I'd like to get a sequence of successive images without doing each one manually.
All assistance appreciated!

Jan Gruuthuse

You could try with ffmpeg:
ffmpeg -i yourvideo.ts -r 60 -f image2 image-%3d.jpg

Where you replace yourvideo.ts with the name of your video file and its extention.
Be sure to have enough space on your hard disc and only use a fragment of video and not complete video.

BG Davis

Thanks!  I was hoping there was a way to extract them directly using the Avidemux controls. :'(

AQUAR

The frame based version of ADM can save a selection of frames.

Frame based ADM = ADM V2.5.6

It kind off depends on what codec is used .
Codecs with complex frame reconstruction (eg VP9, AVC, HECV etc) are not handled well by ADM 2.5.6.
But if Xvid, mpeg2 etc it should work fine although not tried myself.

BG Davis

Thanks.  Original is AVCHD 1080/60p (Lumix GX7).

Jan Gruuthuse

Use copy for both Video Output and Audio Output
make selection
save selection (video)
process that video with ffmpeg.
All you can do for now.


AQUAR

I tried extracting a sequence of jpegs from AVC using ADM2.5.6.

It still works but you might not quite get the frames you selected between the A and B markers.
Just make the selection a little bit broader and prune out any unwanted pictures.
And just accept that adm 2.5.6 isn't quite suited for codecs like AVC, but still can be pressed into service for this requirement.

Or use ffmpeg  with a CLI as suggested by Jan.

BG Davis

Thanks, got it.
Just out of curiosity, was there ever an option in Avidemux as described by someone online elsewhere, i.e., "file->save->save jpg images"
Or was this just another example of someone blowing smoke?

mean


BG Davis

Thanks.  Sometimes newer is not all beter... :(