mendevi.measures.context

Get the information of the environment.

Functions

full_context()

Get the full context informations.

get_ffmpeg_version()

Return the version of ffmpeg.

get_libsvtav1_version()

Return the version of the libx265 encoder.

get_libvpx_vp9_version()

Return the version of the libx265 encoder.

get_libx265_version()

Return the version of the libx265 encoder.

get_lshw()

Extract the very accurate exaustive info as big json.

get_pip_freeze()

Return the sorted pip freeze.

get_platform()

Get basic information about the system.

get_vvc_version()

Return the version of the libx265 encoder.

Details

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

Get the full context informations.

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 N-120220-g934e1c23b0 Copyright (c) 2000-2025 the FFmpeg '
 'developers\n'
 'built with gcc 14 (Ubuntu 14.2.0-4ubuntu2)\n'
 'configuration: --prefix=/home/rrichard/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-gpl --enable-gnutls "
 '--enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype '
 '--enable-libmp3lame --enable-libopus --enable-libsvtav1 --enable-libdav1d '
 '--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 '
 '--enable-libvvenc --enable-nonfree\n'
 'libavutil      60.  4.101 / 60.  4.101\n'
 'libavcodec     62.  6.100 / 62.  6.100\n'
 'libavformat    62.  1.101 / 62.  1.101\n'
 'libavdevice    62.  0.100 / 62.  0.100\n'
 'libavfilter    11.  1.100 / 11.  1.100\n'
 'libswscale      9.  0.100 /  9.  0.100\n'
 'libswresample   6.  0.100 /  6.  0.100')
mendevi.measures.context.get_libsvtav1_version() str[source]

Return the version of the libx265 encoder.

Examples

>>> from mendevi.measures.context import get_libsvtav1_version
>>> print(get_libsvtav1_version())
v3.0.2-103-gc10214fa
GCC 14.2.0 64 bit
>>>
mendevi.measures.context.get_libvpx_vp9_version() str[source]

Return the version of the libx265 encoder.

Examples

>>> from mendevi.measures.context import get_libvpx_vp9_version
>>> print(get_libvpx_vp9_version())
v1.14.1
>>>
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.1+188-cd4f0d6e9
[Linux][GCC 14.2.0][64 bit] 8bit+10bit+12bit
MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
>>>
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_pip_freeze() str[source]

Return the sorted pip freeze.

Examples

>>> from mendevi.measures.context import get_pip_freeze
>>> print(get_pip_freeze())
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': 'PTB-5CG4414JJD',
 'kernel_version': 'Linux-6.11.0-29-generic-x86_64-with-glibc2.40',
 'processor': 'x86_64',
 'python_compiler': 'x86_64',
 'python_version': 'x86_64',
 'system_version': '#29-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:29:41 UTC '
                   '2025'}
>>>
mendevi.measures.context.get_vvc_version() str[source]

Return the version of the libx265 encoder.

Examples

>>> from mendevi.measures.context import get_vvc_version
>>> print(get_vvc_version())
1.13.1
>>>