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,

    I know... I will test over the next few days... :)

    I'm keen to get my MTN working, as it might be some time until the code gets into Mediaportal (might be 1.3.0Final)....and I am running a custom SVN, so unless I merge the branch/patch file, it will be easier for me to use a standalone MTN file for the moment ;)

    Plus... I wont let this little MTN program beat me... I'm determined to get it working lol ;)

    J.
     

    Jay_UK

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

    I will try not to cry...but would you be so kind as to send me the mtn_replacement log file and the mtn_replacement ffmpeg log file.

    Thanks,

    J.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Yeah :)

    You did it, it works better.
    Sou you create each tile and regroup it :)
    Nice, did it speed it ?
     

    Jay_UK

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

    I've tried to build intelligence in to the program. Some of which is crudely done by MePo and it's fallback values.

    If no width is given for the thumb, then the size matches the source. If no source can be obtained 1270 is assumed.

    If the begin or end skips are too large it changes them to be a percentage of the length. If no duration can be obtained it assumes 300 seconds.

    Individual tiles are produced based on the thumb size divided by the number of tiles. They are then tiled by internal code to produced the final thumb.

    The interval between the thumbs is based upon the time between the begin and end skips divided by number of tiles.

    I think that's it (plus I've had enough typing this post on my iPhone) lol

    J.
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    V59, work
    ever wrong ratio ! and big side in storage
     
    Last edited:

    Jay_UK

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

    What do you mean wrong aspect ratio?

    The total thumbnail size will be the size of the original source (if no size is specified).

    So in the case above 1920 x 800.

    Then you decided you wanted two rows x 1 column - therefore the width of the image will be 1920, but the height of each tile/frame will now be 800 / 2 = 400

    So the individual tiles will be 1920x400.

    What do you expect them to be?

    I can see several ways of handling this:

    Shrink the width of the tiles to maintain aspect ratio (and then fill the gaps with black?)
    Crop the image?
    Alter the overall thumb size to maintain aspect ratio (this will keep the aspect - but will mean the thumbnail will possibly be a different size depending on source?

    The original source will be large...they might be 1920x800 images!

    J.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom