-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect aspect ratio handling #48
Comments
You are correct, this is a mistake. Thank you for the report. 👍️ |
In these cases, it's still incorrect to pass You should override SAR instead, as per the code above: ( |
Great, thank you for the information.
|
No, it shouldn't be swapped, as this is SAR (sample aspect ratio aka 'the shape of the pixel'), not DAR. If you want to understand how it's derived, take a look at the source code above. |
Understood. PAL 16:9 = 512:461 Apologies if I've misread this again. 🙂 |
Yes, these values are correct. |
I have added the 16:9 I hope this is now solved. 👍 |
Currently,
ffmpeg
is invoked with-aspect 4:3
or16:9
.This is incorrect, as
4:3
is the display aspect ratio for922x576
(for PAL), but the output video (with default padding) is928px
wide.The fix would be to remove the
-aspect
option entirely, as the correct SAR is already provided in stream header byld-chroma-decoder
:https://github.com/oyvindln/vhs-decode/blob/d4c3f8504573b0d5cc1d1777dea7c5b69be6a161/tools/ld-chroma-decoder/outputwriter.cpp#L158
The text was updated successfully, but these errors were encountered: