Skip to content
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

VMAF calculation issue with recent FFmpeg git #142

Closed
veikk0 opened this issue May 11, 2023 · 5 comments
Closed

VMAF calculation issue with recent FFmpeg git #142

veikk0 opened this issue May 11, 2023 · 5 comments

Comments

@veikk0
Copy link

veikk0 commented May 11, 2023

I'm having an issue with extremely low (~1) VMAF scores when using an FFmpeg built from recent git code. The score is always this low with any CRF, and ab-av1 keeps going lower and lower until the size of max-encoded-percent is reached and it exits.

I've tracked the issue down to the following FFmpeg commit: FFmpeg/FFmpeg@c94e9d0

Calculating VMAF normally using FFmpeg still works fine.

@veikk0
Copy link
Author

veikk0 commented May 11, 2023

Looking through the ab-av1 repository, I can't really find a reason why VMAF calculation is done with pipes instead of a single FFmpeg command.

If the reason is pixel format conversion, then the format filter is the way to go. I believe -pix_fmt is an alias for the format filter anyway and more of a legacy option, but it's more convenient when typing a command for a simple encode.

@alexheretic
Copy link
Owner

Yep pixel format & vfilter. It may be worth trying to crunch it into a single call. I'd need to regression test such a change.

@alexheretic
Copy link
Owner

#177 changes vmaf to a single ffmpeg call. In my testing this produces identical results to previous code though much simpler and easier to reproduce in a manual ffmpeg call.

@veikk0
Copy link
Author

veikk0 commented Jan 14, 2024

Nice! I'll do some before-after testing too and report back.

@veikk0
Copy link
Author

veikk0 commented Jan 14, 2024

#WorksForMe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants