ViewModeSwitcher plugin (Version 0.3) (1 Viewer)

hirscho

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

Thanks a lot and you are right. I did not get, that the default mode after a succesful letterbox detection is "zoom". This misunderstanding was caused by some testing I did before and I still struggle with a strange behaviour, where you might can help:

1) I start watching a movie with letterbox format (AR 4:3, letterbox) --> Letterbox detection is true --> VMS changes mode to zoom
2) Advertising block starts with AR change to 16:9 --> fallback rule fits --> VMS changes mode to normal
3) Movie block starts againg (AR 4:3, letterbox) --> The 4:3 rule fits, letterbox is true --> VMS changes to "smart streching"

Please have a look at the logs. Even if letterbox detection is true VMS does not switch to zoom mode. It seems to work only for the first detection.


2009-03-25 08:37:54.437500 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:54.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 16
2009-03-25 08:37:54.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 9
2009-03-25 08:37:54.437500 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:54.437500 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:54.437500 [Debug][ViewModeSwitcherThread]: AR:Normal AR Calc: 1,777778
2009-03-25 08:37:54.937500 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:54.937500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 16
2009-03-25 08:37:54.937500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 9
2009-03-25 08:37:54.937500 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:54.937500 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:54.937500 [Debug][ViewModeSwitcherThread]: AR:Normal AR Calc: 1,777778
< --- comment: Advertising block ends --->
2009-03-25 08:37:55.343750 [Debug][7]: PlaneScene: crop T, B : 0, 0
2009-03-25 08:37:55.343750 [Debug][7]: PlaneScene: crop L, R : 0, 0
2009-03-25 08:37:55.343750 [Info.][7]: PlaneScene: video WxH : 720x576
2009-03-25 08:37:55.343750 [Debug][7]: PlaneScene: video AR : 4:3
2009-03-25 08:37:55.343750 [Info.][7]: PlaneScene: screen WxH : 1272x666
2009-03-25 08:37:55.343750 [Debug][7]: PlaneScene: AR type : Normal
2009-03-25 08:37:55.343750 [Debug][7]: PlaneScene: PixelRatio : 1
2009-03-25 08:37:55.343750 [Debug][7]: PlaneScene: src : (0,0)-(720,576)
2009-03-25 08:37:55.343750 [Debug][7]: PlaneScene: dst : (191,0)-(1079,666)
2009-03-25 08:37:55.437500 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:55.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 4
2009-03-25 08:37:55.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 3
2009-03-25 08:37:55.437500 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:55.437500 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:55.437500 [Debug][ViewModeSwitcherThread]: AR:Normal AR Calc: 1,333333
2009-03-25 08:37:55.437500 [Info.][ViewModeSwitcherThread]: Rule "4:3" fits conditions.
2009-03-25 08:37:55.437500 [Info.][ViewModeSwitcherThread]: Switching to viewmode: NonLinearStretch
2009-03-25 08:37:55.437500 [Info.][ViewModeSwitcherThread]: The viewmode has been change to NonLinearStretch
< --- comment: VMS changes to NonLinearStretching--->
2009-03-25 08:37:55.453125 [Debug][7]: PlaneScene: crop T, B : 0, 0
2009-03-25 08:37:55.453125 [Debug][7]: PlaneScene: crop L, R : 0, 0
2009-03-25 08:37:55.453125 [Info.][7]: PlaneScene: video WxH : 720x576
2009-03-25 08:37:55.453125 [Debug][7]: PlaneScene: video AR : 4:3
2009-03-25 08:37:55.453125 [Info.][7]: PlaneScene: screen WxH : 1272x666
2009-03-25 08:37:55.453125 [Debug][7]: PlaneScene: AR type : NonLinearStretch
2009-03-25 08:37:55.453125 [Debug][7]: PlaneScene: PixelRatio : 1
2009-03-25 08:37:55.453125 [Debug][7]: PlaneScene: src : (0,23)-(720,551)
2009-03-25 08:37:55.453125 [Debug][7]: PlaneScene: dst : (0,0)-(1272,666)
2009-03-25 08:37:55.937500 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:55.937500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 4
2009-03-25 08:37:55.937500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 3
2009-03-25 08:37:55.937500 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:55.937500 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:55.937500 [Debug][ViewModeSwitcherThread]: AR:NonLinearStretch AR Calc: 1,333333
2009-03-25 08:37:56.437500 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:56.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 4
2009-03-25 08:37:56.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 3
2009-03-25 08:37:56.437500 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:56.437500 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:56.437500 [Debug][ViewModeSwitcherThread]: AR:NonLinearStretch AR Calc: 1,333333
2009-03-25 08:37:56.937500 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:56.937500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 4
2009-03-25 08:37:56.937500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 3
2009-03-25 08:37:56.937500 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:56.937500 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:56.937500 [Debug][ViewModeSwitcherThread]: AR:NonLinearStretch AR Calc: 1,333333
2009-03-25 08:37:57.437500 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:57.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 4
2009-03-25 08:37:57.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 3
2009-03-25 08:37:57.437500 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:57.437500 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:57.437500 [Debug][ViewModeSwitcherThread]: AR:NonLinearStretch AR Calc: 1,333333
2009-03-25 08:37:57.937500 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:57.937500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 4
2009-03-25 08:37:57.937500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 3
2009-03-25 08:37:57.937500 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:57.937500 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:57.937500 [Debug][ViewModeSwitcherThread]: AR:NonLinearStretch AR Calc: 1,333333
2009-03-25 08:37:58.437500 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:58.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 4
2009-03-25 08:37:58.437500 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 3
2009-03-25 08:37:58.437500 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:58.437500 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:58.437500 [Debug][ViewModeSwitcherThread]: AR:NonLinearStretch AR Calc: 1,333333
2009-03-25 08:37:58.437500 [Info.][ViewModeSwitcherThread]: Letterbox detection started
2009-03-25 08:37:58.468750 [Info.][ViewModeSwitcherThread]: BrightesColor in box ( 270, 273, 180, 28 ) is 0,9764706
2009-03-25 08:37:58.468750 [Info.][ViewModeSwitcherThread]: Center box is nearly black: False
2009-03-25 08:37:58.468750 [Info.][ViewModeSwitcherThread]: BrightesColor in box ( 270, 5, 180, 28 ) is 0
2009-03-25 08:37:58.468750 [Info.][ViewModeSwitcherThread]: Upper box is nearly black: True
2009-03-25 08:37:58.468750 [Info.][ViewModeSwitcherThread]: Letterbox detection count is 1 of maximal 1 allowed
2009-03-25 08:37:58.468750 [Info.][ViewModeSwitcherThread]: Letterbox detection ended - Result: True
< --- comment: Letterbox detection true, but no VMS does not change to zoom mode--->
2009-03-25 08:37:58.968750 [Debug][ViewModeSwitcherThread]: IsPlaying : True PlayingMediaDetected: True PlayBackJustStarted: False PlaybackStopped: False
2009-03-25 08:37:58.968750 [Debug][ViewModeSwitcherThread]: VideoAspectRatioX 4
2009-03-25 08:37:58.968750 [Debug][ViewModeSwitcherThread]: VideoAspectRatioY 3
2009-03-25 08:37:58.968750 [Debug][ViewModeSwitcherThread]: VideoWidth 720
2009-03-25 08:37:58.968750 [Debug][ViewModeSwitcherThread]: VideoHeight 576
2009-03-25 08:37:58.968750 [Debug][ViewModeSwitcherThread]: AR:NonLinearStretch AR Calc: 1,333333
 

kszabo

MP Donator
  • Premium Supporter
  • December 6, 2007
    796
    86
    Germany, Bayern
    Home Country
    Hungary Hungary
    :D works great here.

    My setup (helps maybe others) is very typical:
    - 16:9 TV
    - PAL SDTV (width 544, 704 and 720) with 4:3, 16:9 and letterboxed "fake 16:9" as 4:3
    - 50Hz HDTV (1080i50 and 720p50)
    - Mediaportal 1.0 final without SVNs
    - Vista 32 with EVR
    - patched core.dll for "smartstrech" (nonlinear strech) of 4:3 streams

    this does:

    - leave HDTV alone (viewmode=normal)
    - leave 16:9 alone (viewmode=normal)
    - smartstrech real 4:3 SDTV to 16:9
    - zoom letterboxed "fake 16:9" 4:3 to 16:9

    as it should be :D

    WAF is close to the max!!!! (except HTPC costs ;) )
    don´t forget to deactivate autocrop plugin!

    see attachments:
    - core.dll (put it into Mediaportal´s root, this does smartstretch instead 4:3 panscan)
    - settings to be imported into viewmodeswitcher plugin
     

    hirscho

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

    In order to demonstrate what I mean by "Just the first letterbox detection works" I have uploaded a small test video. Could you guys please check if letterbox detection works for you after the advertising block?

    Thanks a lot.

    VMS_Test.mpg
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    Hi hirscho

    Got your file working with these defaults, note letterbox detection is only enabled in the very last setting.

    sshot-23.jpg

    HTH
     

    grubi

    Portal Pro
    June 16, 2007
    1,207
    87
    127.0.0.1
    Home Country
    Germany Germany
    I have the following questions:

    1.) Which version of the plugin to use if you are on latest SVN?
    2.) Does LB detection work with EVR on Vista?
    3.) I tried a previous version on XP some time ago. There it was not possible to manually change Zoom mode if the plugin was active (after a short period it automatically switched back to the zoom mode acording to the ruleset). I found that DerBub also posted the question if it is possible to manually change zoom mode if the plugin is active but did not get an answer.

    Thank you very much for your help.

    BTW: I'm not to lazy to read the whole thread but I found some statements I'm not sure if they are still true with regard to the lastest plugin version.

    grubi.
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,052
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    1.) Which version of the plugin to use if you are on latest SVN?

    Bottom of first post :)

    2.) Does LB detection work with EVR on Vista?

    That's what I just setup for hirscho, using vista32

    3.) I tried a previous version on XP some time ago. There it was not possible to manually change Zoom mode if the plugin was active (after a short period it automatically switched back to the zoom mode acording to the ruleset). I found that DerBub also posted the question if it is possible to manually change zoom mode if the plugin is active but did not get an answer.

    Possible adverts could reset the aspect ratio to its default, but for a normal video file, it stays the same as selected.

    Regards
     

    grubi

    Portal Pro
    June 16, 2007
    1,207
    87
    127.0.0.1
    Home Country
    Germany Germany
    Thanks for the fast answer.
    For 3.) I will recheck that.

    :D


    Edit:

    OK you can change zoom mode manually. However overscan value of the rule is not reset and is still applied.
    Is this the intended behavour?

    Now I'm still confused but on a higher level.
    I did not find a way to setup a ruleset to apply smart stretch to normal 4:3 content and zoom mode to 4:3 letterbox content.

    What did I miss.
    Thanks.

    Edit2:

    Suggestion: having a fallback viemode without having a fallback overscan mode IMHO does not make sense as the result is undefined (the OS of the last active rule is always applied which is not predictable.
     

    hirscho

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

    Thanks for testing. In your case the test file works, because only two rules fit to the test video. "16:9 Letterbox --> Zoom" for the movie stream and "16:9 Orignal --> Normal" for the advertising block. Your rule "4:3 -> NonLinearStreching" never fits due to the video dimension (720x576). I also have movies with a dimension of 720x576 and 4:3 content, that should be watched in "NonLinearStreching" mode. Therefore my rule set is quite simple and it works, but only for the first letterbox detection.
     

    Attachments

    • Conf.jpg
      Conf.jpg
      83.8 KB

    kszabo

    MP Donator
  • Premium Supporter
  • December 6, 2007
    796
    86
    Germany, Bayern
    Home Country
    Hungary Hungary
    I
    2.) Does LB detection work with EVR on Vista?

    I confirm yes. Vista HomePremium 32bit, EVR, Cyberlink PDVD 7 codec.

    Just one more note for 4:3 detection:

    I have PAL DVB-S channels with 4:3 ratio with different resolution: 720x576, 704x576, 544x576, even 480x576!!! All on Astra 19°E. The 16:9 channels are all 720x576 (not sure).

    Another idea:
    what about nonlinear vertical streching of 21:9 cinemascope films to 16:9 :) ?
     

    Der_Bub

    MP Donator
  • Premium Supporter
  • June 17, 2008
    830
    60
    Cologne
    Home Country
    Germany Germany
    Hello,

    before a fresh installation, I forgert to export my settings. :oops:

    I have backups of all files (user Data & MP Folders), but can't find a file with the configuration data.

    Is there any (easy) way to recover my settings?

    Greetings

    BERND
     

    Users who are viewing this thread

    Top Bottom