Intelligent Frame Correction - PlugIn (44 Viewers)

hirscho

Portal Pro
December 24, 2006
186
20
Home Country
Germany Germany
Hi Marvin

Thanks for the new version with the "left/right bar" flag. Maybe one additional suggestion regarding usability: Shouldn't IFC be activated by default even if you make use of the option to de-/activate it manually"? I mean, if you use IFC, it will cover 95% of all movies and perhaps there are rare videos, where you would like to deactivate the functionlity in order to select a display mode manually. In this case you could deactivate IFC by using "F4".

Regards

Oliver
 

Marvman

Retired Team Member
  • Premium Supporter
  • November 14, 2007
    1,163
    735
    Bavaria
    Home Country
    Germany Germany
    Hi Marvin

    Thanks for the new version with the "left/right bar" flag. Maybe one additional suggestion regarding usability: Shouldn't IFC be activated by default even if you make use of the option to de-/activate it manually"? I mean, if you use IFC, it will cover 95% of all movies and perhaps there are rare videos, where you would like to deactivate the functionlity in order to select a display mode manually. In this case you could deactivate IFC by using "F4".

    Regards

    Oliver

    I already finished the next version :D, but didn't uploaded yet.

    Your suggestion is good for all who want to skip some movies etc, but for 95% they don't have to deactivate IFC.

    What about the other side, some people might want to activate IFC for some movies, they have to press F4 every time.

    Maybe we should make a poll or somthing about it, what do you guys think?
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Home Country
    Hungary Hungary
    Hi Marvin,

    can you find an method for 14:9 (letter boxed) content? The 16:9 cutter cut too big. :(

    thx
     

    fmulders

    MP Donator
  • Premium Supporter
  • June 3, 2009
    99
    14
    52
    Home Country
    Netherlands Netherlands
    Marvin,

    I found a problem with version 0.9.5mpi.
    The setting "TV Edge Crop" is not working anymore. The setting is not saved. When you set it on a number and save and close, then close MP-setting.
    Now open MP-settings again and look at the setting of the plugin. All numbers from TV Edge Crop are set back to "0".

    Then I want to uninstall your plugin, to reinstall an older version, but that is not possible. (MP message: "Invalid package !").

    (I managed to install the 0.9.2.1.mpi again by booting in savemode and run it then)

    I hope you can fix this, and thanks a lot for this great plugin!
     

    wouter1971

    MP Donator
  • Premium Supporter
  • November 19, 2008
    910
    143
    Purmerend, Holland
    Home Country
    Netherlands Netherlands
    Marvin,
    Then I want to uninstall your plugin, to reinstall an older version, but that is not possible. (MP message: "Invalid package !").

    De-install the package with the MediaPortal Extention Installer you can find it in the Team Mediaportal / Mediaportal Start menu.
    Don't know why the developers don't fix this issue or get rit of the de-install option in the configuration as it does not work for any package.
     

    Marvman

    Retired Team Member
  • Premium Supporter
  • November 14, 2007
    1,163
    735
    Bavaria
    Home Country
    Germany Germany
    Hi Marvin,

    can you find an method for 14:9 (letter boxed) content? The 16:9 cutter cut too big. :(

    thx

    First I want to fix all reported issues and then, we will speak about the 14:9 format, then I'll need you help, so stay tuned.

    Marvin,

    I found a problem with version 0.9.5mpi.
    The setting "TV Edge Crop" is not working anymore. The setting is not saved. When you set it on a number and save and close, then close MP-setting.
    Now open MP-settings again and look at the setting of the plugin. All numbers from TV Edge Crop are set back to "0".

    Then I want to uninstall your plugin, to reinstall an older version, but that is not possible. (MP message: "Invalid package !").

    (I managed to install the 0.9.2.1.mpi again by booting in savemode and run it then)

    I hope you can fix this, and thanks a lot for this great plugin!

    Strange this works here like bevor, I didn't touch the save/export/import part.
    Can you attach the configuration.log file

    Thank you!
     

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,743
    1,754
    New Zealand
    Home Country
    New Zealand New Zealand
    Hi

    I have 16:9 (1.78 aspect ratio), 1920x1080 display
    If I play 4:3 content i would like to apply a mild crop (say 2.5% top + bottom) and a mild non linear stretch (say 20% wider)
    I would like to leave other content alone

    eg. 640x480 (4:3, 1.33 aspect ratio) video
    --> cropped to 640x456
    --> then non linear stretch to 768x456 (1.68 aspect ratio)
    so i still get black bars, however they are a lot smaller


    I find that the current non linear stretch mode. stretchs too agressively and crops too much.

    Is this possible with your plugin?

    ___

    I would like to see a plugin that basically uses the following logic

    Code:
    XX% (crop) is selectable by user
    YY% (non linear stretch) is selected by user
    
    Step 1.
    
    User selectable pixel crop [optional]
    
    Step 2.
    
    Remove any detectable black bars from top or sides [optional as processer intensive]
    
    Step 3. 
    
    If Processed Video Aspect ratio = Monitor Aspect ratio then goto End.
    If Processed Video Aspect ratio < Monitor Aspect ratio then non linear horizontal stretch by YY%
       (do not stretch any wider than monitor aspect ratio)
    If Processed Video Aspect ratio > Monitor Aspect ratio then non linear vertical stretch by YY%
       (do not stretch any taller than monitor aspect ratio)
    
    Step 4.
    
    If Processed Video Aspect ratio = Monitor Aspect ratio then goto End.
    If Processed Video Aspect ratio < Monitor Aspect ratio then crop top and bottom by XX%
       (do not crop to any wider than monitor aspect ratio)
    If Processed Video Aspect ratio > Monitor Aspect ratio then crop sides by XX%
       (do not crop to any taller than monitor aspect ratio)
    
    End.
    
    PS - The user could swap the order of Step 3/4 if he wished, but i guess you would want to stretch first
         because you don't loose any pixels.
    
    PPS - You could also add a minimun width/height for cropping.  Because if you had an extremely low res
          video say 320x240 you probably would want to avoid cropping at all costs because it has so few pixels.
     

    fmulders

    MP Donator
  • Premium Supporter
  • June 3, 2009
    99
    14
    52
    Home Country
    Netherlands Netherlands
    Marvin,
    Then I want to uninstall your plugin, to reinstall an older version, but that is not possible. (MP message: "Invalid package !").

    De-install the package with the MediaPortal Extention Installer you can find it in the Team Mediaportal / Mediaportal Start menu.
    Don't know why the developers don't fix this issue or get rit of the de-install option in the configuration as it does not work for any package.

    Thanks for the tip!
    It is so easy, I never thought about it :oops:
    :D

    Strange this works here like bevor, I didn't touch the save/export/import part.
    Can you attach the configuration.log file

    I try to reproduce the issue tomorro. (my wife is watching TV:rolleyes:)
    When I have the same problem again, I will send the configuration.log.
     

    wouter1971

    MP Donator
  • Premium Supporter
  • November 19, 2008
    910
    143
    Purmerend, Holland
    Home Country
    Netherlands Netherlands
    Martin: Logfile for 4:3 picture in 16:9 video (ts file from earlier in the thread):

    2009-10-28 22:33:02.533814 [Debug][I.F.C.: processingThread]: I.F.C.: perform setup: g_vmr: 1,777778 (used) ; TV AspectRatio: 1,777778 ; g_Player.GetVideoFormat(): 16:9
    2009-10-28 22:33:02.533814 [Debug][I.F.C.: processingThread]: I.F.C.: Video Edge Cropping...
    2009-10-28 22:33:02.533814 [Info.][I.F.C.: processingThread]: PlaneScene: Crop: top:0, bottom:0, left:0, right:0
    2009-10-28 22:33:02.549439 [Info.][I.F.C.: processingThread]: PlaneScene: Crop: top:1, bottom:1, left:1, right:1
    2009-10-28 22:33:02.580689 [Debug][21]: PlaneScene: crop T, B : 1, 1
    2009-10-28 22:33:02.580689 [Debug][21]: PlaneScene: crop L, R : 1, 1
    2009-10-28 22:33:02.580689 [Info.][21]: PlaneScene: video WxH : 1920x1080
    2009-10-28 22:33:02.580689 [Debug][21]: PlaneScene: video AR : 16:9
    2009-10-28 22:33:02.580689 [Info.][21]: PlaneScene: screen WxH : 1840x1048
    2009-10-28 22:33:02.580689 [Debug][21]: PlaneScene: AR type : Normal
    2009-10-28 22:33:02.580689 [Debug][21]: PlaneScene: PixelRatio : 1
    2009-10-28 22:33:02.580689 [Debug][21]: PlaneScene: src : (1,1)-(1919,1079)
    2009-10-28 22:33:02.580689 [Debug][21]: PlaneScene: dst : (0,6)-(1840,1040)
    2009-10-28 22:33:02.674439 [Debug][21]: FrameGrabber: Creating new frame grabbing surface
    2009-10-28 22:33:02.830689 [Debug][I.F.C.: processingThread]: I.F.C.: perform I.F.C.: g_vmr: 1,777778 (used) ; TV AspectRatio: 1,777778 ; Picture AspectRatio: 1,777778 ; g_Player.GetVideoFormat(): 16:9
    2009-10-28 22:33:02.830689 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for control area
    2009-10-28 22:33:02.830689 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 41 , Y: 46 , Height: 10 , Width: 10
    2009-10-28 22:33:02.830689 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 787 , Y: 496 , Height: 108 , Width: 192
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 48
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 61
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for black area one
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 31 , Y: 2 , Height: 9 , Width: 30
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 595 , Y: 21 , Height: 97 , Width: 576
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 35
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 174
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for left/right area
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 2 , Y: 21 , Height: 60 , Width: 6
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 38 , Y: 226 , Height: 648 , Width: 115
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 0
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 0
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for control area
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 41 , Y: 46 , Height: 10 , Width: 10
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 787 , Y: 496 , Height: 108 , Width: 192
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 48
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 61
    2009-10-28 22:33:02.861939 [Debug][I.F.C.: processingThread]: I.F.C.: black bar detected in the black bar area LR: count=1
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: perform I.F.C.: g_vmr: 1,777778 (used) ; TV AspectRatio: 1,777778 ; Picture AspectRatio: 1,777778 ; g_Player.GetVideoFormat(): 16:9
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for control area
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 41 , Y: 46 , Height: 10 , Width: 10
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 787 , Y: 496 , Height: 108 , Width: 192
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 104
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 178
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for black area one
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 31 , Y: 2 , Height: 9 , Width: 30
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 595 , Y: 21 , Height: 97 , Width: 576
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 63
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 134
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for left/right area
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 2 , Y: 21 , Height: 60 , Width: 6
    2009-10-28 22:33:08.033814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 38 , Y: 226 , Height: 648 , Width: 115
    2009-10-28 22:33:08.049439 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 0
    2009-10-28 22:33:08.049439 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 0
    2009-10-28 22:33:08.049439 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for control area
    2009-10-28 22:33:08.049439 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 41 , Y: 46 , Height: 10 , Width: 10
    2009-10-28 22:33:08.049439 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 787 , Y: 496 , Height: 108 , Width: 192
    2009-10-28 22:33:08.049439 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 104
    2009-10-28 22:33:08.049439 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 178
    2009-10-28 22:33:08.049439 [Debug][I.F.C.: processingThread]: I.F.C.: black bar detected in the black bar area LR: count=1


    Logfile of 21:9 picture in 16:9 DVD video (CARS Movie):

    2009-10-28 22:33:40.736939 [Debug][I.F.C.: processingThread]: I.F.C.: perform I.F.C.: g_vmr: 1,777778 (used) ; TV AspectRatio: 1,777778 ; Picture AspectRatio: 1,25 ; g_Player.GetVideoFormat(): 0:0
    2009-10-28 22:33:40.736939 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for control area
    2009-10-28 22:33:40.736939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 41 , Y: 46 , Height: 10 , Width: 10
    2009-10-28 22:33:40.736939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 295 , Y: 264 , Height: 57 , Width: 72
    2009-10-28 22:33:40.736939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 107
    2009-10-28 22:33:40.736939 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 246
    2009-10-28 22:33:40.736939 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for black area one
    2009-10-28 22:33:40.736939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 31 , Y: 2 , Height: 9 , Width: 30
    2009-10-28 22:33:40.736939 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 223 , Y: 11 , Height: 51 , Width: 216
    2009-10-28 22:33:40.752564 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 0
    2009-10-28 22:33:40.752564 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 0
    2009-10-28 22:33:40.752564 [Debug][I.F.C.: processingThread]: I.F.C.: black bar detected in the first black bar area: count=1
    2009-10-28 22:33:40.752564 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for left/right area
    2009-10-28 22:33:40.752564 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 2 , Y: 21 , Height: 60 , Width: 6
    2009-10-28 22:33:40.752564 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 14 , Y: 120 , Height: 345 , Width: 43
    2009-10-28 22:33:40.752564 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 104
    2009-10-28 22:33:40.752564 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 255
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: perform I.F.C.: g_vmr: 1,777778 (used) ; TV AspectRatio: 1,777778 ; Picture AspectRatio: 1,25 ; g_Player.GetVideoFormat(): 0:0
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for control area
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 41 , Y: 46 , Height: 10 , Width: 10
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 295 , Y: 264 , Height: 57 , Width: 72
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 160
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 255
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for black area one
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 31 , Y: 2 , Height: 9 , Width: 30
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 223 , Y: 11 , Height: 51 , Width: 216
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 0
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 0
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: black bar detected in the first black bar area: count=1
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for left/right area
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 2 , Y: 21 , Height: 60 , Width: 6
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 14 , Y: 120 , Height: 345 , Width: 43
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 89
    2009-10-28 22:33:45.783814 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 255
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: perform I.F.C.: g_vmr: 1,777778 (used) ; TV AspectRatio: 1,777778 ; Picture AspectRatio: 1,25 ; g_Player.GetVideoFormat(): 0:0
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for control area
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 41 , Y: 46 , Height: 10 , Width: 10
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 295 , Y: 264 , Height: 57 , Width: 72
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 54
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 255
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for black area one
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 31 , Y: 2 , Height: 9 , Width: 30
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 223 , Y: 11 , Height: 51 , Width: 216
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 0
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 0
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: black bar detected in the first black bar area: count=1
    2009-10-28 22:33:50.815064 [Debug][I.F.C.: processingThread]: I.F.C.: scanning for left/right area
    2009-10-28 22:33:50.830689 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in %: X: 2 , Y: 21 , Height: 60 , Width: 6
    2009-10-28 22:33:50.830689 [Debug][I.F.C.: processingThread]: I.F.C.: ScanArea in px: X: 14 , Y: 120 , Height: 345 , Width: 43
    2009-10-28 22:33:50.830689 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Median: 187
    2009-10-28 22:33:50.830689 [Debug][I.F.C.: processingThread]: I.F.C.: Gray Max: 255

    Very curious to know what the problem is, have this since the beginning of ifc :)
     

    Users who are viewing this thread

    Top Bottom