Skip to content

Commit

Permalink
Merge pull request #30 from zebrapurring/jellyfin-ffmpeg
Browse files Browse the repository at this point in the history
Install ffmpeg from Jellyfin fork
  • Loading branch information
zebrapurring authored Dec 20, 2024
2 parents e50a0bb + 186e3b8 commit f935c8b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Scripts/config.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
IMMICH_TAG="v1.123.0"
FFMPEG_VERSION="7.0.2-7" # Taken from https://github.com/immich-app/base-images/blob/main/server/bin/build-lock.json

IMMICH_INSTALL_DIR="/opt/immich"
IMMICH_BIN_DIR="$IMMICH_INSTALL_DIR/bin"
IMMICH_SETTINGS_DIR="$IMMICH_INSTALL_DIR/etc"
IMMICH_APP_DIR="$IMMICH_INSTALL_DIR/share"
IMMICH_MEDIA_DIR="$IMMICH_INSTALL_DIR/var/db"
Expand Down
12 changes: 10 additions & 2 deletions Scripts/installdependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ fi

echo "INFO: install dependencies"

[ -z "$(which brew)" ] && echo "Homebrew is not installed" && exit 1
mkdir -p "$IMMICH_BIN_DIR"

# Install Homebrew dependencies
[ -z "$(which brew)" ] && echo "Homebrew is not installed" && exit 1
brew install \
ffmpeg \
node \
npm \
pgvector \
Expand All @@ -24,3 +25,10 @@ brew install \
wget
brew services restart postgresql@17
brew services restart redis

# Install custom ffmpeg build jellyfin-ffmpeg
curl -s -L -o - "https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v$IMMICH_FFMPEG_VERSION/jellyfin-ffmpeg_${IMMICH_FFMPEG_VERSION}_portable_mac64-gpl.tar.xz" | \
tar xzvf - -C "$IMMICH_BIN_DIR"

# Adjust permissions
chown -R "$IMMICH_USER:$IMMICH_GROUP" "$IMMICH_BIN_DIR"
2 changes: 1 addition & 1 deletion launchd/com.immich.machine.learning.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<string>${IMMICH_BIN_DIR}:/opt/homebrew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>StandardOutPath</key>
<string>/var/log/immich/immich-machine-learning.log</string>
Expand Down
2 changes: 1 addition & 1 deletion launchd/com.immich.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/opt/homebrew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
<string>${IMMICH_BIN_DIR}:/opt/homebrew/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string>
</dict>
<key>StandardOutPath</key>
<string>/var/log/immich/immich-app.log</string>
Expand Down

0 comments on commit f935c8b

Please sign in to comment.