AutoCropper plugin (3 Viewers)

pierreye

Portal Member
November 26, 2006
18
0
Will this solve the aspect ration for 1024x768 output to tv in 16:9 format? Reason is Panasonic 42" PV60H HD model pixel is only 1024x768 but in 16:9 panel. My current solution is using stretch mode but will only be perfect for 16:9 material. If it is anamorphic then it will over stretch to fill up the whole screen.
 

ziphnor

Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    I have split my code such that the frame grabbing is part of the Core.dll. In addition there is an action and message for autocrop and for toggling autocrop. The autocropper itself has been placed among the process plugins.

    Personally I would very much like this to work dynamically

    Difficult customer :)

    Well, i have decided to humor you and go for dynamic cropping as well even though it requires a lot more code ( ie keeping track of playback start end events etc).

    However its very hard to get dynamic cropping right. Many movies have pauses in subtitles as long as 30sec to several minutes, and if the dynamic cropping doesnt crop when the subtitles disappear it implies having a very long memory which agains means it will be extremely conservative about cropping.

    I might have to go back to a more complicated analyze method where i actually check for subtitles so that its very conservative if it can remember seeing subtitles and otherwise aggresive. I also had some success with making it aggressive (short memory) for the top boundary and conservative on the bottom boundary.
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    I managed to get something decent working for the dynamic stuff by setting separate memory 'lengths' for top and bottom (longer for bottom) and using the smallest crop(=largest frame) in the memory to do the crop. This seems pretty stable, and the specific memory lengths will be adjustable in the setup for the autocropper. I need to experiment a bit with moving average vs. minimum.

    I also still need to load the saved settings in the autocropper (boring :) and add support for an option to limit the crop to be no wider than 16:9 ( a very wide 2.35:1 movie without subs in stretch mode will have people stretched in height otherwise). I wont promise alot deadline wise, even though there is not much work left, because its boring work :)

    I will however promise to deliver before christmas ;)
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    As a little status update, i hope to start using my new autocropper today or tomorrow on my own HTPC. So far i have not encountered any issues with my frame capturing/cropping technique, but we will have to see if it lasts :)
     

    ziphnor

    Retired Team Member
  • Premium Supporter
  • August 4, 2005
    755
    13
    Copenhagen
    Home Country
    Denmark Denmark
    The cropper is actually done, but i was apparently a little too quick in (ab)using cropping system already in place and got into some thread synch. issues on that account. Im currently considering how to best avoid this, but i have to be very careful because its right in the core of the playback code, so you REALLY dont want me to introduce bugs or performance issues :)

    Im still betting on xmas(but its going to be close ;)
     

    Users who are viewing this thread

    Top Bottom