Created
August 8, 2023 00:57
-
-
Save Quackdoc/efd1b93e12cf915a4d2deeb9b4107cf6 to your computer and use it in GitHub Desktop.
MPV compare settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tonemapping=( | |
bt.2390 | |
bt.2446a | |
st2094-40 | |
st2094-10 | |
hable | |
mobius | |
reinhard | |
) | |
for i in ${tonemapping[@]}; do | |
echo 'set tone-mapping' $i | socat - /tmp/mpvsocket | |
echo 'show-text ${tone-mapping}' | socat - /tmp/mpvsocket | |
# THIS IS NOT ACCURATE, use this only for a general estimation and for batch purposes | |
# Maybe use ${playback-time} or time-pos | |
echo 'set screenshot-template "${tone-mapping}-${estimated-frame-number}"' | socat - /tmp/mpvsocket | |
echo 'screenshot' | socat - /tmp/mpvsocket | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment