Easy way to inspect current state of the MPV player
You can log any prop by simply sending a message to the script with the inspected props as the argument. The argument is variatic, so you can print as many properties as needed in a single line.
script-message logprop <property> <property> <property> ...
The script can log in two modes - basic string values (mp.get_property), and native values (mp.get_property_native). To log a property in the native mode, you have to prefix it with nat:<property>.
Examples:
script-message logprop volume
script-message logprop nat:vf
script-message logprop sid secondary-sid
script-message logprop nat:vf af nat:volume nat:duration
Output (with --vf-add=hflip --vf-add=vflip --vf-add=crop=100:200:300:400 and command script-message logprop vf nat:vf nat:af)
[logprop]
[logprop] vf = hflip,vflip,crop=%2%@0=100:%2%@1=200:%2%@2=300:%2%@3=400
[logprop] vf = table: 0x019bf9a45708 -> logging rows (#rows = 3)
[logprop] vf[1] = {name:hflip, enabled:true, params:{}}
[logprop] vf[2] = {name:vflip, enabled:true, params:{}}
[logprop] vf[3] = {name:crop, enabled:true, params:{@1:200, @3:400, @0:100, @2:300}}
[logprop] af = table: 0x019bf9a94dc8 -> logging rows (#rows = 0)