Unclear FFmpeg version format breaks update detection!
When running the command ffmpeg -version, FFmpeg does not return a clear, standard version number. Instead, it outputs a long and hard-to-parse string like:
N-123074-g4e32fb4c2a-20260228 Copyright
This makes it very difficult to reliably detect the installed version programmatically. Ideally, the version output should follow a simple and standard format such as:
1.2.3
This is especially important for workflows that depend on automatic updates. In our case, we rely on integrating FFmpeg with yt-dlp in a media downloading application. While yt-dlp supports self-updating and exposes a clear version, FFmpeg lacks both a built-in update mechanism and a clean version identifier.
As a result, we cannot properly compare versions or trigger automatic updates for FFmpeg. Parsing the current complex string is unreliable and often leads to failure in recognizing the installed version.
Having a clear, structured version number in the output would greatly improve automation, compatibility checks, and overall developer experience.
关闭于 2026-03-01 4 条评论