[FFmpeg-user] Extract frames from an AVI and then frames to AVI

Stephen Ho stephenho88 at gmail.com
Fri Aug 8 20:15:00 CEST 2014


There should be a tutorial book written for ffmpeg with lots of examples. I
will buy that.

  *Stephen Ho *
510-364-8941 (c)  StephenHo88 at gmail.com
925-398-6808 x183 (vm) StephenHoRealty.com <http://www.StephenHoRealty.com>



On Fri, Aug 8, 2014 at 11:05 AM, Virgil Stokes <vs at it.uu.se> wrote:

> On 08-Aug-14 18:10, Moritz Barsnick wrote:
>
>> 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
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
> Thanks Moritz,
> I am trying to learn more about the options that might apply to my
> problem. I have looked at the "header" information in my AVIs and perhaps
> with some experimentation, I will be able to reconstruct a "close" AVI from
> the extracted frames.
>
> --V
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list