GithubHelp home page GithubHelp logo

Comments (5)

CrendKing avatar CrendKing commented on September 16, 2024

Version to reproduce?

from avisynth_filter.

chainikdn avatar chainikdn commented on September 16, 2024

any version
you're just not using the old PAR value at all

from avisynth_filter.

CrendKing avatar CrendKing commented on September 16, 2024

I remember when I was reviewing your change, I theorized that someone put something like

return ColorBars(500, 300)

in the avs. I thought using script video's SAR as new DAR made sense.

Also, our results only differ if the original video's SAR is already different to the DAR in vih, i.e. newBmi->biWidth * newVih2->dwPictAspectRatioY != newBmi->biHeight * newVih2->dwPictAspectRatioX. You code would scale the DAR by the factor of new_sar / old_sar, while my code simply use new_sar. I don't have any video that meets the prerequisite, so I don't know if this is a right-or-wrong situation.

If you have any video and/or avs script that shows your logic makes more sense, I'm happy to change.

from avisynth_filter.

chainikdn avatar chainikdn commented on September 16, 2024

take a video with PAR != 1.0
imagine a script that does simple crop
what will you see?
#35 (comment)

from avisynth_filter.

CrendKing avatar CrendKing commented on September 16, 2024

I generated a video which is 1280x720 with some absurd DAR like 5:1, plugin a crop function in avs. I can see your logic would scale the 5:1 DAR to the cropped frames, while my logic would lose that DAR. I think preserving the property of the original video is more important. I'll switch to your logic.

a650891

AviSynthFilter.zip

from avisynth_filter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.