Repository navigation
|
I develop a desktop music player using libmpv and I would like to make use of the metadata from the I am not sure what I am doing wrong. Basically trying to do what was described in #2645 but unfortunately there's no sample code in that issue once the original reporter got it working. |
Replies: 3 comments 3 replies
|
I do not think IIRC that lavfi metadata is converted to mpv metadata... |
|
mp.get_property_native("af-metadata/astats.00")or with label
mp.get_property_native("af-metadata/myfilter")This will return table with the keys from filter metadata like You can do the same with C API with nodes. Querying values directly like |
|
Thanks @kasper93 this worked great! In case this helps anyone else here's how I implemented this. My project is written in Go but I implemented this particular functionality in C to avoid the mpv_node having to cross the FFI boundary. My https://github.com/dweymouth/supersonic/blob/92d2fb0/backend/player/mpv/peaks.c |
mpv -af "astats=metadata=1"or with label
mpv -af "@myfilter:astats=metadata=1"This will return table with the keys from filter metadata like
lavfi.astats.Overall.Peak_level.You can do the same with C API with nodes.
Querying values directly like
mp.get_property_native("af-metadata/astats.00/lavfi.astats.Overall.Peak_level")is currently broken, after a05b847.