Jellyfin performance

Reporting Issue

Required Information

  • DietPi version |
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=10
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
  • Distro version |
    Bullseye
  • Kernel version |
    5.15.74-v8+ #1595 SMP PREEMPT Wed Oct 26 11:07:24 BST 2022 aarch64 GNU/Linux
  • SBC model |
    RPi 4 Model B
  • Power supply used | USB wall socket
  • SD card used | Samsung SSD (250GB)

Additional Information (if applicable)

  • Software title | Jellyfin
  • Was the software title installed freshly or updated/migrated? Updated
  • Can this issue be replicated on a fresh installation of DietPi? Unable to check
  • Bug report ID | echo $G_HW_UUID

After updating dietpi recently sudo apt update && sudo apt -y upgrade
Jellyfin seems to be very slow loading, or not even able to play files (formatted in handbrake to avoid transcoding), while just a couple of days ago performace was perfect.

Attached are various logs. Any idea what has changed?

Oct 31 15:45:07 MMSERVER64 jellyfin[3168]: [15:45:07] [INF] Executed all pre-startup entry points in 0:00:00.3495968
Oct 31 15:45:07 MMSERVER64 jellyfin[3168]: [15:45:07] [INF] Core startup complete
Oct 31 15:45:07 MMSERVER64 jellyfin[3168]: [15:45:07] [INF] Watching directory /mnt/dietpi_hdd01/Movies
Oct 31 15:45:07 MMSERVER64 jellyfin[3168]: [15:45:07] [INF] Starting NAT discovery
Oct 31 15:45:07 MMSERVER64 jellyfin[3168]: [15:45:07] [INF] Watching directory /mnt/dietpi_hdd01/Misc
Oct 31 15:45:07 MMSERVER64 jellyfin[3168]: [15:45:07] [INF] Watching directory /mnt/dietpi_hdd01/Cartoons
Oct 31 15:45:07 MMSERVER64 jellyfin[3168]: [15:45:07] [INF] Watching directory /mnt/dietpi_hdd01/TV
Oct 31 15:45:07 MMSERVER64 jellyfin[3168]: [15:45:07] [INF] Watching directory /mnt/dietpi_hdd02/TV
Oct 31 15:45:08 MMSERVER64 jellyfin[3168]: [15:45:08] [INF] Executed all post-startup entry points in 0:00:01.3183677
Oct 31 15:45:08 MMSERVER64 jellyfin[3168]: [15:45:08] [INF] Startup complete 0:00:17.1739844
[2022-10-31 15:44:50.409 +00:00] [INF] Running query planner optimizations in the database... This might take a while
[2022-10-31 15:44:50.645 +00:00] [INF] Disposing "CoreAppHost"
[2022-10-31 15:44:50.648 +00:00] [INF] Disposing "UserDataChangeNotifier"
[2022-10-31 15:44:50.650 +00:00] [INF] Disposing "SchedulesDirect"
[2022-10-31 15:44:50.651 +00:00] [INF] Disposing "LibraryMonitorStartup"
[2022-10-31 15:44:50.651 +00:00] [INF] Disposing "UdpServerEntryPoint"
[2022-10-31 15:44:50.652 +00:00] [INF] Disposing "EmbyTV"
[2022-10-31 15:44:50.656 +00:00] [INF] Disposing "LibraryChangedNotifier"
[2022-10-31 15:44:50.663 +00:00] [INF] Disposing "DlnaEntryPoint"
[2022-10-31 15:44:50.664 +00:00] [INF] Disposing DeviceDiscovery
[2022-10-31 15:44:50.665 +00:00] [INF] Disposing SsdpCommunicationsServer
[2022-10-31 15:44:50.670 +00:00] [INF] Disposing "MusicBrainzAlbumProvider"
[2022-10-31 15:44:50.671 +00:00] [INF] Disposing "EntryPoint"
[2022-10-31 15:44:50.671 +00:00] [INF] Disposing "EntryPoint"
[2022-10-31 15:44:50.672 +00:00] [INF] Disposing "NotificationEntryPoint"
[2022-10-31 15:44:50.675 +00:00] [INF] Disposing "ExternalPortForwarding"
[2022-10-31 15:44:50.678 +00:00] [INF] Stopping NAT discovery
[2022-10-31 15:44:50.693 +00:00] [INF] Disposing "DeviceAccessEntryPoint"
[2022-10-31 15:44:50.693 +00:00] [INF] Disposing "RecordingNotifier"
[2022-10-31 15:44:51.858 +00:00] [INF] Jellyfin version: "10.8.6"
[2022-10-31 15:44:51.963 +00:00] [INF] Environment Variables: ["[JELLYFIN_LOG_DIR, /var/log/jellyfin]", "[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_ARGS, $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS]", "[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web]", "[JELLYFIN_ADDITIONAL_OPTS, ]", "[JELLYFIN_RESTART_OPT, --restartpath=/usr/lib/jellyfin/restart.sh]", "[JELLYFIN_CONFIG_DIR, /etc/jellyfin]", "[JELLYFIN_USER, jellyfin]", "[JELLYFIN_CACHE_DIR, /mnt/dietpi_userdata/jellyfin/cache]", "[JELLYFIN_DATA_DIR, /mnt/dietpi_userdata/jellyfin]"]
[2022-10-31 15:44:51.976 +00:00] [INF] Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--webdir=/usr/share/jellyfin/web", "--restartpath=/usr/lib/jellyfin/restart.sh", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[2022-10-31 15:44:51.982 +00:00] [INF] Operating system: "Linux"
[2022-10-31 15:44:51.983 +00:00] [INF] Architecture: Arm64
[2022-10-31 15:44:51.987 +00:00] [INF] 64-Bit Process: True
[2022-10-31 15:44:51.987 +00:00] [INF] User Interactive: True
[2022-10-31 15:44:51.987 +00:00] [INF] Processor count: 4
[2022-10-31 15:44:51.988 +00:00] [INF] Program data path: "/mnt/dietpi_userdata/jellyfin"
[2022-10-31 15:44:51.989 +00:00] [INF] Web resources path: "/usr/share/jellyfin/web"
[2022-10-31 15:44:51.989 +00:00] [INF] Application directory: "/usr/lib/jellyfin/bin/"
[2022-10-31 15:44:52.518 +00:00] [INF] Setting cache path: "/mnt/dietpi_userdata/jellyfin/cache"
[2022-10-31 15:44:52.578 +00:00] [INF] Loading assemblies
[2022-10-31 15:44:52.908 +00:00] [INF] Defined LAN addresses : "[10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]"
[2022-10-31 15:44:52.908 +00:00] [INF] Defined LAN exclusions : "[]"
[2022-10-31 15:44:52.911 +00:00] [INF] Using LAN addresses: "[10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]"
[2022-10-31 15:44:52.935 +00:00] [INF] Using bind addresses: "[]"
[2022-10-31 15:44:52.936 +00:00] [INF] Using bind exclusions: "[]"
[2022-10-31 15:45:04.176 +00:00] [INF] Loaded plugin: "TMDb" "10.8.6.0"
[2022-10-31 15:45:04.181 +00:00] [INF] Loaded plugin: "Studio Images" "10.8.6.0"
[2022-10-31 15:45:04.183 +00:00] [INF] Loaded plugin: "OMDb" "10.8.6.0"
[2022-10-31 15:45:04.185 +00:00] [INF] Loaded plugin: "MusicBrainz" "10.8.6.0"
[2022-10-31 15:45:04.187 +00:00] [INF] Loaded plugin: "AudioDB" "10.8.6.0"
[2022-10-31 15:45:04.423 +00:00] [INF] Kestrel listening on "Any IP4 Address"
[2022-10-31 15:45:05.684 +00:00] [INF] Running startup tasks
[2022-10-31 15:45:06.114 +00:00] [INF] Found ffmpeg version "5.1.2"
[2022-10-31 15:45:06.211 +00:00] [INF] Available "decoders": ["libdav1d", "av1", "h264", "hevc", "mpeg2video", "mpeg4", "msmpeg4", "vp8", "libvpx", "vp9", "libvpx-vp9", "aac", "ac3", "flac", "mp3"]
[2022-10-31 15:45:06.258 +00:00] [INF] Available "encoders": ["libx264", "h264_v4l2m2m", "libx265", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "flac", "libmp3lame", "libopus", "libvorbis", "srt"]
[2022-10-31 15:45:06.303 +00:00] [INF] Available filters: ["hwupload_vaapi", "zscale", "alphasrc"]
[2022-10-31 15:45:06.349 +00:00] [WRN] Filter: "scale_cuda" with option "Output format (default \"same\")" is not available
[2022-10-31 15:45:06.392 +00:00] [WRN] Filter: "tonemap_cuda" with option "GPU accelerated HDR to SDR tonemapping" is not available
[2022-10-31 15:45:06.426 +00:00] [WRN] Filter: "tonemap_opencl" with option "bt2390" is not available
[2022-10-31 15:45:06.461 +00:00] [WRN] Filter: "overlay_opencl" with option "Action to take when encountering EOF from secondary input" is not available
[2022-10-31 15:45:06.510 +00:00] [WRN] Filter: "overlay_vaapi" with option "Action to take when encountering EOF from secondary input" is not available
[2022-10-31 15:45:06.548 +00:00] [INF] Available hwaccel types: ["drm"]
[2022-10-31 15:45:06.787 +00:00] [INF] FFmpeg: "/usr/lib/jellyfin-ffmpeg/ffmpeg"
[2022-10-31 15:45:06.791 +00:00] [INF] ServerId: "179bd2e195d5482ea916d8673cc24ed5"
[2022-10-31 15:45:07.174 +00:00] [INF] Executed all pre-startup entry points in 0:00:00.3495968
[2022-10-31 15:45:07.175 +00:00] [INF] Core startup complete
[2022-10-31 15:45:07.905 +00:00] [INF] Watching directory "/mnt/dietpi_hdd01/Movies"
[2022-10-31 15:45:07.908 +00:00] [INF] Starting NAT discovery
[2022-10-31 15:45:07.909 +00:00] [INF] Watching directory "/mnt/dietpi_hdd01/Misc"
[2022-10-31 15:45:07.912 +00:00] [INF] Watching directory "/mnt/dietpi_hdd01/Cartoons"
[2022-10-31 15:45:07.919 +00:00] [INF] Watching directory "/mnt/dietpi_hdd01/TV"
[2022-10-31 15:45:07.921 +00:00] [INF] Watching directory "/mnt/dietpi_hdd02/TV"
[2022-10-31 15:45:08.494 +00:00] [INF] Executed all post-startup entry points in 0:00:01.3183677
[2022-10-31 15:45:08.496 +00:00] [INF] Startup complete 0:00:17.1739844
[2022-10-31 15:45:53.741 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/System/Info/Public" to "192.168.1.90" in 0:00:00.5960373 with Status Code 200
[2022-10-31 15:45:54.907 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/System/Info" to "192.168.1.90" in 0:00:00.9738923 with Status Code 200
[2022-10-31 15:45:55.004 +00:00] [INF] WS "192.168.1.90" request
[2022-10-31 15:45:55.502 +00:00] [WRN] The entity type '"AccessSchedule"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.503 +00:00] [WRN] The entity type '"ActivityLog"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.503 +00:00] [WRN] The entity type '"CustomItemDisplayPreferences"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.504 +00:00] [WRN] The entity type '"DisplayPreferences"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.504 +00:00] [WRN] The entity type '"HomeSection"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.504 +00:00] [WRN] The entity type '"ImageInfo"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.504 +00:00] [WRN] The entity type '"ItemDisplayPreferences"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.504 +00:00] [WRN] The entity type '"Permission"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.504 +00:00] [WRN] The entity type '"Preference"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.505 +00:00] [WRN] The entity type '"ApiKey"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.505 +00:00] [WRN] The entity type '"Device"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.505 +00:00] [WRN] The entity type '"DeviceOptions"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:55.505 +00:00] [WRN] The entity type '"User"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2022-10-31 15:45:56.112 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/Sessions/Capabilities/Full" to "192.168.1.90" in 0:00:01.1914609 with Status Code 204
[2022-10-31 15:45:56.293 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/DisplayPreferences/usersettings?userId=44e900e4e20845499b0700d3c037c1eb&client=emby" to "192.168.1.90" in 0:00:01.3759155 with Status Code 200
[2022-10-31 15:45:57.298 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/Users/44e900e4e20845499b0700d3c037c1eb/Views" to "192.168.1.90" in 0:00:00.9490699 with Status Code 200
[2022-10-31 15:45:57.298 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/Users/44e900e4e20845499b0700d3c037c1eb/Views" to "192.168.1.90" in 0:00:00.8791287 with Status Code 200
[2022-10-31 15:45:57.909 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/Users/44e900e4e20845499b0700d3c037c1eb/Items/Resume?Limit=12&Recursive=true&Fields=PrimaryImageAspectRatio%2CBasicSyncInfo&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CThumb&EnableTotalRecordCount=false&MediaTypes=Video" to "192.168.1.90" in 0:00:00.5837001 with Status Code 200
[2022-10-31 15:45:57.935 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/Users/44e900e4e20845499b0700d3c037c1eb/Items/Latest?Limit=16&Fields=PrimaryImageAspectRatio%2CBasicSyncInfo%2CPath&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CThumb&ParentId=4514ec850e5ad0c47b58444e17b6346c" to "192.168.1.90" in 0:00:00.5113606 with Status Code 200
[2022-10-31 15:45:57.956 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/Users/44e900e4e20845499b0700d3c037c1eb/Items/Latest?Limit=16&Fields=PrimaryImageAspectRatio%2CBasicSyncInfo%2CPath&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CThumb&ParentId=f137a2dd21bbc1b99aa5c0f6bf02a805" to "192.168.1.90" in 0:00:00.5354717 with Status Code 200
[2022-10-31 15:45:58.062 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/Shows/NextUp?Limit=24&Fields=PrimaryImageAspectRatio%2CDateCreated%2CBasicSyncInfo%2CPath%2CMediaSourceCount&UserId=44e900e4e20845499b0700d3c037c1eb&ImageTypeLimit=1&EnableImageTypes=Primary%2CBackdrop%2CBanner%2CThumb&EnableTotalRecordCount=false&DisableFirstEpisode=false&NextUpDateCutoff=2021-10-31T15%3A45%3A57.209Z&EnableRewatching=false" to "192.168.1.90" in 0:00:00.7361649 with Status Code 200
[2022-10-31 15:46:02.070 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/Items/c9b1aa43ad37d4cea143094a2d374da6/Images/Primary?fillHeight=347&fillWidth=640&quality=96&tag=bbc2a1e3d82dfab4e27a975e0954864c" to "192.168.1.90" in 0:00:00.5106767 with Status Code 200
[2022-10-31 15:46:11.474 +00:00] [INF] User policy for "dietpi". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2022-10-31 15:46:11.794 +00:00] [INF] StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/mnt/dietpi_hdd01/Movies/Ghibli/Only Yesterday - Omoide Poroporo [1991].mp4", AudioStreamIndex=1, SubtitleStreamIndex=-1 ) => ( PlayMethod=Transcode, TranscodeReason=VideoCodecNotSupported ) "media:/videos/c9b1aa43-ad37-d4ce-a143-094a2d374da6/master.m3u8?MediaSourceId=c9b1aa43ad37d4cea143094a2d374da6&VideoCodec=h264,h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=139840064&AudioBitrate=159936&AudioSampleRate=48000&MaxFramerate=23.976025&api_key=<token>&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=ed64a40c1df0e2265248e78dcdb664ea&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-level=40&h264-videobitdepth=8&h264-profile=high&h264-audiochannels=2&aac-profile=lc&h264-rangetype=SDR&h264-deinterlace=true&TranscodeReasons=VideoCodecNotSupported"
[2022-10-31 15:46:11.832 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/Items/c9b1aa43ad37d4cea143094a2d374da6/PlaybackInfo?UserId=44e900e4e20845499b0700d3c037c1eb&StartTimeTicks=28484276450&IsPlayback=true&AutoOpenLiveStream=true&AudioStreamIndex=1&SubtitleStreamIndex=-1&MediaSourceId=c9b1aa43ad37d4cea143094a2d374da6&MaxStreamingBitrate=140000000" to "192.168.1.90" in 0:00:00.9251275 with Status Code 200
[2022-10-31 15:46:12.781 +00:00] [INF] Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2022-10-31 15:46:12.924 +00:00] [INF] "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -f mov,mp4,m4a,3gp,3g2,mj2 -autorotate 0 -i file:\"/mnt/dietpi_hdd01/Movies/Ghibli/Only Yesterday - Omoide Poroporo [1991].mp4\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -preset veryfast -crf 19 -maxrate 4204665 -bufsize 8409330 -profile:v:0 high -level 40 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 \"expr:gte(t,0+n_forced*3)\" -sc_threshold:v:0 0 -vf \"setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,yadif=0:-1:0,scale=trunc(min(max(iw\,ih*a)\,min(1280\,692*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(1280/a\,692))/2)*2,format=yuv420p\" -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename \"/mnt/dietpi_userdata/jellyfin/transcodes/c127dedd5937ff254c30355280c808b5%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/mnt/dietpi_userdata/jellyfin/transcodes/c127dedd5937ff254c30355280c808b5.m3u8\""
[2022-10-31 15:46:25.651 +00:00] [INF] WS "192.168.1.90" closed
[2022-10-31 15:46:25.687 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.99:8097/videos/c9b1aa43-ad37-d4ce-a143-094a2d374da6/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NDsgcnY6MTA2LjApIEdlY2tvLzIwMTAwMTAxIEZpcmVmb3gvMTA2LjB8MTY2NTE1ODgxNTk0OA11&MediaSourceId=c9b1aa43ad37d4cea143094a2d374da6&VideoCodec=h264,h264&AudioCodec=aac&AudioStreamIndex=1&VideoBitrate=139840064&AudioBitrate=159936&AudioSampleRate=48000&MaxFramerate=23.976025&PlaySessionId=2438b383ed4f4d8682147e2e9150b578&api_key=fef8b222fb1243c08f51148074eb3687&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=ed64a40c1df0e2265248e78dcdb664ea&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&h264-level=40&h264-videobitdepth=8&h264-profile=high&h264-audiochannels=2&aac-profile=lc&h264-rangetype=SDR&h264-deinterlace=true&TranscodeReasons=VideoCodecNotSupported&runtimeTicks=0&actualSegmentLengthTicks=30000000" to "192.168.1.90" in 0:00:13.0117285 with Status Code 200
[2022-10-31 15:47:25.731 +00:00] [INF] Transcoding kill timer stopped for JobId "73cd22a8fff843828bcada8b69686ef9" PlaySessionId "2438b383ed4f4d8682147e2e9150b578". Killing transcoding
[2022-10-31 15:47:25.784 +00:00] [INF] Stopping ffmpeg process with q command for "/mnt/dietpi_userdata/jellyfin/transcodes/c127dedd5937ff254c30355280c808b5.m3u8"
[2022-10-31 15:47:26.781 +00:00] [INF] FFmpeg exited with code 0
[2022-10-31 15:47:26.798 +00:00] [INF] Deleting partial stream file(s) "/mnt/dietpi_userdata/jellyfin/transcodes/c127dedd5937ff254c30355280c808b5.m3u8"

/videos/c9b1aa43-ad37-d4ce-a143-094a2d374da6/hls1/main/0.ts

{"Protocol":0,"Id":"c9b1aa43ad37d4cea143094a2d374da6","Path":"/mnt/dietpi_hdd01/Movies/Ghibli/Only Yesterday - Omoide Poroporo [1991].mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mov,mp4,m4a,3gp,3g2,mj2","Size":1922005760,"Name":"Only Yesterday - Omoide Poroporo [1991]","IsRemote":false,"ETag":"ed64a40c1df0e2265248e78dcdb664ea","RunTimeTicks":71282778112,"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":"h264","CodecTag":"avc1","Language":"und","ColorRange":null,"ColorSpace":"bt709","ColorTransfer":"bt709","ColorPrimaries":"bt709","DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":"12830843/615265200","Title":null,"VideoRange":"SDR","VideoRangeType":"SDR","VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"720i H264 SDR","NalLengthSize":"0","IsInterlaced":true,"IsAVC":false,"ChannelLayout":null,"BitRate":1681866,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":692,"Width":1280,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"High","Type":1,"AspectRatio":"1.85:1","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":null},{"Codec":"aac","CodecTag":"mp4a","Language":"jpn","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":"1/48000","Title":"Japanese 2.0 channel AAC","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Japanese 2.0 channel AAC - Stereo - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":159936,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":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},{"Codec":"aac","CodecTag":"mp4a","Language":"jpn","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":"1/48000","Title":"Japanese 2.0 channel AAC","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Japanese 2.0 channel AAC - Stereo","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":305232,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":2,"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":2157049,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -f mov,mp4,m4a,3gp,3g2,mj2 -autorotate 0 -i file:"/mnt/dietpi_hdd01/Movies/Ghibli/Only Yesterday - Omoide Poroporo [1991].mp4" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -preset veryfast -crf 19 -maxrate 4204665 -bufsize 8409330 -profile:v:0 high -level 40 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -sc_threshold:v:0 0 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,yadif=0:-1:0,scale=trunc(min(max(iw\,ih*a)\,min(1280\,692*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(1280/a\,692))/2)*2,format=yuv420p" -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/mnt/dietpi_userdata/jellyfin/transcodes/c127dedd5937ff254c30355280c808b5%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/mnt/dietpi_userdata/jellyfin/transcodes/c127dedd5937ff254c30355280c808b5.m3u8"
ffmpeg version 5.1.2-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --toolchain=hardened --enable-cross-compile --arch=arm64 --cross-prefix=/usr/bin/aarch64-linux-gnu-
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/mnt/dietpi_hdd01/Movies/Ghibli/Only Yesterday - Omoide Poroporo [1991].mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: mp42iso2avc1mp41
    creation_time   : 2022-10-08T13:48:08.000000Z
    title           : (1991) Only Yesterday~Omoide Poroporo (720p Blu-ray 8bit AAC) [NoobSubs]
    artist          : Subs: [Fussoir] - [NoobSubs]
    encoder         : HandBrake 1.3.3 2021060400
  Duration: 01:58:48.28, start: 0.000000, bitrate: 2157 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x692 [SAR 1:1 DAR 320:173], 1681 kb/s, 23.98 fps, 23.98 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2022-10-08T13:48:08.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](jpn): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 159 kb/s (default)
    Metadata:
      creation_time   : 2022-10-08T13:48:08.000000Z
      handler_name    : Japanese 2.0 channel AAC
      vendor_id       : [0][0][0][0]
  Stream #0:2[0x3](jpn): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 305 kb/s
    Metadata:
      creation_time   : 2022-10-08T13:48:08.000000Z
      handler_name    : Japanese 2.0 channel AAC
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0x55b4a09fd0] using SAR=1/1
[libx264 @ 0x55b4a09fd0] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x55b4a09fd0] profile Main, level 4.0, 4:2:0, 8-bit
[libx264 @ 0x55b4a09fd0] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=23 scenecut=0 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4204 vbv_bufsize=8409 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, hls, to '/mnt/dietpi_userdata/jellyfin/transcodes/c127dedd5937ff254c30355280c808b5.m3u8':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264, yuv420p(tv, bt709, progressive), 1280x692 [SAR 1:1 DAR 320:173], q=2-31, 23.98 fps, 90k tbn (default)
    Metadata:
      encoder         : Lavc59.37.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 4204000/0/0 buffer size: 8409000 vbv_delay: N/A
  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 159 kb/s (default)

This was not a DietPi update. You updated all apt managed packages.
DietPi scripts are updated using dietpi-update

Probably you updated jellyfin app as well because this is a Debian package installed from official jellyfin apt package server.

You could try asking on Jellyfin GitHub if someone is aware on a performance impact on latest version. Issues · jellyfin/jellyfin · GitHub or Getting Help | Jellyfin

Hi Joulinar, thanks for the reply.
I reinstalled using dietpi-software, but the issue remains. Would it be better to try a downgrade, or maybe fully uninstall and install via dietpi-software?

Cheers again.

our script will go to install latest version. Therefore, a reinstall will not change anything as you will end up on latest version always.

Theoretically you could try to downgrade manually. But without guarantee that this is working. It might break your installation

cd /tmp
wget https://repo.jellyfin.org/releases/server/debian/versions/stable/meta/10.8.5/jellyfin_10.8.5-1_all.deb
wget https://repo.jellyfin.org/releases/server/debian/versions/stable/server/10.8.5/jellyfin-server_10.8.5-1_arm64.deb
wget https://repo.jellyfin.org/releases/server/debian/versions/stable/web/10.8.5/jellyfin-web_10.8.5-1_all.deb
apt install --reinstall --allow-downgrades ./jellyfin* -y

Hi Joulinar
It turned out to be a Jellyfin bug, you were correct. The fix is mentioned here:

Thanks for your help!

As far as I can seem Jellyfin 10.8.7 has been released already, and should be available using apt update && apt upgrade.

1 Like