Jellyfin Forum
Uninstalling jellyfin on truenas scale - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Uninstalling jellyfin on truenas scale (/t-uninstalling-jellyfin-on-truenas-scale)



Uninstalling jellyfin on truenas scale - jessie schafer - 2024-06-12

I get a fatal playback error when trying to watch mp4 files now after the update to 10.9.6_1.2.16. (had no issues before) Looking around it probably has to do with the FFMPEG, I THINK I installed custom one a long time ago but im not sure when i found this thread https://forum.jellyfin.org/t-solved-playback-failed-due-to-a-fatal-player-error-cannot-play-newly-added-media-10-9-2. It made sense that mine would be borked, but i have no idea how to set it back to point to jellyfins FFMPEG directory or if there is a conflict that I can change. I found "ffmpeg-6.0-essentials" in a directory and deleted it.

Barring that, if I uninstall from truenas scale will I lose all of my configs, databases and settings when I reinstall?

TrueNAS-SCALE-22.12.4.2
JellyFIN 10.9.6_1.2.16 (
7700k
32GB DDR4
GTX 1660s

My expertise here is limited, especially with Linux/Debian systems so please bear with me. I pulled the logs and found this below,  I also attached a zip with them

2024-06-12 00:29:13.446234+00:00[00:29:13] [ERR] [25] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 1
2024-06-12 00:29:13.539300+00:00[00:29:13] [ERR] [25] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL GET /videos/c591cf70-2633-3d82-3cf0-0d5100bde6cf/hls1/main/-1.mp4.
2024-06-12 00:29:13.539351+00:00MediaBrowser.Common.FfmpegException: FFmpeg exited with code 1

Thank you in advance!


RE: Uninstalling jellyfin on truenas scale - TheDreadPirate - 2024-06-12

ffmpeg is crashing so we'd need to see the ffmpeg log.


RE: Uninstalling jellyfin on truenas scale - jessie schafer - 2024-06-12

{"Protocol":0,"Id":"c591cf7026333d823cf00d5100bde6cf","Path":"/JellyFin/Movies/War.for.the.Planet.of.the.Apes.2017.1080p.BluRay.x265-RARBG/War.for.the.Planet.of.the.Apes.2017.1080p.BluRay.x265-RARBG.mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mov,mp4,m4a,3gp,3g2,mj2","Size":2344565760,"Name":"War.for.the.Planet.of.the.Apes.2017.1080p.BluRay.x265-RARBG","IsRemote":false,"ETag":"9857f9d4cc9833f5cd8b8810396caddb","RunTimeTicks":84093231104,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"hevc","CodecTag":"hev1","Language":"und","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1200000","CodecTimeBase":null,"Title":null,"VideoRange":1,"VideoRangeType":1,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"1080p HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":1999774,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":800,"Width":1920,"AverageFrameRate":23.976215,"RealFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"2.40:1","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":120,"IsAnamorphic":null},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/48000","CodecTimeBase":null,"Title":null,"VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"English - AAC - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":224000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":2230444,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -hwaccel_flags +unsafe_output -threads 1 -noautorotate -i file:"/JellyFin/Movies/War.for.the.Planet.of.the.Apes.2017.1080p.BluRay.x265-RARBG/War.for.the.Planet.of.the.Apes.2017.1080p.BluRay.x265-RARBG.mp4" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_nvenc -preset p1 -b:v 8332392 -maxrate 8332392 -bufsize 16664784 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p" -codec:a:0 libfdk_aac -ac 2 -ab 256000 -ar 48000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "45989d12d5c3703b11ec453b441925a2-1.mp4" -start_number 0 -hls_segment_filename "/config/transcodes/45989d12d5c3703b11ec453b441925a2%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/45989d12d5c3703b11ec453b441925a2.m3u8"


ffmpeg version 6.0.1-Jellyfin Copyright © 2000-2023 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fileConfused-faceJellyFin/Movies/War.for.the.Planet.of.the.Apes.2017.1080p.BluRay.x265-RARBG/War.for.the.Planet.of.the.Apes.2017.1080p.BluRay.x265-RARBG.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
creation_time : 2020-03-31T23:20:02.000000Z
title : War.for.the.Planet.of.the.Apes.2017.1080p.BluRay.x265-RARBG
encoder : Lavf58.20.100
comment : War.for.the.Planet.of.the.Apes.2017.1080p.BluRay.x265-RARBG
Duration: 02:20:09.28, start: 0.000000, bitrate: 2230 kb/s
Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x3176656Nerd-face, yuv420p10le(tv), 1920x800 [SAR 1:1 DAR 12:5], 1999 kb/s, 23.98 fps, 23.98 tbr, 1200k tbn (default)
Metadata:
creation_time : 2020-03-31T23:20:02.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 224 kb/s (default)
Metadata:
creation_time : 2020-03-31T23:20:02.000000Z
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream mapping:
Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_nvenc))
Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[h264_nvenc @ 0x559d1a8bc100] Driver does not support the required nvenc API version. Required: 12.0 Found: 11.1
[h264_nvenc @ 0x559d1a8bc100] The minimum required Nvidia driver for nvenc is 520.56.06 or newer
[vost#0:0/h264_nvenc @ 0x559d1a88b980] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libfdk_aac @ 0x559d1a8b0940] 2 frames left in the queue on closing
Conversion failed!


RE: Uninstalling jellyfin on truenas scale - Efficient_Good_5784 - 2024-06-12

(2024-06-12, 12:36 AM)jessie schafer Wrote: It made sense that mine would be borked, but i have no idea how to set it back to point to jellyfins FFMPEG directory or if there is a conflict that I can change. I found "ffmpeg-6.0-essentials" in a directory and deleted it.
Making a new container will bring with it the correct FFMPEG used by Jellyfin. No setup required and it will point to it automatically.
Maybe try making a new container instead of using ix-system's auto-update for the container?

(2024-06-12, 12:36 AM)jessie schafer Wrote: Barring that, if I uninstall from truenas scale will I lose all of my configs, databases and settings when I reinstall?
You will lose any files that are not externally mounted since you're dealing with containers. As the name implies, things inside of it are contained and kept separate from the rest of the host system.
If you have not made any steps to make a dataset specifically for Jellyfin's config folder and host mounted that config folder dataset to the container, you have the config folder inside the container.

Basically, the Jellyfin config folder contains all your settings and metadata. You can simply do the following:
  1. Make a new dataset, then add it as a host mount to your current Jellyfin container.
  2. Go to the container/app's shell (found in the app's GUI box), then copy and paste the config folder from the container into the new dataset.
  3. Once done, you can now link the config folder found in the new dataset to any new Jellyfin containers/apps that you will launch.



RE: Uninstalling jellyfin on truenas scale - jessie schafer - 2024-06-12

(2024-06-12, 01:03 AM)Efficient_Good_5784 Wrote:
(2024-06-12, 12:36 AM)jessie schafer Wrote: It made sense that mine would be borked, but i have no idea how to set it back to point to jellyfins FFMPEG directory or if there is a conflict that I can change. I found "ffmpeg-6.0-essentials" in a directory and deleted it.
Making a new container will bring with it the correct FFMPEG used by Jellyfin. No setup required and it will point to it automatically.
Maybe try making a new container instead of using ix-system's auto-update for the container?

(2024-06-12, 12:36 AM)jessie schafer Wrote: Barring that, if I uninstall from truenas scale will I lose all of my configs, databases and settings when I reinstall?
You will lose any files that are not externally mounted since you're dealing with containers. As the name implies, things inside of it are contained and kept separate from the rest of the host system.
If you have not made any steps to make a dataset specifically for Jellyfin's config folder and host mounted that config folder dataset to the container, you have the config folder inside the container.

Basically, the Jellyfin config folder contains all your settings and metadata. You can simply do the following:
  1. Make a new dataset, then add it as a host mount to your current Jellyfin container.
  2. Go to the container/app's shell (found in the app's GUI box), then copy and paste the config folder from the container into the new dataset.
  3. Once done, you can now link the config folder found in the new dataset to any new Jellyfin containers/apps that you will launch.

I saw this in my transcode log i posted:

[h264_nvenc @ 0x559d1a8bc100] Driver does not support the required nvenc API version. Required: 12.0 Found: 11.1
[h264_nvenc @ 0x559d1a8bc100] The minimum required Nvidia driver for nvenc is 520.56.06 or newer
[vost#0:0/h264_nvenc @ 0x559d1a88b980] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libfdk_aac @ 0x559d1a8b0940] 2 frames left in the queue on closing
Conversion failed!

I didnt have this issue until I updated to JellyFIN 10.9.6_1.2.16. I will try updating Truenas scale first to 24.x.x.x and see if it brings over the updated drivers for my GPU. If that doesnt work ill try your advice

Thanks for helping a noob on this!


RE: Uninstalling jellyfin on truenas scale - TheDreadPirate - 2024-06-12

jellyfin ffmpeg 6 brought up the minimum Nvidia driver version to 520 so that makes sense.


RE: Uninstalling jellyfin on truenas scale - jessie schafer - 2024-06-12

Ok. Upgraded truenas scale to 23.x, the. Reinstalled Jellyfin. I lost all of my settings, configs ect. Mostly because I don't have enough experience and didn't really know what u-efficient-good-5784 was trying to tell me, although I do appreciate the help and community!

It's back up and running, now I just have to get all the plugins, settings and users back online. It's just a home project so I'm still learning and do appreciate the help y'all.