Comments (5)
Version to reproduce?
from avisynth_filter.
any version
you're just not using the old PAR value at all
from avisynth_filter.
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.
take a video with PAR != 1.0
imagine a script that does simple crop
what will you see?
#35 (comment)
from avisynth_filter.
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.
from avisynth_filter.
Related Issues (20)
- DVD Video + LAV Filters + AVSF = green bar 16 pixel wide HOT 2
- PotPlayer / EVR / 10-bit HOT 60
- Video freezing while switching subtitles HOT 17
- Some videos are broken with avisynth_filter HOT 10
- Can't use VapourSynth or open the properties page without crashing HOT 16
- Aspect ratio HOT 12
- GetInputSourcePath HOT 7
- Force square pixels (DAR=SAR) HOT 7
- Frame counter resets to 0 on seek HOT 1
- AviSynthPlus-RIFE colorspace errors HOT 3
- Chroma is broken when using LWlibavVideoSource+MPC-HC+AVSF HOT 3
- _AbsoluteTime resets on seek HOT 2
- vs-rife "RIFE: cuda is not available" HOT 3
- Dolby Vision support HOT 2
- How to implement DirectShow filter graph and custom video renderer HOT 4
- CSynthFilter::TraverseFiltersInGraph() fails if audio-only file source is in filter graph HOT 4
- Feature request: Allow avisynth filter to be used system wide, like ffdshow HOT 5
- MPC-BE x64 when to vs.RGBS freeze HOT 3
- TFM with Avisynth Filter make the Player to not start playing. HOT 6
- AviSynth Filter support for old AviSynth FrameServer 2.6.0? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avisynth_filter.