Mede8er Forum

Mede8er Community => Mede8er Community => Software Downloads => Topic started by: mike_carton on January 23, 2018, 05:07:36 AM

Title: ThumbGen Redux
Post by: mike_carton on January 23, 2018, 05:07:36 AM
I have made some changes to ThumbGen.

To be clear, I'm not the original developer.

I modify, test and use ThumbGen in English and that might impact what I can fix; the changes might not work for other locales and languages. I will try to address those issues as they're reported.

This thread is for version 1.4.0.0 of ThumbGen and up. Discussion of ThumbGen 1.3.9.2 and earlier should stay in the original thread at http://www.mede8erforum.com/index.php/topic,2006.0.html (http://www.mede8erforum.com/index.php/topic,2006.0.html).

1. I make no warranties this software will work; it is extremely unlikely to do any damage, but who knows?

Disclaimer: THE PROGRAM IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

2. I checked it with AVG; you should throw every available anti-malware software at this thing, before running it.

3. Rename the current ThumbGen.exe you have and keep it in a safe place in case you need to get back to using it.

ThumbGen 1.4.0.0 is available with Change Log through Reply 1 of this thread at http://www.mede8erforum.com/index.php/topic,19397.msg116087.html#msg116087

ThumbGen 1.5.0.0 is available with Change Log through Reply 9 of this thread at http://www.mede8erforum.com/index.php/topic,19397.msg116143.html#msg116143

ThumbGen 1.5.0.0 is available with Change Log through Reply 29 of this thread at (Thanks Lupissimo) https://www.dropbox.com/s/mb8e2t6jlwtw2jo/ThumbGen%20v1.5.0.0.rar?dl=0

ThumbGen 1.5.0.1 is available (nightly build) through Reply 32 of this thread at http://www.mede8erforum.com/index.php/topic,19397.msg119264.html#msg119264
Title: Re: ThumbGen Redux
Post by: mike_carton on January 23, 2018, 05:07:58 AM
Version 1.4.0.0 ThumbGen with Change Log

Download it from the address: http://s000.tinyupload.com/?file_id=09088675375185316202

ChangeLog.txt below:

Code: [Select]
ThumbGen v1.4.0.0: Changes on top of 1.3.9.2

Notes
-----
+ Added
- Deleted
* Changed
x Fixed Bug

Version 14.0.0.0, 2018-01-19 by mike_carton
-------------------------------------------
* Updated to resume retrieving IMDB User Score (Token: %RATING%, %RATINGPERCENT%)
* Updated to resume retrieving certifications by country from IMDB (Token: %CERTIFICATION%, %CERTIFICATIONTEXT%, %CERTIFICATIONCOUNTRYCODE%)
* Updated to resume retrieving Metacritic Score from IMDB (Token: %METASCORE%)
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 23, 2018, 12:06:14 PM
 :) :) :) This sounds great! Cant waít to test it!
Title: Re: ThumbGen Redux
Post by: voidths on January 23, 2018, 11:27:57 PM
This is great! I'll test it out soon. Thank you for doing this!
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 26, 2018, 04:51:12 PM
It looks like there is still a bug in detecting the runtime?
Example: For tt0039898 it detects 41min whereas imdb states  1h 45min
The old version 1.392 gave a different but also wrong value
Title: Re: ThumbGen Redux
Post by: mike_carton on January 26, 2018, 11:58:27 PM
I didn't do anything about the runtime; the changes I made are all listed in the ChangeLog.

How long is the video file? Playing it on a PC (say with VLC) should show the duration of the video.
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 27, 2018, 06:28:22 AM
The video (This Time for Keeps) is 1h 45min as imdb indicates, but the same happens with other movies too. It seems similar to the rating problem you corrected.
Title: Re: ThumbGen Redux
Post by: mike_carton on January 29, 2018, 01:13:55 AM
Planned 1.5.0.0

+ Update to use latest MediaInfo.Dll - will introduce incompatibilities in XML input to template XSLTs
+ Option to use "Old XML" to minimize incompatibilities in XML input to template XSLTs
+ Token identifying 2D vs 3D main movie
+ Token identifying presence of Atmos, DTS:X objects in main audio

ETA: 2-3 Weeks
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 29, 2018, 02:11:06 PM
Thank you for updating ThumGen!
Title: Re: ThumbGen Redux
Post by: mike_carton on February 04, 2018, 05:19:41 PM
ThumbGen 1.5.0.0

Download it from the address: http://s000.tinyupload.com/?file_id=00609154987322228472

ChangeLog.txt is attached. The bump up in minor version number reflects minor incompatibilities with previous versions; details are in the Change Log.
Title: Re: ThumbGen Redux
Post by: Lupissimo on February 05, 2018, 04:59:10 PM
Thank you for version 1.5! I have tried it for the med8er profile (which I copied from the previous version) and added my special template. It now collects the correct imdb runtime info! Great! Then it tested an uhd rip:
Complete name                            : E:\Groundhog.Day.(1993).2160p.[Deu-Eng]\Groundhog.Day.(1993).2160p.[Deu-Eng].mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 35.6 GiB
Duration                                 : 1 h 41 min
Overall bit rate                         : 50.4 Mb/s
Movie name                               : Groundhog Day (1993)

Video
ID                                       : 1
Format                                   : HEVC                                                                     !!!!!
Format/Info                              : High Efficiency Video Coding
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 41 min
Bit rate                                 : 49.3 Mb/s
Width                                    : 3 840 pixels                                                  !!!!!!!!
Height                                   : 2 160 pixels                                                   !!!!!!!!
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Bits/(Pixel*Frame)                       : 0.248
Stream size                              : 34.8 GiB (98%)
Title                                    : Groundhog Day (1993) - Release for ULTRAHDCLUB
Language                                 : English
Default                                  : Yes
Forced                                   : No

and the movie.xml was:
........
 <Resolution>
      <Flag>Resolution_1080p</Flag>                                               !!!!!!!!! should be 2160p
    </Resolution>
    <resolution>1080P</resolution>                                                  !!!!!!!!should be 2160p
    <Format>
      <Flag>Format_MKV</Flag>
    </Format>
    <format>MKV</format>
    <Video>
      <Flag>Video_mpeg</Flag>                                           !!!!!!!!!!! should be HEVC
    </Video>
    <video>mpeg</video>                                                    !!!!!!!!!!!should be HEVC
    <Audio>
      <Flag>Audio_DolbyDigital</Flag>
    </Audio>
    <audio>DD51</audio>
    <Subtitles>
      <Flag>Unknown</Flag>
    </Subtitles>
    <SubtitlesText>Unknown</SubtitlesText>
    <framerate>23.976</framerate>
    <aspectratio>16:9</aspectratio>
    <videoresolution>3840x2160</videoresolution>
    <videocodec>V_MPEGH/ISO/HEVC</videocodec>
    <videobitrate>48 Mbps</videobitrate>
    <overallbitrate>50 Mbps</overallbitrate>
    <audiocodec>AC-3</audiocodec>
    <audiochannels>6</audiochannels>
    <audiobitrate>448 Kbps</audiobitrate>
    <durationseconds>6062</durationseconds>
    <durationminutes>101</durationminutes>
    <duration>1h 41m</duration>
    <filesizebytes>38200651253</filesizebytes>
    <filesize>35,58 GB</filesize>
    <container>Matroska</container>
.....................
so it detects the correct resolution 3840x2160 and HEVC but does not translate these into the parameters used in the template.
Maybe you could fix that?? ( I know the mede8er cannot handle this, but I use the same about.jpg also for playback via my sat receiver)
Title: Re: ThumbGen Redux
Post by: mike_carton on February 05, 2018, 08:00:47 PM
There is no support in the code for 4K or Interlaced video. I need to look at this. 1.5.2.0

Do you generate a 3840x2160 jpg (about.jpg) with your template?
Title: Re: ThumbGen Redux
Post by: mike_carton on February 05, 2018, 08:01:10 PM
I'm planning a quick 1.5.1.0 that updates retrieval logic for following from IMDB:

Genre
Director
Cast
Company
Countries
Release Date
Trailer

Title: Re: ThumbGen Redux
Post by: jer1956 on February 05, 2018, 08:35:27 PM
Trailer?
Direct YouTube links will not work. The internal trailer scraper adds links using our trailer server.
Title: Re: ThumbGen Redux
Post by: Lupissimo on February 05, 2018, 10:09:36 PM
No, the about.jpgs are 1920x1280. Probaly it is not worth the effort, since mede8er does not support it anyway. I was just curious how the new version would handle this.
Title: Re: ThumbGen Redux
Post by: mike_carton on February 05, 2018, 10:41:15 PM
Trailer?
Direct YouTube links will not work. The internal trailer scraper adds links using our trailer server.
That's a URL to a trailer (if one exists) hosted by IMDB. ThumbGen can retrieve and display it.
Title: Re: ThumbGen Redux
Post by: mike_carton on February 06, 2018, 12:26:35 AM
ThumbGen 1.5.0.1; nightly debug build, not a final release. http://s000.tinyupload.com/?file_id=07084533764173138082

Retrieval of following from IMDB has been fixed. Should help with scraping TV shows as well.

Runtime
Original Title
Genre
Director
Cast
Company
Countries
Release Date
Trailer URL
Title: Re: ThumbGen Redux
Post by: Satnaff on February 10, 2018, 11:10:30 AM
I very much appreciate your knowledge sharing and the reboot of your TG Redux  :) :)

I understood fanart.jpg needs to be 1280 x 780, and I've created those in the past when mede8er didn't scrape (e.g. an obscure title / extra bonus material etc.), then 'scanned folder' to let it create the about.jpg with no problem - until now - given the unfortunate issue where we're now getting corrupted conversion jpg, so I'm trying hard to get my head around TG / templates etc., for my future additions and maybe to revisit my existing (though quite large) movie library's graphics.

I'm steadfastly choring through a plethora of forum information trying to learn everything thumbgen and look for fixes where I'm going wrong.  I'm running your reduxed version 1.5.0.1, and I replaced the default Template.xml (the one you created and shared elsewhere) but the resultant about.jpg is sized at 1920 x 1080 and when viewed in my player the resolution is too large, missing the top / bottom detail. I know I can always resize the image but I'm thinking surely TG will do that (I thought maybe that was what the Export Image options were for but I can't seem to set any option to work).  Any advice greatly appreciated.
Title: Re: ThumbGen Redux
Post by: mike_carton on February 10, 2018, 02:15:43 PM
1. There are a large number of templates available for TG on the internet; some individuals even collected and zipped many up into a "template megapack". If you search for that and download, you'd be able to pick one movie and quickly scroll through the templates, seeing how each template's output looks.

2. The dimensions of about.jpg do not have to be 1280x720. The Mede8er will resize any about.jpg to 1280x720 and send to the receiver/dispay device which will then convert it back to 1920x1080 (display's resolution) The actual dimensions can be anything so long as their proportion is 16x9. 1280x720, 1920x1080, 3840x2160 (4K) are all 16x9 and will scale. All my about.jpg are 1920x1080 and work just fine.

3. The top and bottom missing must be different issue. It is either because of overscan or a setting on the tv.
- what is the native tv resolution?
- how do jpgs of various resolutions show up (say, make copies of a 1920x1080 jpg, resize copies to different resoltions and rename them and check how they show through Mede8er)

Overscan setting is at the bottom of video settings; you might want to change it as the last resort if nothing else prevents the edges from being cut off.

4. I'd recommend working on one movie, making sure its files are generated to your satisfaction and then repeating that process for the entire library.

5. The output about.jpg size is part of the design of the template. Any template can be opened in ThumbGen Designer and modified. Alternately, one could pick a template that produces 1280x720 output. But, like I said above, there's no need to limit ourselves to 1280x720.
Title: Re: ThumbGen Redux
Post by: Satnaff on February 10, 2018, 03:07:41 PM
3. The top and bottom missing must be different issue. It is either because of overscan or a setting on the tv.
- what is the native tv resolution?

Thank you.  I feel a bit of an idiot.  I have a NAS with all my movies / TV series stored and they're streamed to either of two mede8ers, one in the lounge connected to a full HD and one elsewhere connected to a TV that is non HD.  I've lately only been checking things out from the latter (which I've just realised is not HD, but an older 'HD Ready' TV with a resolution of 1366 x 768) and hence the cropped image, but can see the full image as it should be displayed on my more recent 'Full HD' TV.

I guess we can't have it all; I know the ratio sizes are all relative, but I suppose I'll have to use a template that will generate it to (maximum) of 1280 x 720 so as it will fit on both screens?  Or I can simply resize the generated image.  Your revamped template (which I downloaded from your post as per thread  http://www.mede8erforum.com/index.php/topic,15432.msg110156.html) is very nice to look at - I like the skewed embedded folder icon on the left.  Is there a version for 1280 x 720 ?

I'll take your advice and research some more templates  :) I did try editing your template (Canvass height/width/fill) with XML Notepad but I could see that wasn't enough and I have more to learn.
Title: Re: ThumbGen Redux
Post by: mike_carton on February 10, 2018, 06:11:24 PM
1. I'd recommend downloading and using ThumbGen Designer for working with templates. It is a very visual way of laying out the elements and modifying them.

2. 1366x768 is also 16x9 (very, very close - only 0.375 pixels excess, vertically) so, there should be no cropping there either. Could be a TV setting that's preventing it from resizing/scaling.
Title: Re: ThumbGen Redux
Post by: mike_carton on February 10, 2018, 08:29:22 PM
If you need 1366x768, there are 2 ways:

1. This recently active thread has some easy-to-employ options: http://www.mede8erforum.com/index.php/topic,19400.0.html (http://www.mede8erforum.com/index.php/topic,19400.0.html)

2. You could use the overscan support built into ThumbGen. The Overscan Correction options can be used. That will add a black border that will be visible on larger resolutions.

For 1366x768
Left, Right: 277 (calculated as 1920-1366)/2
Top, Bottom: 156 (calculated as 1080-768)/2
Title: Re: ThumbGen Redux
Post by: Satnaff on February 11, 2018, 06:30:51 AM
I don't think it's a TV setting; it's HD ready, which I take to mean DVD players, media players, Sky, Virgin boxes etc. can upscale / downscale to the TV; my TV doesn't seem to have the capability to up/down-scale. I know the mede8er will play my hi-def movies to my lower resolution screen, but can't see any mede8er setting will downscale 1920 x 1080 jpg images.
I will check out the TG designer, thanks.
Title: Re: ThumbGen Redux
Post by: jer1956 on February 11, 2018, 08:43:01 AM
Force SD and then Full HD out of any source and you will soon know what the TV can do. The player will not output non standard dimensions. It's either 1080 or 720.
Title: Re: ThumbGen Redux
Post by: Satnaff on February 11, 2018, 10:53:35 PM
I revisited my TV's menu options - an old(ish) Samsung - Picture settings included 'Just Scan' as opposed to 16x9 and has done the trick - I can now see the higher resolution jpgs in both that and my newer Sony full HD set :)
I'm making some progress tweaking some templates out there and getting to know a bit more more about the .xml structure, but can't locate TG Designer download link anywhere. Anyone?
Title: Re: ThumbGen Redux
Post by: stof77 on February 27, 2018, 02:59:45 PM
I am trying v1.5.0, complete newbie here,

unfortunately as soon as clicking on process files/folder icon, I got the spinning wheel forever, (now I remember why I choose to quit Windows) ... >:(  Any idea ?

PS : I'm running thumbgen through a VM (windows 7 32bits) inside a Mac

-------

Edit : ok running it as Administrator resolves the spinning wheels problem, but now it doesn't sees my network shared folders, (as my movies are on a NAS) which is mapped to letter "Z", that might be a problem because of the VM...?


Edit 2 : arff just tested with a very old (and noisy) windows PC, and from there, thumbgen can see the network drive, so this is a VM problem, I kind of knew it as it's not the first time I have some problem with network drives recognition or functionnality inside a VM environment, that's too bad for me cause I don't want to use that PC anymore...
Title: Re: ThumbGen Redux
Post by: AndresVR on September 18, 2018, 02:15:00 PM
Hi Mike,

thank you for update and new DL link, will try this realease.

Best regards,
Andres
Title: Re: ThumbGen Redux
Post by: Lupissimo on September 20, 2018, 02:53:44 PM
It seems that the imdb rating only extracts the digit in front of the decimal point. Instead of 5.8 it shows 5.0.
Title: Re: ThumbGen Redux
Post by: lekash on October 14, 2018, 12:23:09 AM
subscribing to this thread as well. my laptop got wiped out and i lost my copy of the thumbgen redux. The DL links here are all dead. Hoping mike can hook us up with an updated link for download. sent a PM as well for good measure :)
Title: Re: ThumbGen Redux
Post by: Lupissimo on October 14, 2018, 02:25:07 PM
https://www.dropbox.com/s/mb8e2t6jlwtw2jo/ThumbGen%20v1.5.0.0.rar?dl=0

Hoping that mike_carton will fix the imdb rating issue one of these days  ;)
Title: Re: ThumbGen Redux
Post by: lekash on October 19, 2018, 10:37:55 AM
https://www.dropbox.com/s/mb8e2t6jlwtw2jo/ThumbGen%20v1.5.0.0.rar?dl=0

Hoping that mike_carton will fix the imdb rating issue one of these days  ;)

lupissimo you are a lifesaver, mate! cheers!
Title: Re: ThumbGen Redux
Post by: mike_carton on January 17, 2019, 12:25:34 AM
Visiting the forums again after nearly an year. Haven't used TG for a while either. Let me know of any issues, will look into then in the next week. (I read about the IMDB rating issue above.)
Title: Re: ThumbGen Redux
Post by: mike_carton on January 17, 2019, 11:31:11 PM
ThumbGen 1.5.0.1;

I've re-uploaded the 1.5.0.1  nightly debug build, not a final release. It is the same build as mentioned in Reply #16 above. Latest build for now, from Feb 5, 2018.

http://s000.tinyupload.com/?file_id=35805812451778035938
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 18, 2019, 02:25:27 PM
It looks like any movie gets a wrong imdb rating. Here are some examples.
tt0031398 Gunga Din 1939 should be 7.4 . In the xml 7.0 is shown.
tt0053879 The great impostor 1961 should be 7.1. In the xml 8.0 is shown
When I try to generate data for tt0037008 Laura 1944 ThumbGen crashes and I can only get data by using the imdb number not by the title. In this case the imdb rating is correct 8.0
tt4222310 Secret Life of Babies should be 7.2. In the xml 9.0 is shown.
Hope this helps! And thank you for your support!
Title: Re: ThumbGen Redux
Post by: mike_carton on January 18, 2019, 05:45:24 PM
I used a small, random video file and tested the data retrieval for these movies by renaming the file to movie names. The template I used was "GlynRS2 Movie sheet with screenshot." All of them retrieved the IMDB User Ratings correctly.
Are you using the 1.5.0.1 version?
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 18, 2019, 09:55:12 PM
Thank you for your help and effort! It looks like something in my profile setup for the mede8er screwed up data. After starting a new install from scratch and adjusting the default profile it seems to work now!
So thank you for your checking which made me reasessing the situation!
Title: Re: ThumbGen Redux
Post by: mike_carton on January 20, 2019, 04:47:52 AM
Just to keep the conversation going: What templates are you folks using? Different templates for different languages? Different templates for home movies? What about music videos?
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 20, 2019, 08:17:35 AM
I use a modified "Brightly" template
Title: Re: ThumbGen Redux
Post by: mike_carton on January 21, 2019, 06:18:40 PM
Nice. I especially like the DVD/BD case effect around the picture.
Title: Re: ThumbGen Redux
Post by: mike_carton on January 29, 2019, 05:31:18 PM
I've updated ThumbGen to correctly retrieve the text used to justify the MPAA rating ("mild rude humor" and so on). Any pressing issues or corrections for anyone?
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 29, 2019, 06:11:34 PM
The only thing I noticed: The runtime in the "about" sheet is taken from the mediainfo data of the movie file, whereas the xml data seem to be taken from imdb. It of course be a template issue, which I have not checked jet.
Title: Re: ThumbGen Redux
Post by: mike_carton on January 29, 2019, 06:44:24 PM
%DURATION% is from MediaInfo and %RUNTIME% is from IMDB; both are in minutes. Obviously, one or the other can be chosen in the template design.

I myself prefer %DURATION% as it represents the actual file where as the IMDB info could represent some other version/edition of the movie or just a simple error.
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 30, 2019, 03:51:23 AM
As the template uses the actual "Duration" of the movie file that is OK for me, but how do I change the "Runtime" in the moviename.xml file into "Duration" ??
Title: Re: ThumbGen Redux
Post by: mike_carton on January 30, 2019, 02:11:48 PM
The IMDB field in the user interface ("Movie Information" panel "Runtime" field) can be updated to the DURATION value manually and the information XML can be generated using the "Generate .nfo file with this data" Obviously, a manual method.

ThumbGen can be modified to automatically do the same, but I'm wary of changing long-standing, clearly understood functionality.

Obviously, the issue with the discrepancy is that the Jukebox/Favorite view will show the IMDB Runtime value (because Mede8er will automatically retrieve it from XML file) and once you press ENTER, the about.jpg will show the real video file Duration.
Title: Re: ThumbGen Redux
Post by: Lupissimo on January 30, 2019, 02:14:59 PM
Thank you for the info. I am presently updating the xml file manually as you suggested, which is not a big thing! So I will stick to that.
Title: Re: ThumbGen Redux
Post by: CalBigGuy on March 22, 2019, 05:46:54 PM
Hey everybody!!
Has anybody made any modifications to ThumbGen so that it works correctly/fully with the changes that were made at TVDB for tv shows??
I used to get the cast and genre info, but I don't anymore.  And I saw somewhere that is was because of a change at TVDB.
Does anybody know anything about this, or if a fix is out there??
Thanks!!
Title: Re: ThumbGen Redux
Post by: mike_carton on March 25, 2019, 02:12:29 AM
TVRename works well for TV shows.
Title: Re: ThumbGen Redux
Post by: Gryzlacz on May 06, 2019, 07:10:20 AM
Hello. I have a problem. does not search for information on FilmWeb. pl  :-[
could you fix it? I care a lot about that.


Title: Re: ThumbGen Redux
Post by: DWoodhouse on October 05, 2019, 02:32:25 PM
I love the redux version, thank you for your work!
Is there still a downloadable version of Thumbgen Designer out there? Can't find a valid link for it (except some shady looking sites)