Author Topic: ThumbGen Redux  (Read 47214 times)

Offline mike_carton

  • Experienced Member
  • **
  • Posts: 172
  • Helpful Contribution Status: +13/-1
ThumbGen Redux
« 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.

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
« Last Edit: January 17, 2019, 11:56:11 PM by mike_carton »

Offline mike_carton

  • Experienced Member
  • **
  • Posts: 172
  • Helpful Contribution Status: +13/-1
Re: ThumbGen Redux
« Reply #1 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%)
« Last Edit: January 23, 2018, 03:22:15 PM by mike_carton »

Offline Lupissimo

  • Senior Member
  • ***
  • Posts: 395
  • Helpful Contribution Status: +6/-0
Re: ThumbGen Redux
« Reply #2 on: January 23, 2018, 12:06:14 PM »
 :) :) :) This sounds great! Cant waít to test it!

voidths

  • Guest
Re: ThumbGen Redux
« Reply #3 on: January 23, 2018, 11:27:57 PM »
This is great! I'll test it out soon. Thank you for doing this!

Offline Lupissimo

  • Senior Member
  • ***
  • Posts: 395
  • Helpful Contribution Status: +6/-0
Re: ThumbGen Redux
« Reply #4 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

Offline mike_carton

  • Experienced Member
  • **
  • Posts: 172
  • Helpful Contribution Status: +13/-1
Re: ThumbGen Redux
« Reply #5 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.

Offline Lupissimo

  • Senior Member
  • ***
  • Posts: 395
  • Helpful Contribution Status: +6/-0
Re: ThumbGen Redux
« Reply #6 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.

Offline mike_carton

  • Experienced Member
  • **
  • Posts: 172
  • Helpful Contribution Status: +13/-1
Re: ThumbGen Redux
« Reply #7 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
« Last Edit: January 29, 2018, 01:04:02 PM by mike_carton »

Offline Lupissimo

  • Senior Member
  • ***
  • Posts: 395
  • Helpful Contribution Status: +6/-0
Re: ThumbGen Redux
« Reply #8 on: January 29, 2018, 02:11:06 PM »
Thank you for updating ThumGen!

Offline mike_carton

  • Experienced Member
  • **
  • Posts: 172
  • Helpful Contribution Status: +13/-1
Re: ThumbGen Redux
« Reply #9 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.

Offline Lupissimo

  • Senior Member
  • ***
  • Posts: 395
  • Helpful Contribution Status: +6/-0
Re: ThumbGen Redux
« Reply #10 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)

Offline mike_carton

  • Experienced Member
  • **
  • Posts: 172
  • Helpful Contribution Status: +13/-1
Re: ThumbGen Redux
« Reply #11 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?

Offline mike_carton

  • Experienced Member
  • **
  • Posts: 172
  • Helpful Contribution Status: +13/-1
Re: ThumbGen Redux
« Reply #12 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


Offline jer1956

  • Global Moder8or
  • M8er Addict
  • *****
  • Posts: 17 404
  • Helpful Contribution Status: +203/-55
Re: ThumbGen Redux
« Reply #13 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.

Offline Lupissimo

  • Senior Member
  • ***
  • Posts: 395
  • Helpful Contribution Status: +6/-0
Re: ThumbGen Redux
« Reply #14 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.