Replacement MTN (Thumbnailer) for H264 content (1 Viewer)

Jay_UK

Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    Yep... nothing private or secret about it..... but there is the embarassment factor - poor coding :eek:

    It was written in VB6... I have just moved it to VB.Net - So please find an updated version on the first post

    Not quite the C# that you guys use...but at least its not an obsolete language anymore :D

    I suppose I could look at porting it over....

    J.
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    Here is the source.

    I need to fully Q/A the source since moving to VB.Net - but it looks ok (and compiles). :D

    I'll hopefully check it later tonight to make sure I havent got any typos, etc....

    J.
     

    Attachments

    • MTN Replacement Source - V50.zip
      5.6 KB
    Last edited:

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Hi Jay,

    I did some testing with this and for MyPictures this is working great for me. Although for TV Recording (Multi seat setup) no thumbs are created at all. I used your files to enabled Debug logging (checked regkey, set to 1) but no debug logs are created, so i've attached the error & MP log for you. Not sure if this will do, but let me know ;)
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    Home Country
    United Kingdom United Kingdom
    Hi there,

    Thanks for testing and the feedback.

    What version of mtn.exe are you running?

    I think I know the issue - I will fix it this evening.

    I am puzzled by the debug not working. You are running a 64bit OS? Its one thing I didnt deal with - The HKLM\Software hive for 32 bits apps is different to the 64bit location on 64 bit OSs

    On a 64bit OS there are two locations:
    32bit programs = HKLM\Software\Wow6432Node\
    64bit programs = HKLM\Software

    So can you please ensure the key (and value) exist in: HKLM\Software\Wow6432Node\MTN\debug (set value to 1)

    And try re-runing the process (or you could create a file called "mtn.debug" in the moviethumbnailer directory)

    I will fix the registry issue tonight too.

    Thanks,

    J.
     
    Last edited:

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Hi Jay,

    i'm using current master mtn.exe (can't find any version details on the .exe) and yes, you are right :) i'm using x64 OS. I've adjusted the .reg keys (and attached them) and added debug option, which now works as expected.

    Rerunning the process for TV Recordings now and you'll find the logs attached. the only issue i'm having now is that most of the recordings have been 'blacklisted'.
     

    Attachments

    • Debug_OnOff_x64.rar
      443 bytes
    Last edited:

    infinite.loop

    Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,163
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    @HomeY
    Did this work with the original mtn.exe?

    Could this be caused by that UNC hack you use an the "file locked" error you posted about in the other thread?

    What if you access the recordings inside MyVideos? Does thumb generation work then? I'd guess it does - works here.
     
    Last edited:

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    I did the testing on my Testbox, and cleaned all thumbs up before that. My HTPC is running current master and has all thumbs for all recordings, so on that box current mtn.exe in combination with UNC paths works. The 'file locked' does interfere, but you see in the logs that the other recordings that mtn tries to get a thumb for, also fail.

    I've reported this to Jay_UK, got debug_logging working (he had to update the regkeys for that to work properly) and he's looking into it.

    Just added the Recordings folder to MyVideos. The same issues show up. Some files are being skipped because of the blacklisting, some don't work and some do. A few thumbs are being generated.
     

    infinite.loop

    Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,163
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    Just added the Recordings folder to MyVideos. The same issues show up. Some files are being skipped because of the blacklisting, some don't work and some do. A few thumbs are being generated.
    Did you clear the backlist before you accessed the recordings folder inside videos?

    That should be inside C:\ProgramData\Team MediaPortal\MediaPortal
    Blacklisting means that mtn.exe could not create the thumb when it last tried.
    Now that could still be a *leftover* from the original mtn.exe trying to create thumbs.

    Please delete the blacklist file any try again.

    *edit* or does it store that in the DB? I am not sure anymore. :confused:
     
    Last edited:

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Nope, how do i do that??
     

    Users who are viewing this thread

    Top Bottom