This patch enables the auto-creation of thumbnails for My Videos if they don't already exist using the MediaPortal.Util.VideoThumbCreator.CreateVideoThumb() method and caching them on the "Thumbs\Videos" folder.
It does this only if the "auto create TV recordings thumb" option is checked on the "General - Thumbnails" section of the configuration program. The text was modified to reflect this and the "clear recorded tv thumbs" behavior modified to also delete the video thumbs.
Additionally, if the aforementioned method fails (usually due to incompatible video formats that mtn.exe can't handle such as RealMedia files, or due to lack of write access on the folder where the video is located), there is an attempt to extract the thumbnail using the MediaPortal.Util.ThumbnailExtractor.GetThumbnail() method for Windows versions earlier than Vista. For Vista and newer I added a slightly modified version of this code: http://mattolenik.spaces.live.com/blog/cns!ECC4D3AB87790CFF!117.entry
Feedback appreciated!
P.S. - This is the patch I posted here: https://forum.team-mediaportal.com/...my-videos-thumbnail-support-58027/#post422608
but all cleaned-up, following the coding standards(I hope) and without cluttering the configuration program.
EDIT: SORRY, I just noticed that I was setting the low-quality thumbnail to item.ThumbnailImage and item.IconImageBig instead of the higher-quality one. I re-uploaded the patch with the changes. :sorry:
It does this only if the "auto create TV recordings thumb" option is checked on the "General - Thumbnails" section of the configuration program. The text was modified to reflect this and the "clear recorded tv thumbs" behavior modified to also delete the video thumbs.
Additionally, if the aforementioned method fails (usually due to incompatible video formats that mtn.exe can't handle such as RealMedia files, or due to lack of write access on the folder where the video is located), there is an attempt to extract the thumbnail using the MediaPortal.Util.ThumbnailExtractor.GetThumbnail() method for Windows versions earlier than Vista. For Vista and newer I added a slightly modified version of this code: http://mattolenik.spaces.live.com/blog/cns!ECC4D3AB87790CFF!117.entry
Feedback appreciated!
P.S. - This is the patch I posted here: https://forum.team-mediaportal.com/...my-videos-thumbnail-support-58027/#post422608
but all cleaned-up, following the coding standards(I hope) and without cluttering the configuration program.
EDIT: SORRY, I just noticed that I was setting the low-quality thumbnail to item.ThumbnailImage and item.IconImageBig instead of the higher-quality one. I re-uploaded the patch with the changes. :sorry: