From weimerj at uah.edu Thu Dec 5 17:44:53 2019
From: weimerj at uah.edu (Jeffrey Weimer (UAH))
Date: Thu, 5 Dec 2019 19:44:53 -0600


Subject: [EXTERNAL] Extracting frames from movies in Igor
In-Reply-To: <2D54481D-6BD2-4787-AD31-26E2DBB9F469@lfor.de>
References: <672415D8-1897-472C-808A-1EC33948B4EC@nasa.gov>
<822E42AD-5472-4BB8-9DC5-DE4F51702956@uah.edu>
<FE90E523-7CFD-4887-AAF0-8E6FD665ABC0@nasa.gov>
<8AB538AA-000C-411E-8AA6-EE4C82080C81@uah.edu>
<2D54481D-6BD2-4787-AD31-26E2DBB9F469@lfor.de>
Message-ID: <5FCA8F3D-2316-45A2-BD6B-E694955BC04E@uah.edu>

I?ve installed FFmpeg using Homebrew. It works.

All I need is the syntax to extract a specific frame (e.g. 37) or a set of frames (e.g. 2 - 10) or a set of frames in an incremented manner (e.g. 2 - 37 in steps of 4) from an avi video and generate the results as TIFF with no change in RGB or resolution or whatever else.

> ffmpeg -i input.avi ? output.tiff

I would build that syntax into the Image Tools using ExecuteScript. This adaptation would make it possible to be able to import movie frames from avi into Igor Pro (as TIFF images). As far as I can tell with FFmpeg, such code should work on both Windows and macOS (with FFmpeg installed).

Any help with the correct syntax would be appreciated.

--
Jeffrey J Weimer, Associate Professor
Chemistry / Chemical & Materials Engineering, UAHuntsville
Huntsville, AL 35899 phone: 256-824-6954

> On Dec 5, 2019, at 4:41 PM, Johannes Steinmann <igor-list at lfor.de> wrote:
>
> I am successfully using the static builds from https://evermeet.cx/ffmpeg/ <https://evermeet.cx/ffmpeg/>
> You can also install ffmpeg via brew if you like.
> Johannes
>