mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Merge pull request #10888 from JPVenson/feature/ghcs_ffmpegversion
Feature/ghcs ffmpegversion
This commit is contained in:
commit
b425b2350f
28
.devcontainer/Dev - Server Ffmpeg/devcontainer.json
Normal file
28
.devcontainer/Dev - Server Ffmpeg/devcontainer.json
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "Development Jellyfin Server - FFmpeg",
|
||||||
|
"image":"mcr.microsoft.com/devcontainers/dotnet:8.0-jammy",
|
||||||
|
// restores nuget packages, installs the dotnet workloads and installs the dev https certificate
|
||||||
|
"postStartCommand": "dotnet restore; dotnet workload update; dotnet dev-certs https --trust; sudo bash \"./.devcontainer/Dev - Server Ffmpeg/install-ffmpeg.sh\"",
|
||||||
|
// reads the extensions list and installs them
|
||||||
|
"postAttachCommand": "cat .vscode/extensions.json | jq -r .recommendations[] | xargs -n 1 code --install-extension",
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/dotnet:2": {
|
||||||
|
"version": "none",
|
||||||
|
"dotnetRuntimeVersions": "8.0",
|
||||||
|
"aspNetCoreRuntimeVersions": "8.0"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers-contrib/features/apt-packages:1": {
|
||||||
|
"preserve_apt_list": false,
|
||||||
|
"packages": ["libfontconfig1"]
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {
|
||||||
|
"dockerDashComposeVersion": "v2"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/github-cli:1": {},
|
||||||
|
"ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {}
|
||||||
|
},
|
||||||
|
"hostRequirements": {
|
||||||
|
"memory": "8gb",
|
||||||
|
"cpus": 4
|
||||||
|
}
|
||||||
|
}
|
32
.devcontainer/Dev - Server Ffmpeg/install-ffmpeg.sh
Normal file
32
.devcontainer/Dev - Server Ffmpeg/install-ffmpeg.sh
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
## configure the following for a manuall install of a specific version from the repo
|
||||||
|
|
||||||
|
# wget https://repo.jellyfin.org/releases/server/ubuntu/versions/jellyfin-ffmpeg/6.0.1-1/jellyfin-ffmpeg6_6.0.1-1-jammy_amd64.deb -O ffmpeg.deb
|
||||||
|
|
||||||
|
# sudo apt update
|
||||||
|
# sudo apt install -f ./ffmpeg.deb -y
|
||||||
|
# rm ffmpeg.deb
|
||||||
|
|
||||||
|
|
||||||
|
## Add the jellyfin repo
|
||||||
|
sudo apt install curl gnupg -y
|
||||||
|
sudo apt-get install software-properties-common -y
|
||||||
|
sudo add-apt-repository universe -y
|
||||||
|
|
||||||
|
sudo mkdir -p /etc/apt/keyrings
|
||||||
|
curl -fsSL https://repo.jellyfin.org/jellyfin_team.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/jellyfin.gpg
|
||||||
|
export VERSION_OS="$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release )"
|
||||||
|
export VERSION_CODENAME="$( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release )"
|
||||||
|
export DPKG_ARCHITECTURE="$( dpkg --print-architecture )"
|
||||||
|
cat <<EOF | sudo tee /etc/apt/sources.list.d/jellyfin.sources
|
||||||
|
Types: deb
|
||||||
|
URIs: https://repo.jellyfin.org/${VERSION_OS}
|
||||||
|
Suites: ${VERSION_CODENAME}
|
||||||
|
Components: main
|
||||||
|
Architectures: ${DPKG_ARCHITECTURE}
|
||||||
|
Signed-By: /etc/apt/keyrings/jellyfin.gpg
|
||||||
|
EOF
|
||||||
|
|
||||||
|
sudo apt update -y
|
||||||
|
sudo apt install jellyfin-ffmpeg6 -y
|
2
.vscode/extensions.json
vendored
2
.vscode/extensions.json
vendored
@ -2,7 +2,7 @@
|
|||||||
"recommendations": [
|
"recommendations": [
|
||||||
"ms-dotnettools.csharp",
|
"ms-dotnettools.csharp",
|
||||||
"editorconfig.editorconfig",
|
"editorconfig.editorconfig",
|
||||||
"GitHub.vscode-github-actions",
|
"github.vscode-github-actions",
|
||||||
"ms-dotnettools.vscode-dotnet-runtime",
|
"ms-dotnettools.vscode-dotnet-runtime",
|
||||||
"ms-dotnettools.csdevkit"
|
"ms-dotnettools.csdevkit"
|
||||||
],
|
],
|
||||||
|
12
.vscode/launch.json
vendored
12
.vscode/launch.json
vendored
@ -29,6 +29,18 @@
|
|||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"internalConsoleOptions": "openOnSessionStart"
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "ghcs .NET Launch (nowebclient, ffmpeg)",
|
||||||
|
"type": "coreclr",
|
||||||
|
"request": "launch",
|
||||||
|
"preLaunchTask": "build",
|
||||||
|
"program": "${workspaceFolder}/Jellyfin.Server/bin/Debug/net8.0/jellyfin.dll",
|
||||||
|
"args": ["--nowebclient", "--ffmpeg", "/usr/lib/jellyfin-ffmpeg/ffmpeg"],
|
||||||
|
"cwd": "${workspaceFolder}/Jellyfin.Server",
|
||||||
|
"console": "internalConsole",
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"internalConsoleOptions": "openOnSessionStart"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": ".NET Attach",
|
"name": ".NET Attach",
|
||||||
"type": "coreclr",
|
"type": "coreclr",
|
||||||
|
20
README.md
20
README.md
@ -145,14 +145,26 @@ cd Jellyfin.Server/bin/Debug/net8.0 # Change into the build output directory
|
|||||||
### Running from GH-Codespaces
|
### Running from GH-Codespaces
|
||||||
|
|
||||||
As Jellyfin will run on a container on a github hosted server, JF needs to handle some things differently.
|
As Jellyfin will run on a container on a github hosted server, JF needs to handle some things differently.
|
||||||
|
|
||||||
|
**NOTE:** Depending on the selected configuration (if you just click 'create codespace' it will create a default configuration one) it might take 20-30 secounds to load all extensions and prepare the enviorment while vscode is already open. Just give it some time and wait until you see `Downloading .NET version(s) 7.0.15~x64 ...... Done!` in the output tab.
|
||||||
|
|
||||||
**NOTE:** If you want to access the JF instance from outside, like with a WebClient on another PC, remember to set the "ports" in the lower VsCode window to public.
|
**NOTE:** If you want to access the JF instance from outside, like with a WebClient on another PC, remember to set the "ports" in the lower VsCode window to public.
|
||||||
|
|
||||||
#### FFmpeg installation.
|
|
||||||
Because sometimes you need FFMPEG to test certain cases, follow the instructions from the wiki on the dev enviorment:
|
|
||||||
https://jellyfin.org/docs/general/installation/linux/#ffmpeg-installation
|
|
||||||
|
|
||||||
**NOTE:** When first opening the server instance with any WebUI, you will be send to the login instead of the setup page. Refresh the login page once and you should be redirected to the Setup.
|
**NOTE:** When first opening the server instance with any WebUI, you will be send to the login instead of the setup page. Refresh the login page once and you should be redirected to the Setup.
|
||||||
|
|
||||||
|
There are two configurations for you to chose from.
|
||||||
|
#### Default - Development Jellyfin Server
|
||||||
|
This creates a container that has everything to run and debug the Jellyfin Media server but does not setup anything else. Each time you create a new container you have to run though the whole setup again. There is also no ffmpeg, webclient or media preloaded. Use the `.NET Launch (nowebclient)` lunch config to start the server.
|
||||||
|
|
||||||
|
> Keep in mind that as this has no web client you have to connect to it via an extenal client. This can be just another codespace container running the WebUI. vuejs does not work from the getgo as it does not support the setup steps.
|
||||||
|
|
||||||
|
#### Development Jellyfin Server ffmpeg
|
||||||
|
this extens the default server with an default installation of ffmpeg6 though the means described here: https://jellyfin.org/docs/general/installation/linux#repository-manual
|
||||||
|
If you want to install a specific ffmpeg version, follow the comments embedded in the `.devcontainer/Dev - Server Ffmpeg/install.ffmpeg.sh` file.
|
||||||
|
|
||||||
|
Use the `ghcs .NET Launch (nowebclient, ffmpeg)` launch config to run with the jellyfin-ffmpeg enabled.
|
||||||
|
|
||||||
|
|
||||||
### Running The Tests
|
### Running The Tests
|
||||||
|
|
||||||
This repository also includes unit tests that are used to validate functionality as part of a CI pipeline on Azure. There are several ways to run these tests.
|
This repository also includes unit tests that are used to validate functionality as part of a CI pipeline on Azure. There are several ways to run these tests.
|
||||||
|
Loading…
Reference in New Issue
Block a user