#116 Bug in Crop()

v2.5x
closed-works-for-me
Internals (76)
5
2004-06-28
2004-06-22
Boulder
No

This script produces distorted colors in YV12 (source clip
720x576) :

mpeg2source("c:\temp\captures\test.d2v")
Crop(16,4,-12,-4,align=true)

This does work:

mpeg2source("c:\temp\captures\test.d2v")
Crop(16,4,-8,-4,align=true)

In fact, the resulting width must be mod-8 or the colors
are screwed up. Deinterlacing before cropping doesn't
help, converting to YUY2 before cropping fixes the
problem.

Discussion

  • Klaus Post

    Klaus Post - 2004-06-28

    Logged In: YES
    user_id=578300

    Some codecs have problems with handling non-mod8 YV12 -> RGB
    conversion. Try adding a 4 pixel border either in the top or
    bottom, and your result is ok, or crop to mod8 width/height.

     
  • Klaus Post

    Klaus Post - 2004-06-28
    • assigned_to: nobody --> sh0dan
    • status: open --> closed-works-for-me
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks