moviepy.video.io.ffmpeg_tools.ffmpeg_version#

moviepy.video.io.ffmpeg_tools.ffmpeg_version()[source]#

Retrieve the FFmpeg version.

This function retrieves both the full and numeric version of FFmpeg by executing the ffmpeg -version command. The full version includes additional details like build information, while the numeric version contains only the version numbers (e.g., '7.0.2').

Returns:

A tuple containing: - full_version (str): The complete version string (e.g., '7.0.2-static'). - numeric_version (str): The numeric version string (e.g., '7.0.2').

Return type:

tuple

Example

>>> ffmpeg_version()
('7.0.2-static', '7.0.2')
Raises:

subprocess.CalledProcessError -- If the FFmpeg command fails to execute properly.