Movie thumbnailer (1 Viewer)

allanp81

Portal Pro
October 24, 2006
917
41
I've done a search but couldn't find anything so was wondering if anyone could answer the following for me:

Does anyone know what switches MP uses when it runs the mtn.exe to generate thumbs? I'd rather just set a scheduled task on my server to generate thumbs for my recordings rather than have MP generate thumbs for every single video.


Thanks
 

allanp81

Portal Pro
October 24, 2006
917
41
That doesn't help me though and isn't strictly what I asked for. I've seen that page and I can't figure out the right switches to get the as what MP will do.
 

Deda

Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Ok, in MP is like this (-c and -r came from config and can vary):

    Code:
    -D 6 -B 420 -E 600 -c 2 -r 2 -b 0.6 -t -i -w 0 -n -P    (timeout 15 sec)
    
    or if fail:
    
    -D 8 -B 420 -E 600 -c 2 -r 2 -b 0.6 -t -i -w 0 -n -P    (timeout 30 sec)
    
     //   -D 6         : edge detection; 0:off >0:on; higher detects more; try -D4 -D6 or -D8
     //   -B 420/E 600 : omit this seconds from the beginning / ending
     //   -c 2 / r 2   : # of column / # of rows
     //   -b 0.60      : skip if % blank is higher; 0:skip all 1:skip really blank >1:off
     //   -t           : time stamp off
     //   -i           : info text off
     //   -w 0         : width of output image; 0:column * movie width
     //   -n           : run at normal priority
     //   -P           : don't pause before exiting; override -p
     

    Migue

    Retired Team Member
  • Premium Supporter
  • January 27, 2006
    381
    305
    Florida
    From source code (VideoThumbCreator.cs):
    Code:
    // Params for mtm (http://moviethumbnail.sourceforge.net/usage.en.html)
    //   -D 8         : edge detection; 0:off >0:on; higher detects more; try -D4 -D6 or -D8
    //   -B 420/E 600 : omit this seconds from the beginning / ending TODO: use pre- / postrecording values
    //   -c 2 / r 2   : # of column / # of rows
    //   -b 0.60      : skip if % blank is higher; 0:skip all 1:skip really blank >1:off
    //   -h 100       : minimum height of each shot; will reduce # of column to fit
    //   -t           : time stamp off
    //   -i           : info text off
    //   -w 0         : width of output image; 0:column * movie width
    //   -n           : run at normal priority
    //   -W           : dont overwrite existing files, i.e. update mode
    //   -P           : dont pause before exiting; override -p

    EDIt: Doh, beaten to it!
     

    allanp81

    Portal Pro
    October 24, 2006
    917
    41
    That's it! Cheers!

    Although... all the thumbs it creates for my recordings have _s added to them. Is that correct?

    For instance:

    Barton Fink - Dave - 2009-12-20 - 22_00.ts

    becomes

    Barton Fink - Dave - 2009-12-20 - 22_00_s.jpg
     

    pilehave

    Community Skin Designer
  • Premium Supporter
  • April 2, 2008
    2,566
    521
    Hornslet
    Home Country
    Denmark Denmark
    MediaPortal creates two thumbnails for recorded tv, one is with "L" appended, so it's
    24 timer vi aldrig glemmer - Prinsesse Dianas død - DR2 - 2010-10-17.jpg
    and
    24 timer vi aldrig glemmer - Prinsesse Dianas død - DR2 - 2010-10-17L.jpg
     

    allanp81

    Portal Pro
    October 24, 2006
    917
    41
    Ok, so just running the commands that you posted don't seem to work then. It just creates a thumb with the _s.jpg at the end.
     

    Jay_UK

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

    A quick question.....

    Does MePo specify the video path/filename at the start or end of the parameter list for mtn? And is it quoted?

    Thanks,

    J.
    J.
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Hi guys,

    A quick question.....

    Does MePo specify the video path/filename at the start or end of the parameter list for mtn? And is it quoted?

    Thanks,

    J.
    J.

    On the end and it's quoted, ie:

    Code:
    string ExtractorArgs = string.Format(" -D 6 -B {0} -E {1} -c {2} -r {3} -b {4} -t -i -w {5} -n -P \"{6}\"",
                                               preGapSec, postGapSec, PreviewColumns, PreviewRows, blank, 0, aVideoPath);
     

    Users who are viewing this thread

    Top Bottom