smitchell6879 / plugin.video.specialfeatures

Inspired by the new bluray features of Kodi 18; This addon will present all of the bonus videos, discs, versions you have of movies in your library.
GNU General Public License v3.0
2 stars 0 forks source link

Rewrite thumbnail generation #34

Closed evertiro closed 6 years ago

evertiro commented 6 years ago

This allows a three-tiered thumbnail generation sequence. First (and most importantly), it now allows you to drop a custom image in the extras folder. If this image is found, generation is skipped entirely. Custom images should look like this:

    The Pirates of the Caribbean\Extras\
                                        >Theactrical Trailer.mkv/mp4/ etc
                                        >Theactrical Trailer.mkv.png
                                        >3D Verison\BDMV\index.bdmv
                                        >3D Verison\BDMV\index.bdmv.jpg
                                        >Bonus Disc\VIDEO_TS\VIDEO_TS.IFO

Currently, jpg, jpeg, and png are supported (in that order). If no custom image is found, it then tries to generate one on its own. This is done based on the 20-second mark of the video. If THIS fails (shouldn't ever happen unless for some reason ffmpeg isn't available AT ALL, it logs the failure and falls back on generating through Kodi as the current system does.

evertiro commented 6 years ago

Closing this for the moment. Custom thumbnails are getting split to their own branch, the rest is on hold.