From weimerj at uah.edu Fri Dec 6 07:00:00 2019
From: weimerj at uah.edu (Jeffrey Weimer (UAH))
Date: Fri, 6 Dec 2019 09:00:00 -0600


Subject: [EXTERNAL] Extracting frames from movies in Igor
In-Reply-To: <ED81FBF3-A50E-414D-95BE-0863074F2D88@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>
<03613EE5-3EE2-4B41-AA10-F4F2E6424880@uah.edu>
<ED81FBF3-A50E-414D-95BE-0863074F2D88@lfor.de>
Message-ID: <FB0A2E2E-887E-499F-83F6-34DE4785EFD3@uah.edu>

Wonderful!

The link also eventually led me to ffprobe, a great command line resource to find information about the video files themselves.

After digesting this with some testing on the files I have, I suspect that the process to code a video translation avi -> Igor Pro on macOS is a bit more than I can immediately tackle. The FFmpeg command line is definitely the option to use for this, going through an ExecuteScript call from Igor Pro.

So, going back to the original question, I?d suggest using ImageJ to do the conversion avi -> TIFF stacks first. Then continue after that with Igor Pro using the ImageLoad operation (which itself is so much easier to handle than PlayMovie or PlayMovieAction). This is likely the path that I will standardize on for our group, primarily since those who need to analyze avi videos are not command-line-conversant in either macOS or Windows (and what we are doing needs to work using Igor Pro on either macOS or Windows).

Thanks for the insights!!

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

> On Dec 5, 2019, at 8:34 PM, Johannes Steinmann <igor-list at lfor.de> wrote:
>
> Does this help?
> https://www.bugcodemaster.com/article/extract-images-frame-frame-video-file-using-ffmpeg <https://www.bugcodemaster.com/article/extract-images-frame-frame-video-file-using-ffmpeg>
>
> Best,
> Johannes
>
>> On Dec 5, 2019, at 19:45, Jeffrey Weimer (UAH) <weimerj at uah.edu <mailto:weimerj at uah.edu>> wrote:
>>
>> 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 <mailto:igor-list at lfor.de>> wrote:
>>>
>>> I am successfully using the static builds from https://evermeet.cx/ffmpeg/ <https://evermeet.cx/ffmpeg/> <https://evermeet.cx/ffmpeg/ <https://evermeet.cx/ffmpeg/>>
>>> You can also install ffmpeg via brew if you like.
>>> Johannes
>>>
>>
>> _______________________________________________
>> Info-igor mailing list
>> Info-igor at lists.info-igor.org <mailto:Info-igor at lists.info-igor.org>
>> http://lists.info-igor.org/listinfo.cgi/info-igor-info-igor.org
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://info-igor.org/attachments/20191206/066c9ae0/attachment.html>