no more cropping while watching tv in normal mode? | Page 3

Discussion in 'fixed TV-Server / Client Bugs' started by brunoh, May 23, 2007.

  1. MPUserFromGER
    • Premium Supporter

    MPUserFromGER MP Donator

    Joined:
    July 31, 2006
    Messages:
    403
    Likes Received:
    3
    Location:
    Germany
    Ratings:
    +3 / 0
    Home Country:
    Germany Germany
    I can confirm this. German TV stations need some cropping and with todays SVN it works again. No side effects for me.



    Thanks a lot, great job!
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. micheld77

    micheld77 Portal Member

    Joined:
    May 7, 2007
    Messages:
    5
    Likes Received:
    0
    Ratings:
    +0 / 0
    I confirm too. It's working!

    Thank you very much to developpers!
    Very very good job!
     
  4. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    Home Country:
    Denmark Denmark
    Hi!

    Sadly something is broken too.

    tontsa can confirm this as well.

    When showing a 16:9 anamorphic channel on a 4:3 display you get the video displayed as 4:3 .-- so the result is stretched persons = wrong AR.

    I tried reverting MP back to rev. 172 ..and all is dandy again.

    black bars at top and bottom should be applied in order to have the 16:9 anamorphic video being shown in correct AR.

    I've modified SVN.
    I hope nothing is broke.

    /Gibman
     
  5. ziphnor
    • Premium Supporter

    ziphnor Retired Team Member

    Joined:
    August 4, 2005
    Messages:
    755
    Likes Received:
    13
    Location:
    Copenhagen
    Ratings:
    +13 / 0
    Home Country:
    Denmark Denmark
    Actually i think you did break something. The problem is that when you have big crop values the aspect ratio between the full video frame and the cropped video frame can be significantly different, and hence computing the destination rectangle based on the complete source frame will cause stretch distortion of the video.

    You wont see this much with small crop values, but if you use for example the autocropper (which will cut black bars out of letterboxed material) you will see it.

    Im sure the problem is that the way i calculated the cropped output frame ratio is wrong.

    I did it like this:
    At the time i thought that the PixelRatio would adjust for anamorphic sources, but that maybe thats just the displays pixel ratio?

    So whats the correct way to calculate the outputFrameRatio from the cropped dimensions?

    Im pretty sure that if that single calculation is correctly adjusted the previous revision will work just fine.

    BTW: Im on holiday now, and dont have a development machine nearby, so i cant fix it myself (i wouldnt be able to compile or test it anyway).
     
  6. ziphnor
    • Premium Supporter

    ziphnor Retired Team Member

    Joined:
    August 4, 2005
    Messages:
    755
    Likes Received:
    13
    Location:
    Copenhagen
    Ratings:
    +13 / 0
    Home Country:
    Denmark Denmark
    As mentioned in my post below, the problem that was experienced with anamorphic was due to the cropped output frame ratio being calculated wrong because it didnt take the source pixel aspect ratio into account.

    I believe a simple fix is all thats needed (to Geometry.cs rev 15177).

    Instead of the code line in the previous post it should read this:

    (fSourcePixelRatio is the aspect ratio of each pixel in the source.)

    As mentioned im on holiday and dont have a chance to test (or even compile) this change, so maybe someone else would be nice and do it?
     
  7. gibman
    • Premium Supporter

    gibman Retired Team Member

    Joined:
    October 4, 2006
    Messages:
    2,998
    Likes Received:
    1,321
    Occupation:
    Developer
    Location:
    Aarhus
    Ratings:
    +1,372 / 0
    Home Country:
    Denmark Denmark
    Ok, the stuff is SVN.
    Look out for the changelog then test it.

    So far no probs here.

    /Gibman
     
  8. ziphnor
    • Premium Supporter

    ziphnor Retired Team Member

    Joined:
    August 4, 2005
    Messages:
    755
    Likes Received:
    13
    Location:
    Copenhagen
    Ratings:
    +13 / 0
    Home Country:
    Denmark Denmark
    gibman, i think you applied my fix to the wrong SVN version as i can see that fCroppedOutputFrameRatio isnt used in the Normal zoom mode calculations (i discovered this as i got home from vacation to aspect incorrect cropping :)

    I corrected this, so hopefully now there is both aspect correct cropping and also no problems with anamorphic sources. Change included as of rev. 15728.
     
  9. puffin

    puffin New Member

    Joined:
    September 14, 2007
    Messages:
    3
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Scotland Scotland
    I wonder if this bug is the cause of the problems I reported here?

    Incidentally, by shutting down and restarting MP several times I can make it behave - very weird.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!