-
Notifications
You must be signed in to change notification settings - Fork 31
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
Implement stdout message format argument for vmaf command #269
Comments
|
TL;DR version: implementing an option to not change
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running
ab-av1 vmaf
, I want to keep the normal output (progress) but there should be an option forVMAF
score to be printed tostdout
. Basically the--stdout-format
argument behavior forsample-encode
command.In Linux, I tried a workaround by attempting to store the normal output in a variable but also print it to terminal with:
vmaf_output=$(ab-av1 vmaf [...] |& tee /dev/tty) [2025-01-11T03:41:39Z INFO ab_av1::command::vmaf] 2%, 147 fps, eta 16 minutes [2025-01-11T03:41:55Z INFO ab_av1::command::vmaf] 3%, 145 fps, eta 15 minutes
Unfortunately this causes
ab-av1
to change its output because it is now piped, as can be seen above. I do not find any usefulness to this behavior, especially because it prints data at a very slow interval - every 16 seconds - for whatever reason.With an option like
--stdout-format
, I can at least redirectstdout
to a file and read the score from there and also have the normal progress output in the terminal.Alternatively, the
--enc
argument could be made available to thevmaf
command and then I could use it to passffmpeg
's-progress
argument like this:--enc progress=/path/to/file
.The text was updated successfully, but these errors were encountered: