ffmpeg is still installed under appdata/roaming/NA-MIC/ffmpeg in the latest stable, breaking the portability of the Slicer folder.
Can this be changed to the Slicer folder like the rest of the extensions?
Export to video...
C:\Users\amaga\AppData\Roaming\NA-MIC\ffmpeg\ffmpeg-3.2.4-win64-static\bin\ffmpeg.exe -nostdin -y -r 6.2 -start_number 0 -i C:\Users\amaga\Documents\SlicerCapture\tmp-P7XSU-%05d.png -codec libx264 -preset slower -pix_fmt yuv420p C:\Users\amaga\Documents\SlicerCapture\SlicerCapture.mp4
Video export succeeded to file: C:\Users\amaga\Documents\SlicerCapture\SlicerCapture.mp4
ScreenCapture module is fully prepared for both portable and shared Slicer.ini and if it does not find ffmpeg then it downloads it to the proper location (same folder as Slicer.ini).
Make sure that if you don’t want a shared Slicer.ini then copy/create a new one in the same location as the revisionUserSettings ini file is. You can get that folder by calling qt.QFileInfo(slicer.app.slicerRevisionUserSettingsFilePath).absoluteDir().path(). If you previously specified ffmpeg path with an absolute path then remove that path (or replace with a relative path).
Deleted everything in c:\users\murat\appdata\local\na-mic
Deleted everything in c:\users\murat\appdata\roaming\na-mic (including slicer.ini)
(I am assuming this equivalent to installed Slicer to a brand new computer. If not, let me know what else I should do).
Installed the new slicer stable c:\users\murat\desktop
went to screen capture and choose video output. Said yes to download ffmpeg, it downloaded and installed at c:\users\murat\appdata\roaming\na-mic (it also created slicer.ini in that location too).
We have bunch of offline computers that I want to carry slicer in its entirety (including ffmpeg).
Main reason why creating a fully portable application is not made very easy or widely advertised is that it would require a little effort, and most users don’t need it (it is better if Slicer instances use same DICOM database, reuse downloaded ffmpeg, etc.).
I agree that we should have a module that makes it easy to create a portable package. Probably the main use case would be to bundle a portable data viewer with data sets (similarly to viewers supplied with DICOM DVDs), but it could be useful for training courses, and other use cases, too. I’ve submitted a feature request to keep track of this: