diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-04-10 21:24:06 +0200 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-04-15 19:34:40 +0200 |
commit | e720159f72be2a816db849acb286f36a1ac4622b (patch) | |
tree | 8ea4ca753638abc96c16af0e8972194d39a51a57 /demux/stheader.h | |
parent | 3995cd3714d2768f56c234633d1839f83746233b (diff) | |
download | mpv-e720159f72be2a816db849acb286f36a1ac4622b.tar.bz2 mpv-e720159f72be2a816db849acb286f36a1ac4622b.tar.xz |
player/command: add video-codec-info and audio-codec-info
Adds support for extracting codec profile. Old properties are redirected
to new one and removed from docs. Likely will stay like that forever as
there is no reason to remove them.
As a effect of unification of properties between audio and video,
video-codec will now print codec (format) descriptive name, not decoder
long name as it were before. In practice this change fixes what docs
says. If you really need decoder name, use the `track-list/N/decoder-desc`.
Diffstat (limited to 'demux/stheader.h')
-rw-r--r-- | demux/stheader.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/demux/stheader.h b/demux/stheader.h index 438ef7db41..4f33bbc711 100644 --- a/demux/stheader.h +++ b/demux/stheader.h @@ -72,6 +72,12 @@ struct mp_codec_params { // E.g. "h264" (usually corresponds to AVCodecDescriptor.name) const char *codec; + // Usually corresponds to AVCodecDescriptor.long_name + const char *codec_desc; + + // Corresponding codec profile + const char *codec_profile; + // Usually a FourCC, exact meaning depends on codec. unsigned int codec_tag; |