Skip to content

How to access ffmpeg astats filter metadata through libmpv #14464

Answered by kasper93
dweymouth asked this question in Q&A
Discussion options

You must be logged in to vote

mpv -af "astats=metadata=1"

mp.get_property_native("af-metadata/astats.00")

or with label

mpv -af "@myfilter:astats=metadata=1"

mp.get_property_native("af-metadata/myfilter")

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.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@dweymouth
Comment options

@richardpl
Comment options

Comment options

You must be logged in to vote
1 reply
@kasper93
Comment options

Answer selected by dweymouth
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants