install ffmpeg lib with vcpkg (#8724)

* use vcpkg to install ffmpeg and build sdk from source, so no prebuild lib in hwcodec.
* link ffmpeg in rustdesk directly, ffmpeg can be used as basic library.
* for windows developers, `VCPKG_DEFAULT_HOST_TRIPLET` env need to be set to `x64-windows-static` during installation.

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2024-07-16 15:10:24 +08:00
committed by GitHub
parent 09466680d3
commit 0143eaf601
21 changed files with 1743 additions and 9 deletions

View File

@@ -51,13 +51,44 @@
{
"name": "libyuv",
"host": false
},
{
"name": "ffmpeg",
"host": true,
"features": [
{
"name": "amf",
"platform": "((windows | linux) & static)"
},
{
"name": "nvcodec",
"platform": "((windows | linux) & static)"
},
{
"name": "qsv",
"platform": "(windows & static)"
}
],
"platform": "((windows | linux | osx) & static)"
},
{
"name": "ffmpeg",
"host": false,
"platform": "((android | ios) & static)"
}
],
"vcpkg-configuration": {
"default-registry": {
"kind": "builtin",
"baseline": ""
"baseline": "f7423ee180c4b7f40d43402c2feb3859161ef625"
},
"overlay-ports": [ "./res/vcpkg" ]
}
}
"overlay-ports": [
"./res/vcpkg"
]
},
"overrides": [
{ "name": "ffnvcodec", "version": "11.1.5.2" },
{ "name": "amd-amf", "version": "1.4.29" },
{ "name": "mfx-dispatch", "version": "1.35.1" }
]
}