[FFmpeg-user] Extract frames from an AVI and then frames to AVI
Moritz Barsnick
barsnick at gmx.net
Fri Aug 8 18:10:31 CEST 2014
Hi Virgil,
On Fri, Aug 08, 2014 at 17:43:40 +0200, Virgil Stokes wrote:
> I would like to know a method that could be used to first, extract frames from
> an AVI file
$ ffmpeg -i in.avi -f image2 image%05d.png
> and then reconstruct the AVI from these extracted frames.
$ ffmpeg -f image2 -i image%05d.png out.avi
This is just a very simple example.
Note that it only partially "reconstructs". Sound isn't taken into
consideration, and you're losing all information about frame timing,
which is relevant amongst others for fps, variable frame rates, and
audio sync.
You also need to tune your video codec and its quality. And possibly
the fps...
Moritz
More information about the ffmpeg-user
mailing list