-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg -version #199
Comments
N-108577 is the official version. |
Well, if it is not clear which release the build most corresponds to, I will download it once a month. |
It does not correspond to any release. Not sure what exactly you're asking, but every build builds the latest commit at the time, and that N-XXXXX numbering is how ffmpeg officially versions those. |
I want to update ffmpeg (by script) when the daily build is most consistent with the generally accepted version of the new release. I do not know which is newer than 5.1 or N-XXXXX. For example, on the Arch I can see and it is clear: PS > (pacman -Qi ffmpeg | sls '(?<=Version.+:)[\d.]+').Matches.Value
5.1.2
PS > [version] '5.1.2'
Major Minor Build Revision
----- ----- ----- --------
5 1 2 -1 |
What do you mean, "generally accepted version of the new release"? |
A version designation that conforms to the norms of the version designation. |
I really don't understand what you are asking. |
Maybe he want builds for ffmpeg tags like https://github.com/FFmpeg/FFmpeg/releases/tag/n5.1.2 and |
I'm very sorry, I DIDN'T NOTICE that there are more assets under the spoiler, which indicate a clear version. $assets = (Invoke-WebRequest https://api.github.com/repos/BtbN/FFmpeg-Builds/releases).Content | ConvertFrom-Json
$latest = ($assets.assets | Where-Object { $_.name -match 'ffmpeg-n[\d.]+-latest-win64-gpl-[\d.]+\.zip' })[-1]
$url = $latest.browser_download_url
$file = $latest.name
Invoke-WebRequest $url -OutFile $file
But, in order to compare versions not only major and minor, could you match the name of the zip file and the ffmpeg version:
|
Not quite sure what you mean with spoiler either. There is one floating "latest" release, which exists to have persistent URLs that just always point to the latest build. I do not build exact release tags, unless they happen to be the HEAD of their respective branch when the build is made. Unless you have some obscure reason to need a specific release, just use latest master. |
Spoiler on release page "Show all 38 assets". I want a clear version display. Nothing more than that. I need this to compare versions when updating if the version has changed. For me, "Build" token is not too important, but it would be nice to have it.
At the moment I'm only comparing Major and Minor tokens of versions: $assets = (Invoke-WebRequest https://api.github.com/repos/BtbN/FFmpeg-Builds/releases).Content | ConvertFrom-Json
$latest = ($assets.assets | Where-Object { $_.name -match 'ffmpeg-n[\d.]+-latest-win64-gpl-[\d.]+\.zip' })[-1]
$url = $latest.browser_download_url
$file = $latest.name
$file_version = $latest.name -replace '.+-|\.zip' # 5.1, It would be better 5.1.2
$ffmpeg_version = (ffmpeg -version)[0] -replace '.+n(\d+\.\d+).+','$1' # 5.1, '.+n([\d.]+).+', '$1' for 5.1.2
if ([version] $file_version -gt [version] $ffmpeg_version)
{
Invoke-WebRequest $url -OutFile $file
# Unpack zip to the ffmpeg location
}
else { 'ffmpeg is up to date' } |
Please add the official base version of ffmpeg (5.1.1, 5.1.2 etc) in order to make it easier to navigate among autobuilds. Or write this in Readme.md
The text was updated successfully, but these errors were encountered: