Thumbnail generation - design problem: thumbnails are almost same and not very informative. (1 Viewer)

regeszter

Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    How many is the time offset? Can you attache a debug log?

    The ffmpeg runs with 100% cpu usage but it runs as lower priority process.

    Here is a log from my system (C2D laptop, the movie is on a network share, with gigabit connection):

    [2013-07-18 13:20:56,253] [Log ] [MPMain ] [DEBUG] - Thumb refresh from context menu: M:\NAS\Videók\Made.In.Hungaria.2009.720p.mkv
    [2013-07-18 13:20:56,263] [Log ] [MPMain ] [DEBUG] - VideoThumbCreator: random value: 56
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: DLL Version : MediaInfoLib - v0.7.61
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Inspecting media : M:\NAS\Videók\Made.In.Hungaria.2009.720p.mkv
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Parse speed : 0.3
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: FrameRate : 25
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Width : 1280
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Height : 544
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AspectRatio : widescreen
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoCodec : AVC [ "avc.png" ]
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: Scan type : progressive
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: IsInterlaced : False
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoResolution : 720P
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: VideoDuration : 6556000
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioRate : 48000
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioChannels : 6 [ "5.1.png" ]
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: AudioCodec : DTS [ "dts.png" ]
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasAudio : True
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasVideo : True
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: HasSubtitles : False
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [INFO ] - MediaInfoWrapper.MediaInfoWrapper: NumSubtitles : 0
    [2013-07-18 13:20:56,659] [Log ] [MPMain ] [DEBUG] - M:\NAS\Videók\Made.In.Hungaria.2009.720p.mkv duration is 1800, TimeBetweenFrames is 1
    [2013-07-18 13:20:56,660] [Log ] [MPMain ] [DEBUG] - VideoThumbCreator: No thumb in share M:\NAS\Videók\Made.In.Hungaria.2009.720p.jpg - trying to create one with arguments: -loglevel quiet -ss 176 -i "M:\NAS\Videók\Made.In.Hungaria.2009.720p.mkv" -vf select=isnan(prev_selected_t)+gte(t-prev_selected_t\,1),yadif=0:-1:0,scale=600:337,setsar=1:1,tile=1x1 -vframes 1 -vsync 0 -an "M:\NAS\Videók\Made.In.Hungaria.2009.720p_s.jpg"
    [2013-07-18 13:20:58,459] [Log ] [MPMain ] [DEBUG] - Refresh success!

    It takes 2 seconds. 1x1 thumb, 2 minutes time offset, 720p, 7GB file size.
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    I will try to produce log in the day @HomeY can supply it for sure :)
    about setting : 2x2 and 1 offset
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Yes, the 2x2 is slow. I think we have to make a decision regards performance and feature.

    A. 1x1 thumb is fast enough to use (2-3 sec).
    B. 2x2 is slow (20-30 sec in my system) with % based thumbs.

    What can we do?

    1. reject everything.
    2. keep A and use the original method with B.
    3. keep A and use the original method with B but use the time offset (mixed code)
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    Yes, the 2x2 is slow. I think we have to make a decision regards performance and feature.

    A. 1x1 thumb is fast enough to use (2-3 sec).
    B. 2x2 is slow (20-30 sec in my system) with % based thumbs.

    What can we do?

    1. reject everything.
    2. keep A and use the original method with B.
    3. keep A and use the original method with B but use the time offset (mixed code)

    2x2 on my server (running i7-2600k) takes over 2 minutes (sometimes even 3!) for every thumb when i test. about 35% CPU load of 1 ffmpeg proces.
    Tested on 7GB sized HD recordings. I'll see if i can get the logs asap :)
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    2x2 on my server (running i7-2600k) takes over 2 minutes (sometimes even 3!) for every thumb when i test. about 35% CPU load of 1 ffmpeg proces.
    Tested on 7GB sized HD recordings. I'll see if i can get the logs asap :)
    The max running is limited to 2 mins. After 2 minutes, a kill process is running.

    The ffmpeg is very slow if there is gap between thumbs.
     

    Jay_UK

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

    I would not use ffmpeg to generate the tiled thumbs - I know its "clunky" to tile, but use it to grab the individual frames (called once for each frame/grab) and then tile the frames separately.

    I went through this pain with MTN replacement (and when I started to merge the code into MePo - although never progressed it due to personal issues)

    J.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    49
    ::1
    Home Country
    Netherlands Netherlands
    And here are the logs from the thumbs attempt last night ;)
    First thumb has a timestamp of 20:36 and the last 1 was made @ 00:57
    that's 4,5 hours for 122 high quality 2x2 thumbs (and that covers all recordings), with a total size of 39,3 MB.
     
    Last edited:

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    And here are the logs from the thumbs attempt last night ;)
    First thumb has a timestamp of 20:36 and the last 1 was made @ 00:57
    that's 4,5 hours for 122 high quality 2x2 thumbs (and that covers all recordings), with a total size of 39,3 MB.

    As I see lot of process ran longer then 2 minutes and it was killed. :(
     

    Users who are viewing this thread

    Top Bottom