Hi, today I was trying to make a video or gif.
but the thing is that I couldn’t I don’t really now why but here’s the code I got:
cap = ScreenCapture.ScreenCaptureLogic().createVideo(30,‘extra’,‘C:\Program Files\Slicer 4.10.2’,‘image_%05d.mp4’,‘vid.mp4’)
#what it’s in the repository is :
def createVideo(self, frameRate, extraOptions, outputDir, imageFileNamePattern, videoFileName)
it gives me the next error:
Traceback (most recent call last):
File “”, line 1, in
File “C:/Program Files/Slicer 4.10.2/bin/…/lib/Slicer-4.10/qt-scripted-modules/ScreenCapture.py”, line 1100, in createVideo
raise ValueError("Video creation failed: ffmpeg executable path is invalid: "+ffmpegPath)
ValueError: Video creation failed: ffmpeg executable path is invalid: C:\Program Files\Slicer 4.10.2
if someone could give me an example of how to use it, that would help a lot.