Note, this started out as a project just to see how far I could get with using ffmpeg in an external tool. The result is attached.
What it does:
It will look through the selected project and make a video from the images in each folder. if a sound file is found it is added as the audio track of the video, the audio files will also automatically be 'excluded' from the project. All of the resulting videos will be scaled to the 'slide' image bounds and will be marked 'Do not re-encode.'
It allows all images to be shown using the browser's video player, so you can go full screen for no distraction viewing.
It respects the image order as set in jAlbum's explore mode and ignores excluded images.
It works with both links and actual images in a project.
At the root level of the project a 'externalToolFFSlideshow.properties' file is created to save the tools settings for that project.
In each folder it creates its own text file, slideshow_files.txt, that is used to list images to be used for the video.
There are several options, as detailed further below.
Using the tool:
1, Follow the usual install method for external tools and then select your project and invoke the tool from the menu.
2, You will see a GUI window titles 'Make MP4 slideshows?' with the following controls:
The name to be used for the created videos, the default is 'slideshow'.
How long each image should be displayed for, the default is 5 seconds with values between
1 and 9 allowed.
The file name for any accompanying audio track, the default is 'slideshow.m4a'. You can use any audio format supported by ffmpeg, mp3, wav, air etc. If an audio track is included in any folder ensure the audio file is at least as long as the number of slide images multiplied by the slide display time otherwise not all images will be included.
3, Click OK and wait for the 'MP4 slideshows created' confirmation window.
4, You may need to refresh the display as video generation may still continue for a while, depending on how many images are in the project.
5, Make your album, the videos will be included in your album.
Note, this is a quick way of adding a video slideshow to your albums, but if you like the result you might want to consider building your own videos with a video editor and exporting the movies to jAlbum. You will have more control and access to transition effects etc.
Edited by: RobM on 14-Jul-2017 21:48
Updated tool, bug stopped auto exclude of any audio files for the slideshow.
Note, if you use diacriticals ensure the Java environment is set to encode files using UTF8. You can check it by Menu/Jalbum/About Album then select System and look for 'file.encoding'
Edited by: RobM on 11-Aug-2017 20:56
bug fix if no audiophile is specified.
Edited by: RobM on 14-May-2018 21:39
Updated to allow it to run on Windows!
Edited by: RobM on 23-May-2018 22:07
Video processing now runs one after the other, rather than in parallel. Added a note at the top of the file on how to reduce the number of threads used - to reduce processor load on large projects.