From thomas.braun at virtuell-zuhause.de Sat Dec 7 10:55:15 2019
From: thomas.braun at virtuell-zuhause.de (Thomas Braun)
Date: Sat, 7 Dec 2019 19:55:15 +0100


Subject: Extracting frames from movies in Igor
In-Reply-To: <1575586479.96228389@apps.rackspace.com>
References: <672415D8-1897-472C-808A-1EC33948B4EC@nasa.gov>
<1575586479.96228389@apps.rackspace.com>
Message-ID: <125cc5f1-ab45-7891-43f1-59412addc264@virtuell-zuhause.de>

On 05.12.2019 23:54, larryh at wavemetrics.com wrote:
> You should be able to extract frames using PlayMovieAction on mp4
> movies. Review the docs and especially the open keyword (if memory
> serves, I am on an iPad currently.)

Yeep, doing something like

Function Dostuff()

string path = ""
PlayMovieAction open="e:movie.mkv"
variable refnum = V_Value

PlayMovieAction stop, gotoEnd, getTime
Variable tEnd = V_Value

PlayMovieAction step=-1, getTime
Print "frames = ", tEnd/(tEnd-V_value)

PlayMovieAction frame=777, ref=refnum

PlayMovieAction extract
End

works on my Windows 10 box. The movie has 13GB and is H264 encoded in an
mkv container.

The extract function creates a 3 layer wave like

Type: Unsigned Byte 8 bit
Rows: 1888 Start: 0 Delta: 1 Units:
Columns: 1016 Start: 0 Delta: 1 Units:
Layers: 3 Start: 0 Delta: 1 Units:

Thomas

> -----Original Message-----
> From: "Dietrich, Daniel L. (GRC-LTX0) via Info-igor" <info-igor at lists.info-igor.org>
> Sent: Wednesday, December 4, 2019 11:59am
> To: "Igor Discussion List" <info-igor at lists.info-igor.org>
> Cc: "Dietrich, Daniel L. (GRC-LTX0)" <daniel.l.dietrich at nasa.gov>
> Subject: Extracting frames from movies in Igor
>
> Hello Everyone,
>
> I knew this day was coming, but was hoping there would be a solution before it happened. I have for a long time used Igor?s PlayMovie and PlayMovieAction commands to load, play and extract frames from QuickTime movies in .mov or .mp4 formats. I haven?t used it for a little bit, but now when I try, I get an error message saying this feature is no longer supported by my OS.
>
> The question is, is there currently any way to open, play and extract frames from .mp4, .mov or .avi movie files in Igor ??? Some simple searches haven?t yielded anything.
>
> Igor Pro 8.04
> Mac OS X 10.14.6
>
> Thanks in advance,
>
> Dan
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://info-igor.org/attachments/20191204/7bd5509c/attachment.html>
> _______________________________________________
> Info-igor mailing list
> Info-igor at lists.info-igor.org
> http://lists.info-igor.org/listinfo.cgi/info-igor-info-igor.org
>
>
> _______________________________________________
> Info-igor mailing list
> Info-igor at lists.info-igor.org
> http://lists.info-igor.org/listinfo.cgi/info-igor-info-igor.org
>