mendevi.measures.context

Get the information of the environment.

Functions

full_context()

Get the full context informations.

get_avmdec_version()

Return the version of the avmdec (av2 decoder).

get_avmenc_version()

Return the version of the avmenc (av2 encoder).

get_ffmpeg_version()

Return the version of ffmpeg.

get_librav1e_version()

Return the version of the librav1e encoder.

get_libsvtav1_version()

Return the version of the libsvtav1 encoder.

get_libvpx_vp9_version()

Return the version of the libvpx-vp9 encoder.

get_libvvdec_version()

Return the version of the vvc decoder.

get_libvvenc_version()

Return the version of the vvc encoder.

get_libx265_version()

Return the version of the libx265 encoder.

get_lshw()

Extract the very accurate exaustive info as big json.

get_lspci()

Extract the information with lspci -k.

get_pip_freeze()

Return the sorted pip freeze.

get_platform()

Get basic information about the system.

Details

mendevi.measures.context.full_context() → dict[source]

Get the full context informations.

mendevi.measures.context.get_avmdec_version() → str[source]

Return the version of the avmdec (av2 decoder).

Examples

>>> from mendevi.measures.context import get_avmdec_version
>>> print(get_avmdec_version())
1.0...
>>>
mendevi.measures.context.get_avmenc_version() → str[source]

Return the version of the avmenc (av2 encoder).

Examples

>>> from mendevi.measures.context import get_avmenc_version
>>> print(get_avmenc_version())
1.0...
>>>
mendevi.measures.context.get_ffmpeg_version() → str[source]

Return the version of ffmpeg.

Examples

>>> import pprint
>>> from mendevi.measures.context import get_ffmpeg_version
>>> pprint.pprint(get_ffmpeg_version())
('ffmpeg version ... Copyright (c) ... the FFmpeg developers\n'
 'built with gcc ...\n'
 'configuration: --prefix=.../ffmpeg_build '
 '--pkg-config-flags=--static '
 '--extra-cflags=-I/home/rrichard/ffmpeg_build/include '
 "--extra-ldflags=-L/home/rrichard/ffmpeg_build/lib --extra-libs='-lpthread "
 "-lm' --ld=g++ --bindir=/home/rrichard/bin --enable-shared "
 '--enable-chromaprint --enable-frei0r --enable-gpl --enable-ladspa '
 '--enable-libaom --enable-libass --enable-libbluray --enable-libbs2b '
 '--enable-libcaca --enable-libcdio --enable-libdav1d --enable-libdrm '
 '--enable-libfdk-aac --enable-libflite --enable-libfontconfig '
 '--enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm '
 '--enable-libharfbuzz --enable-libmp3lame --enable-libopenh264 '
 '--enable-libopenmpt --enable-libopus --enable-libpulse --enable-librav1e '
 '--enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr '
 '--enable-libspeex --enable-libsvtav1 --enable-libtheora --enable-libtwolame '
 '--enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis '
 '--enable-libvpx --enable-libvvenc --enable-libwebp --enable-libx264 '
 '--enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg '
 '--enable-libzvbi --enable-nonfree --enable-opengl --enable-openssl '
 '--enable-vaapi --enable-version3 --enable-libvpl --disable-libmfx '
 "--extra-cflags='-O2 -march=native -mtune=native' --extra-cxxflags='-O2 "
 "-march=native -mtune=native'\n"
 'libavutil ...\n'
 'libavcodec ...\n'
 'libavformat ...\n'
 'libavdevice ...\n'
 'libavfilter ...\n'
 'libswscale ...\n'
 'libswresample ...')
>>>
mendevi.measures.context.get_librav1e_version() → str[source]

Return the version of the librav1e encoder.

Examples

>>> from mendevi.measures.context import get_librav1e_version
>>> print(get_librav1e_version())
rav1e 0.8.0 (...) (release)
rustc ... (...) x86_64-unknown-linux-gnu
Compiled CPU Features: ...
Runtime Assembly Support: Enabled
Runtime Assembly Level: ...
Threading: Enabled
Unstable Features: Disabled
Compiler Flags: -C target-cpu=native
>>>
mendevi.measures.context.get_libsvtav1_version() → str[source]

Return the version of the libsvtav1 encoder.

Examples

>>> from mendevi.measures.context import get_libsvtav1_version
>>> print(get_libsvtav1_version())
v4.2...
GCC ... 64 bit
>>>
mendevi.measures.context.get_libvpx_vp9_version() → str[source]

Return the version of the libvpx-vp9 encoder.

Examples

>>> from mendevi.measures.context import get_libvpx_vp9_version
>>> print(get_libvpx_vp9_version())
v...
>>>
mendevi.measures.context.get_libvvdec_version() → str[source]

Return the version of the vvc decoder.

Examples

>>> from mendevi.measures.context import get_libvvdec_version
>>> print(get_libvvdec_version())
3.3...
>>>
mendevi.measures.context.get_libvvenc_version() → str[source]

Return the version of the vvc encoder.

Examples

>>> from mendevi.measures.context import get_libvvenc_version
>>> print(get_libvvenc_version())
1.15...
>>>
mendevi.measures.context.get_libx265_version() → str[source]

Return the version of the libx265 encoder.

Examples

>>> from mendevi.measures.context import get_libx265_version
>>> print(get_libx265_version())
4...
[Linux][GCC ...][64 bit] 8...
MMX2 ...
>>>
mendevi.measures.context.get_lshw() → str[source]

Extract the very accurate exaustive info as big json.

Examples

>>> from mendevi.measures.context import get_lshw
>>> full_info = get_lshw()
>>>
mendevi.measures.context.get_lspci() → str[source]

Extract the information with lspci -k.

Examples

>>> from mendevi.measures.context import get_lspci
>>> lspci_info = get_lspci()
>>>
mendevi.measures.context.get_pip_freeze() → str[source]

Return the sorted pip freeze.

Examples

>>> from mendevi.measures.context import get_pip_freeze
>>> print(get_pip_freeze())
accessible-pygments==...
...
>>>
mendevi.measures.context.get_platform() → dict[source]

Get basic information about the system.

Examples

>>> import pprint
>>> from mendevi.measures.context import get_platform
>>> pprint.pprint(get_platform())
{'hostname': '...',
 'kernel_version': 'Linux-...',
 'logical_cores': ...,
 'physical_cores': ...,
 'processor': '...',
 'python_compiler': '...',
 'python_version': '...',
 'ram': ...,
 'swap': ...,
 'system_version': '...'}
>>>