svenger87
svenger87
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
# Script: immich-app-update.sh
# Description: Updates the immich application using Docker Compose and systemd.
# Downgrades ffmpeg-jellyfin6 package to version 5.

# Set the working directory
APP_DIR="/root/immich-app/"

# Docker container name
MICROSERVICES_CONTAINER="immich_microservices"

# Package URL
FFMPEG_PACKAGE_URL="https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v5.1.3-4/jellyfin-ffmpeg5_5.1.3-4-kinetic_amd64.deb"

# Pull the latest images
echo "Pulling the latest images..."
cd "$APP_DIR" && docker-compose pull

# Stop the immich service
echo "Stopping immich service..."
if ! systemctl stop immich; then
echo "Failed to stop immich service."
exit 1
fi

# Start the immich service
echo "Starting immich service..."
if ! systemctl start immich; then
echo "Failed to start immich service."
exit 1
fi

# Wait for the service to start
echo "Waiting for immich service to start..."
sleep 20

# Remove jellyfin-ffmpeg6 package
echo "Removing jellyfin-ffmpeg6 package..."
docker exec "$MICROSERVICES_CONTAINER" apt-get remove -y jellyfin-ffmpeg6

# Download and install ffmpeg-jellyfin5 package
echo "Downloading and installing ffmpeg-jellyfin5 package..."
FFMPEG_PACKAGE_NAME="jellyfin-ffmpeg5_5.1.3-4-kinetic_amd64.deb"
wget -O "$FFMPEG_PACKAGE_NAME" "$FFMPEG_PACKAGE_URL"
docker cp "$FFMPEG_PACKAGE_NAME" "$MICROSERVICES_CONTAINER:/tmp/"
docker exec "$MICROSERVICES_CONTAINER" dpkg -i "/tmp/$FFMPEG_PACKAGE_NAME"
rm "$FFMPEG_PACKAGE_NAME"

# Clean up Docker resources
echo "Cleaning up Docker resources..."
docker system prune -a -f
docker system prune --volumes -f

echo "Update and installation completed."
# Script: immich-app-update.sh
# Description: Updates the immich application using Docker Compose and systemd.
# Downgrades ffmpeg-jellyfin6 package to version 5.

# Set the working directory
APP_DIR="/root/immich-app/"

# Docker container name
MICROSERVICES_CONTAINER="immich_microservices"

# Package URL
FFMPEG_PACKAGE_URL="https://github.com/jellyfin/jellyfin-ffmpeg/releases/download/v5.1.3-4/jellyfin-ffmpeg5_5.1.3-4-kinetic_amd64.deb"

# Pull the latest images
echo "Pulling the latest images..."
cd "$APP_DIR" && docker-compose pull

# Stop the immich service
echo "Stopping immich service..."
if ! systemctl stop immich; then
echo "Failed to stop immich service."
exit 1
fi

# Start the immich service
echo "Starting immich service..."
if ! systemctl start immich; then
echo "Failed to start immich service."
exit 1
fi

# Wait for the service to start
echo "Waiting for immich service to start..."
sleep 20

# Remove jellyfin-ffmpeg6 package
echo "Removing jellyfin-ffmpeg6 package..."
docker exec "$MICROSERVICES_CONTAINER" apt-get remove -y jellyfin-ffmpeg6

# Download and install ffmpeg-jellyfin5 package
echo "Downloading and installing ffmpeg-jellyfin5 package..."
FFMPEG_PACKAGE_NAME="jellyfin-ffmpeg5_5.1.3-4-kinetic_amd64.deb"
wget -O "$FFMPEG_PACKAGE_NAME" "$FFMPEG_PACKAGE_URL"
docker cp "$FFMPEG_PACKAGE_NAME" "$MICROSERVICES_CONTAINER:/tmp/"
docker exec "$MICROSERVICES_CONTAINER" dpkg -i "/tmp/$FFMPEG_PACKAGE_NAME"
rm "$FFMPEG_PACKAGE_NAME"

# Clean up Docker resources
echo "Cleaning up Docker resources..."
docker system prune -a -f
docker system prune --volumes -f

echo "Update and installation completed."
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
I extended ,my systemd startscript for immich. Pretty hacky but does what i need 😄
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
But that requires me to edit the container after every reboot and Immich update. Maybe I edit my systemd script to do that for me.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
Tried. No difference.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
Same issue here. Seems like there is no proper fix for ffmpeg6 yet.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
No. Doesn´t work.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
Seems like a known bug
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
But are you able to downgrade jellyfin-ffmpeg6 to 5.13?
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
Thats an case where one could live with.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
Only 240fps SloMos are failing with QSV now.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
I was able to strip this down.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
Asking in the jellyfin discord.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
Okay. But this seems to have an Issue with iPhone HEVC videos.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
I used this release. https://github.com/jellyfin/jellyfin-ffmpeg/releases/tag/v5.1.3-4 Don´t know if it makes sense to raise an issue in the repo.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
No description
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
Let me downgrade it in the microservices container.
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
jellyfin-ffmpeg5 = works
32 replies
IImmich
Created by svenger87 on 8/7/2023 in #help-desk-support
Debug Intel QSV en/decoding on a 12th Gen Intel CPU
jellyfin-ffmpeg6 = does not work.
32 replies