diff --git a/bucket/ffmpeg-shared-yt-dlp.json b/bucket/ffmpeg-shared-yt-dlp.json new file mode 100644 index 00000000000..9314b181e9d --- /dev/null +++ b/bucket/ffmpeg-shared-yt-dlp.json @@ -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-(?(?\\d{4}-\\d{2}-\\d{2})-\\d{2}-\\d{2})/(?ffmpeg-n(?[\\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.-]+) (?[\\w.-]+) (?[\\w.-]+) (?[\\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" + } + } + } +}