Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene detection script error : attempt to call a nil value (field 'ULT_SetMediaItemNote') #1

Open
deseipel opened this issue Aug 3, 2021 · 2 comments

Comments

@deseipel
Copy link

deseipel commented Aug 3, 2021

Windows 10 Home
Reaper 6.32

...mrlimbic scripts\Video\mrlimbic_ffprobe scene detect.lua:155: attempt to call a nil value (field 'ULT_SetMediaItemNote')

Processing video item C:\Users\desei\Videos\YT_DL\TV Commercials March 25th, 1984.mp4
cmd.exe /C ""C:\Program Files\ffmpeg-2021-07-21-git-f614390ecc-full_build\bin\ffprobe.exe" -show_frames -of compact=p=0 -f lavfi "movie='C:/Users/desei/Videos/YT_DL/TV Commercials March 25th, 1984.mp4',select=gt(scene,.4)" > "C:\Users\desei\Documents\REAPER Media\TV Commercials March 25th, 1984-Scenes.txt.temp" && move "C:\Users\desei\Documents\REAPER Media\TV Commercials March 25th, 1984-Scenes.txt.temp" "C:\Users\desei\Documents\REAPER Media\TV Commercials March 25th, 1984-Scenes.txt" &"

Complete!

@mrlimbic
Copy link
Owner

mrlimbic commented Aug 3, 2021

Oh.. I'm not sure why but I have been told that SWS recently deprecated an API call.

Try commenting out line 155 using -- in front of the line so it is..

-- reaper.ULT_SetMediaItemNote( item, string.format("%03d", tonumber(count))).

That line just makes the item have a nice label. So it's not critical if you comment it out.

@mrlimbic
Copy link
Owner

mrlimbic commented Aug 3, 2021

Another thought.. do you have SWS extensions installed? That call is SWS related. Script probably won't work without it.

https://www.sws-extension.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants