AutoCropper plugin (1 Viewer)

maysider

Portal Pro
February 5, 2006
195
0
autocropper plugin is not sensitive enough

unfortunately the autocropper plugin is not sensitive enough.........sometimes Im not able to crop TV broadcast when any tiny disturbance appears
 

kkendall

Portal Pro
April 24, 2007
864
16
44
Gouda
Home Country
Netherlands Netherlands
Just a quick question.

Is this plugin also for the following:

- A 16:9 aspect ratio broadcast (4:3, horizontally stretched out to 16:9 for the correct aspect ratio) will be stretched out horizontally to 16:9 for the correct aspect ratio (filling the total screen on 16:9 tv's and with black bars above and below on 4:3 tv's).

- A 4:3 aspect ratio broadcast will be stretched out horizontally and vertically (filling the total screen on a 4:3 tv and on a 16:9 screen with black bars to the left and right of the screen)

- A 4:3 letterboxed broadcast (4:3 with black bars in the signal) will be stretched out horizontally and vertically. (filling the total screen on a 4:3 tv but with black bars above and below and on a 16:9 screen with these black bars cut off/zoomed off.

With MP (on my 4:3 tv) this can be done manually, but is it possible to auto detect this so MP can change this automatically according to the above 3 options? This is also what my stand alone decoder does automatically.
Or is this already an option in MP and haven't I found it yet?
 

ziphnor

Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    This plugin only provides one single functionality: It detects (horizontal) black-bars in the transmitted picture and removes it. It does not choose a zoom mode for you. That is it provides assistance in the case of a 4:3 transmission containing a 16:9 (for example) image and black bars.

    The functionality you seek is provided (i think) by the ViewModeSwitcher plugin:
    https://forum.team-mediaportal.com/viewmodeswitcher_plugin-t21365.html?t=21365
     

    dhasselqvist

    Member
    November 20, 2007
    75
    8
    Home Country
    Sweden Sweden
    Autocrop overrides the default horizontal crop

    Hi,

    Just tried out the autocropper plug-in (using stable 0.2.3.0) and it was working really great at cutting as much as needed at the vertical axis of the picture. But unfortunately it seems that after cropping it also removes the cropping hat I have applied on the horizontal axis under the configuration of each capture card. It seems to overwrite my value with 0 and this result in black borders on the sides of the picture since the broadcaster is sending a crappy signal. Is this changed in a later SVN or have I missed something in the configuration? So what I want to happen is that autocropper crops on the vertical axis but leaves my own configurable value of the constant horizontal cropping as it is.
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    Is this changed in a later SVN or have I missed something in the configuration?

    Unfortunately that current state is that it does override the horz. cropping. This is due the fact that that parameter is very hard to get at for the auto cropper. The planned solution was to simply add automatic horizontal cropping, however that has not been done yet (it is however very easy to do, so if someone ones to fix it, please feel free, i will make sure it gets committed).
     

    dhasselqvist

    Member
    November 20, 2007
    75
    8
    Home Country
    Sweden Sweden
    Unfortunately that current state is that it does override the horz. cropping. This is due the fact that that parameter is very hard to get at for the auto cropper. The planned solution was to simply add automatic horizontal cropping, however that has not been done yet (it is however very easy to do, so if someone ones to fix it, please feel free, i will make sure it gets committed).

    Thank you for your answer.

    I have looked into the source code now and I think I'm able to fix this altough it will take some time since I haven't compiled anything for MP before.

    I also have another thought of how I want to change the behaviour of the plug-in if I'm changing the horizontal cropping. Right now when the autocropper is in DYNAMIC mode it is wrongfully cropping films that are being sent out with black bars because they are wider than 16:9. I think that the dynamic mode should only be engaged when 4:3 letterbox content is detected. I.e. when the AR is 4:3 the DYNAMIC mode works as it does right now but when the AR is detected to be less than 4:3 then the plug-in goes to OFF mode. So perhaps only two modes are needed ON and OFF (where ON actually goes between DYNAMIC and OFF depending on current AR and OFF disables the plug-in completely). What do you think about this? Also I think it would be good to disable the possibility to do manual cropping when the AR is less than 4:3 because if you by mistake hit the crop button on a wider movie you have no way off disregarding the latest crop.

    The reason I'm asking is because I want your input on the changes for the plug-in so that I'm not doing something that you don't approve off. Off course I can always make "my own" modified variant of your plug-in but I think it would be best to continue with this one so that everyone can benefit from my changes (if the are good enough of course :) ).
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    I also have another thought of how I want to change the behaviour of the plug-in if I'm changing the horizontal cropping. Right now when the autocropper is in DYNAMIC mode it is wrongfully cropping films that are being sent out with black bars because they are wider than 16:9.

    It is quite intentional that the cropper removes black bars even wider than 16:9! It is the responsibility of the *zoom* mode to deal with this. The cropper simply determines which part of the video contains an image, it is up to the zoom mode to decide how to render this.

    Unless something has been changed the Normal zoom mode will display a letterboxed movie (16:9 or wider) *aspect correct* (ie people wont look too tall). On the other hand the 'Stretch' mode + autocrop will stretch the image onto the entire display area. It is important to be able to do both, because some people prefer to stretch a 16:9 movie to a 4:3 display or a really wide movie to a 16:9 display. This is consistent with what happens to non-letterboxed movies. If you on a 4:3 display watch a 16:9 movie without black bars, then stretch will give you tall people, while normal will give you the best aspect ratio correct image possible.

    Put another way, most people will want to use the *Normal* zoom mode with the autocropper, but if you want to use the entire array no matter what, then use AutoCrop + Stretch.
     

    dhasselqvist

    Member
    November 20, 2007
    75
    8
    Home Country
    Sweden Sweden
    I also have another thought of how I want to change the behaviour of the plug-in if I'm changing the horizontal cropping. Right now when the autocropper is in DYNAMIC mode it is wrongfully cropping films that are being sent out with black bars because they are wider than 16:9.

    It is quite intentional that the cropper removes black bars even wider than 16:9! It is the responsibility of the *zoom* mode to deal with this. The cropper simply determines which part of the video contains an image, it is up to the zoom mode to decide how to render this.

    Unless something has been changed the Normal zoom mode will display a letterboxed movie (16:9 or wider) *aspect correct* (ie people wont look too tall). On the other hand the 'Stretch' mode + autocrop will stretch the image onto the entire display area. It is important to be able to do both, because some people prefer to stretch a 16:9 movie to a 4:3 display or a really wide movie to a 16:9 display. This is consistent with what happens to non-letterboxed movies. If you on a 4:3 display watch a 16:9 movie without black bars, then stretch will give you tall people, while normal will give you the best aspect ratio correct image possible.

    Put another way, most people will want to use the *Normal* zoom mode with the autocropper, but if you want to use the entire array no matter what, then use AutoCrop + Stretch.

    Thanks for clearing that out for me. It is of course as you say that the autocropper already works as intended (except for the issue with horizontal cropping). The reason that it didn't work for me was that the normal zoom mode was always displaying everything in 4:3 AR since I was using a codec that didn't report the AR to MP. After your post i discovered this and changed to purevideo codec and normal zoom mode then displays all videos with correct AR.

    So I think the best solution for an all automatic experience with live-TV is then to use viewmodeswither-plugin to switch between the zoom modes depending on content AR and then combine this with autocropper-plugin set to dynamic mode to deal with letterbox content that has subtitles in the black bar.

    So I will go on and see if I can work out how to modify the source to deal with horizontal cropping as well. I will post in this tread when I have something working.
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    So I think the best solution for an all automatic experience with live-TV is then to use viewmodeswither-plugin to switch between the zoom modes depending on content AR and then combine this with autocropper-plugin set to dynamic mode to deal with letterbox content that has subtitles in the black bar.

    Thats sounds about right. As you might have noticed, earlier in this thread there was some talk about merging the autocropper functionality into the viewmode switcher plugin. Unfortunately i havent had any time to look at that, but it would certainly be the sensible thing to do.

    So I will go on and see if I can work out how to modify the source to deal with horizontal cropping as well. I will post in this tread when I have something working.

    Great! Always good when someone can pitch in :) If you have problems or questions about the code feel free to PM me.
     

    Users who are viewing this thread

    Top Bottom