Skip to content

hydro63/mpv-logprop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

mpv-logprop

Easy way to inspect current state of the MPV player

Usage

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages