OpenVisualCloud / SVT-HEVC

SVT HEVC encoder. Scalable Video Technology (SVT) is a software-based video coding technology that is highly optimized for Intel® Xeon® processors. Using the open source SVT-HEVC encoder, it is possible to spread video encoding processing across multiple Intel® Xeon® processors to achieve a real advantage of processing efficiency.
Other
516 stars 172 forks source link

release source filename missing app info #539

Closed th0ma7 closed 4 years ago

th0ma7 commented 4 years ago

he filename for all releases doesn't include the package name but rather only the version:

https://github.com/OpenVisualCloud/SVT-HEVC/archive/v1.4.3.zip
https://github.com/OpenVisualCloud/SVT-HEVC/archive/v1.4.3.tar.gz

This will eventually cause issues for packagers. At the very least svt-hevc_v1.4.3.tar.gz or similar would be meaningful

tianjunwork commented 4 years ago

Release source code package is auto generated by Github. When downloading through Github web page, it looks correct with SVT-HEVC: image

th0ma7 commented 4 years ago

But from the release web pate archive download URL doesn't include the SVT-HEVC part.

1480c1 commented 4 years ago

That seems to be a browser/html thing https://stackoverflow.com/questions/3102226/how-to-set-name-of-file-downloaded-from-browser

th0ma7 commented 4 years ago

You are absolutely right, I thought this was an exception but no. Closing the issue.

1480c1 commented 4 years ago

Depending on the project, I would recommend trying to use the headers to try to get the filename or use -J with curl if possible

# Get filename
_tarball_url=$(curl -L https://api.github.com/repos/OpenVisualCloud/SVT-HEVC/releases/latest | jq -r ."tarball_url")
filename=$(curl -IL "$_tarball_url" | tr ' ' '\n' | grep filename | cut -d= -f2)
curl -oL "${filename:-SVT-HEVC.tar.gz}" "$_tarball_url"

or

curl -OJL https://api.github.com/repos/OpenVisualCloud/SVT-HEVC/tarball/v1.4.3