mirror of
https://github.com/mpv-player/mpv
synced 2025-04-18 05:07:18 +00:00
command: export canonical ffmpeg version identifier
Was printed only with "mpv -h" or so.
This commit is contained in:
parent
d7de123110
commit
4bb94f1306
@ -2028,6 +2028,13 @@ Property list
|
|||||||
Return the configuration arguments which were passed to the build system
|
Return the configuration arguments which were passed to the build system
|
||||||
(typically the way ``./waf configure ...`` was invoked).
|
(typically the way ``./waf configure ...`` was invoked).
|
||||||
|
|
||||||
|
``ffmpeg-version``
|
||||||
|
Return the contents of the ``av_version_info()`` API call. This is a string
|
||||||
|
which identifies the build in some way, either through a release version
|
||||||
|
number, or a git hash. This applies to Libav as well (the property is
|
||||||
|
still named the same.) This property is unavailable if mpv is linked against
|
||||||
|
older FFmpeg and Libav versions.
|
||||||
|
|
||||||
``options/<name>`` (RW)
|
``options/<name>`` (RW)
|
||||||
Read-only access to value of option ``--<name>``. Most options can be
|
Read-only access to value of option ``--<name>``. Most options can be
|
||||||
changed at runtime by writing to this property. Note that many options
|
changed at runtime by writing to this property. Note that many options
|
||||||
|
@ -3333,6 +3333,16 @@ static int mp_property_configuration(void *ctx, struct m_property *prop,
|
|||||||
return m_property_strdup_ro(action, arg, CONFIGURATION);
|
return m_property_strdup_ro(action, arg, CONFIGURATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int mp_property_ffmpeg(void *ctx, struct m_property *prop,
|
||||||
|
int action, void *arg)
|
||||||
|
{
|
||||||
|
#if HAVE_AV_VERSION_INFO
|
||||||
|
return m_property_strdup_ro(action, arg, av_version_info());
|
||||||
|
#else
|
||||||
|
return M_PROPERTY_UNAVAILABLE;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static int mp_property_alias(void *ctx, struct m_property *prop,
|
static int mp_property_alias(void *ctx, struct m_property *prop,
|
||||||
int action, void *arg)
|
int action, void *arg)
|
||||||
{
|
{
|
||||||
@ -3742,6 +3752,7 @@ static const struct m_property mp_properties[] = {
|
|||||||
|
|
||||||
{"mpv-version", mp_property_version},
|
{"mpv-version", mp_property_version},
|
||||||
{"mpv-configuration", mp_property_configuration},
|
{"mpv-configuration", mp_property_configuration},
|
||||||
|
{"ffmpeg-version", mp_property_ffmpeg},
|
||||||
|
|
||||||
{"options", mp_property_options},
|
{"options", mp_property_options},
|
||||||
{"file-local-options", mp_property_local_options},
|
{"file-local-options", mp_property_local_options},
|
||||||
|
Loading…
Reference in New Issue
Block a user