Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions bucket/ffmpeg-shared-yt-dlp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"version": "7.0-12-20240420",
"description": "FFMpeg builds of latest release branch with patches necessary for smooth integration with yt-dlp",
"homepage": "https://github.com/yt-dlp/FFmpeg-Builds",
"license": "MIT",
"suggest": {
"yt-dlp": "yt-dlp"
},
"architecture": {
"64bit": {
"url": "https://github.com/yt-dlp/FFmpeg-Builds/releases/download/autobuild-2024-04-20-14-06/ffmpeg-n7.0-12-gcbd98447bc-win64-gpl-shared-7.0.zip",
"hash": "52f9d3a2933711ac5856f877be86bb3e1d62475a6bbab6d99e4cd52c81bcb267",
"extract_dir": "ffmpeg-n7.0-12-gcbd98447bc-win64-gpl-shared-7.0"
},
"32bit": {
"url": "https://github.com/yt-dlp/FFmpeg-Builds/releases/download/autobuild-2024-04-20-14-06/ffmpeg-n7.0-12-gcbd98447bc-win32-gpl-shared-7.0.zip",
"hash": "c81fb3451cf8cbcfb9f69cb4925f8839d9bf256ebbe09d765adfc648978d5f26",
"extract_dir": "ffmpeg-n7.0-12-gcbd98447bc-win32-gpl-shared-7.0"
}
},
"bin": [
"bin\\ffmpeg.exe",
"bin\\ffplay.exe",
"bin\\ffprobe.exe"
],
"checkver": {
"script": [
"# 32-bit file is either listed above or below the 64-bit one. Therefore we need a checkver script to match it.",
"$url = 'https://api.github.com/repositories/377430603/releases'",
"$regex_64bit = 'autobuild-(?<buildtime>(?<builddate>\\d{4}-\\d{2}-\\d{2})-\\d{2}-\\d{2})/(?<filename>ffmpeg-n(?<ffmpegver>[\\d.-]+)-\\w+-win64-gpl-shared-[\\d.]+)\\.zip'",
"$regex_32bit = $regex_64bit.replace('win64', 'win32')",
"$cont = $(Invoke-WebRequest($url)).Content | ConvertFrom-Json",
"$file_urls = @()",
"$cont[1].assets | ForEach-Object { $file_urls += $_.browser_download_url }",
"$file_urls | ForEach-Object {",
" if ($_ -match $regex_64bit) {",
" $ffmpegver = $matches.ffmpegver",
" $buildtime = $matches.buildtime",
" $builddate = $matches.builddate.Replace('-', '')",
" $filename64bit = $matches.filename",
" } elseif ($_ -match $regex_32bit) { $filename32bit = $matches.filename }",
"}",
"Write-Output $ffmpegver-$builddate $buildtime $filename64bit $filename32bit"
],
"regex": "([\\w.-]+) (?<buildtime>[\\w.-]+) (?<filename64bit>[\\w.-]+) (?<filename32bit>[\\w.-]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/yt-dlp/FFmpeg-Builds/releases/download/autobuild-$matchBuildtime/$matchFilename64bit.zip",
"extract_dir": "$matchFilename64bit"
},
"32bit": {
"url": "https://github.com/yt-dlp/FFmpeg-Builds/releases/download/autobuild-$matchBuildtime/$matchFilename32bit.zip",
"extract_dir": "$matchFilename32bit"
}
}
}
}