Skip to content
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

stable download URL and version? #31

Closed
hayguen opened this issue Oct 29, 2022 · 7 comments
Closed

stable download URL and version? #31

hayguen opened this issue Oct 29, 2022 · 7 comments

Comments

@hayguen
Copy link

hayguen commented Oct 29, 2022

In https://github.com/hayguen/clipgrab, i've added explicit check for available version of yt-dlp on github, by parsing __version__ line of https://raw.githubusercontent.com/yt-dlp/yt-dlp/master/yt_dlp/version.py

It's simple to compare against the output of yt-dlp --version and allow an update by retrieving e.g. https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp for Linux.

Despite reading issue #10, i'm still confused howto find out the right URL for stable releases, cause those contain the version in the filename, as in https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-n5.1-latest-linux64-gpl-5.1.tar.xz
and the Links at https://github.com/yt-dlp/FFmpeg-Builds#downloads do only provide the latest non-stable master downloads.

Can someone give me a hint, how to automatically determine the latest stable online version and the corresponding URLs?

In addition, it should be possible the retrieve the same version string or just the iso-date running sort of ffmpeg --version-date.

@pukkandan
Copy link
Member

@hayguen
Copy link
Author

hayguen commented Oct 29, 2022

@pukkandan very interesting. thank you!

thus, i should be able to check the name and the browser_download_url of the assets list, filtering out names containing master and find the right platform/architecture.
but, the created and updated fields look useless!?

how would i compare with the output of the installed local binary?,
when ffmpeg -version outputs:

ffmpeg version N-108893-g17987b371b-20221029 Copyright (c) 2000-2022 the FFmpeg developers

but name is

ffmpeg-n5.1-latest-linux64-gpl-5.1.tar.xz

there's no '5.1' in 'N-108893-g17987b371b-20221029' or vice versa!

hmmmm, '17987b371b' looks to be a commit/sha-id. would be great, if this would be part of the download name!

but the above commit/sha-id is really new:
FFmpeg/FFmpeg@17987b3
why is that commit contained in a stable build?

it should be possible to detect/avoid download, just cause of an automatic rebuild without any change.

@pukkandan
Copy link
Member

You will have to ask these upstream. We only add the patches to the builds - not modify the build system or versioning

@hayguen
Copy link
Author

hayguen commented Oct 29, 2022

@pukkandan : thanks again for fast reply.

sorry, i've to ask again, cause now realizing https://github.com/BtbN/FFmpeg-Builds
should i aske there? or, somewhere at https://ffmpeg.org/ ?

@pukkandan
Copy link
Member

I meant BtBN, but I cannot know if they will further redirect you to ffmpeg. Somewhat related: BtbN#199

@hayguen
Copy link
Author

hayguen commented Oct 29, 2022

@pukkandan Thank You

@hayguen
Copy link
Author

hayguen commented Oct 29, 2022

see BtbN#210 for the result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants