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

Use a single ffmpeg process to calculate VMAF #177

Merged
merged 2 commits into from
Jan 14, 2024
Merged

Conversation

alexheretic
Copy link
Owner

@alexheretic alexheretic commented Jan 14, 2024

Use a single ffmpeg process to calculate VMAF replacing multi process piping.

Previously separate ffmpeg processes were used to convert pixel format and to run --reference-vfilter. This PR changes this to a single ffmpeg call with appropriate -filter_complex args.

A simple vmaf call will now use -filter_complex something like:

[0:v]format=yuv420p10le,setpts=PTS-STARTPTS[dis];[1:v]format=yuv420p10le,setpts=PTS-STARTPTS[ref];[dis][ref]libvmaf=n_threads=16

This simplifies the code removing platform specific piping code. It also should make vmaf results easier to reproduce by users.

@alexheretic
Copy link
Owner Author

I get identical vmaf scores for av1 sample-encodes across a small selection of test videos. This is true for simple usage, I also tested with --vfilter "scale=600:-1,fps=10".

@alexheretic alexheretic merged commit 9012146 into main Jan 14, 2024
2 checks passed
@alexheretic alexheretic deleted the single-vmaf-process branch January 14, 2024 16:30
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

Successfully merging this pull request may close these issues.

1 participant