Error with Playmovieaction on Igor7 (Windows)
Zouz
Wed, 01/04/2023 - 05:17 am
I can't make the PlayMovieAction open=fullPath cmd work.
I've tried to write the fullPath as "C:\users\XXX\XXX.avi" or as "c:users:xxx:xxx.avi" and nothing works, while using the same fullPath with the cmd Playmovie as "C:\users\XXX\XXX.avi" works perfectly.
Does this example code work?
Variable refNum
String message = "Select a file"
String outputPath
String fileFilters = "Movie Files (*.avi,*.mp4):.avi,.mp4;"
fileFilters += "All Files:.*;"
Open /D /R /F=fileFilters /M=message refNum
outputPath = S_fileName
return outputPath // Will be empty if user canceled
End
Macro PlayMovieActionDemo()
String fullpath = DoOpenFileDialog()
PlayMovieAction open = fullpath
PlayMovieAction gotoEnd, getTime
Variable tEnd = V_Value
PlayMovieAction step=-1, getTime
Print "frames = ", tEnd/(tEnd-V_value)
PlayMovieAction kill
End
January 4, 2023 at 12:50 pm - Permalink