jellyfin / jellyfin

The Free Software Media System
https://jellyfin.org
GNU General Public License v2.0
35.45k stars 3.21k forks source link

[Issue]: Seeking in web player results in either ignoring seek or player getting stuck #9415

Open GodTamIt opened 1 year ago

GodTamIt commented 1 year ago

Please describe your bug

Steps to reproduce:

  1. Try playing a file that supports direct streaming.
  2. Try to constantly seek to different parts of the video.
  3. After a while, notice that player either refuses to seek (jumps back to where it started playing first) or gets forever stuck.

Jellyfin Version

10.8.0

if other:

10.8.8

Environment

- OS: Arch Linux
- Virtualization: None
- Clients: Browser
- Browser: Firefox 109.0.1
- FFmpeg Version: 5.1.2
- Playback Method: Direct Streaming
- Hardware Acceleration: VAAPI (Intel Arc A380)
- Plugins: none
- Reverse Proxy: nginx
- Base URL: n/a
- Networking: n/a
- Storage: local

Jellyfin logs

[2023-02-28 06:46:19.941 -05:00] [INF] [130] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-02-28 06:46:19.941 -05:00] [INF] [130] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -fflags +genpts  -i file:\"/path/redacted.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 384000 -ar 48000 -af \"volume=2\" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_segment_filename \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8\""
[2023-02-28 06:46:20.118 -05:00] [INF] [185] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Web" "10.8.9" playing "Media Title: Redacted". Stopped at "3760238" ms
[2023-02-28 06:46:20.124 -05:00] [WRN] [185] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "https://redacted.com/Sessions/Playing/Stopped" to "192.168.50.1" in 0:00:01.5832545 with Status Code 204
[2023-02-28 06:46:22.415 -05:00] [INF] [63] Jellyfin.Api.Helpers.TranscodingJobHelper: Stopping ffmpeg process with q command for "/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8"
[2023-02-28 06:46:22.458 -05:00] [INF] [63] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0
[2023-02-28 06:46:22.458 -05:00] [INF] [63] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-02-28 06:46:22.458 -05:00] [INF] [63] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -ss 00:07:43.130 -fflags +genpts  -i file:\"/path/redacted.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 384000 -ar 48000 -af \"volume=2\" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 71 -hls_segment_filename \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8\""
[2023-02-28 06:46:26.408 -05:00] [INF] [208] Jellyfin.Api.Helpers.TranscodingJobHelper: Stopping ffmpeg process with q command for "/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8"
[2023-02-28 06:46:26.476 -05:00] [INF] [208] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0
[2023-02-28 06:46:26.476 -05:00] [INF] [208] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-02-28 06:46:26.476 -05:00] [INF] [208] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -ss 01:12:36.103 -fflags +genpts  -i file:\"/path/redacted.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 384000 -ar 48000 -af \"volume=2\" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 649 -hls_segment_filename \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8\""
[2023-02-28 06:46:45.584 -05:00] [INF] [185] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0
[2023-02-28 06:46:59.111 -05:00] [INF] [138] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2023-02-28 06:47:11.110 -05:00] [INF] [130] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2023-02-28 06:47:12.277 -05:00] [INF] [138] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-02-28 06:47:12.277 -05:00] [INF] [138] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -ss 01:11:28.452 -fflags +genpts  -i file:\"/path/redacted.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 384000 -ar 48000 -af \"volume=2\" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 641 -hls_segment_filename \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8\""
[2023-02-28 06:47:13.001 -05:00] [INF] [56] Jellyfin.Api.Helpers.TranscodingJobHelper: Stopping ffmpeg process with q command for "/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8"
[2023-02-28 06:47:13.093 -05:00] [INF] [56] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0
[2023-02-28 06:47:13.093 -05:00] [INF] [56] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-02-28 06:47:13.093 -05:00] [INF] [56] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -ss 00:07:01.839 -fflags +genpts  -i file:\"/path/redacted.mkv\" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 384000 -ar 48000 -af \"volume=2\" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 66 -hls_segment_filename \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8\""
[2023-02-28 06:47:23.112 -05:00] [INF] [185] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 1 WebSockets.
[2023-02-28 06:48:21.938 -05:00] [INF] [129] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0

FFmpeg logs

/videos/97d19ce4-abc7-c609-1b11-b9bb6342e976/hls1/main/46.ts

{"Protocol":0,"Id":"97d19ce4abc7c6091b11b9bb6342e976","Path":"/path/redacted.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":1926663394,"Name":"Media Name: Redacted","IsRemote":false,"ETag":"c8780652f0f70d783940ae8a90269168","RunTimeTicks":58470510000,"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":null,"Language":null,"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/1000","CodecTimeBase":null,"Title":null,"VideoRange":"SDR","VideoRangeType":"SDR","VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"1080p H264 SDR","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"ChannelLayout":null,"BitRate":2636082,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":960,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"High","Type":1,"AspectRatio":"2:1","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":null},{"Codec":"aac","CodecTag":null,"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/1000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"English - AAC - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":384000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"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":"subrip","CodecTag":null,"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/1000","CodecTimeBase":null,"Title":"English","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"English - Default - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":3020082,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -ss 00:05:17.610 -fflags +genpts  -i file:"/path/redacted.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 384000 -ar 48000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 6 -hls_segment_type mpegts -start_number 46 -hls_segment_filename "/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8"

ffmpeg version 5.1.2-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)
  configuration: --prefix=/ffbuild/prefix --pkg-config=pkg-config --pkg-config-flags=--static --cross-prefix=x86_64-ffbuild-linux-gnu- --arch=x86_64 --target-os=linux --extra-version=Jellyfin --extra-cflags= --extra-cxxflags= --extra-ldflags= --extra-ldexeflags=-pie --extra-libs='-lfftw3f -lstdc++ -ldl' --enable-gpl --enable-version3 --enable-lto --disable-ffplay --disable-debug --disable-doc --disable-ptx-compression --disable-sdl2 --disable-libxcb --disable-xlib --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-chromaprint --enable-libvorbis --enable-opencl --enable-amf --enable-libdav1d --enable-libfdk-aac --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libsrt --enable-libsvtav1 --enable-libdrm --enable-vaapi --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libzimg --enable-libzvbi
  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, matroska,webm, from 'file:/path/redacted.mkv':
  Metadata:
    encoder         : libebml v1.4.4 + libmatroska v1.7.1
    creation_time   : 2023-02-28T11:36:36.000000Z
  Duration: 01:37:27.05, start: 0.000000, bitrate: 2636 kb/s
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x960 [SAR 1:1 DAR 2:1], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS             : 2249692
      DURATION        : 01:37:27.008000000
      NUMBER_OF_FRAMES: 140188
      NUMBER_OF_BYTES : 1644246203
      _STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2023-02-28 11:36:36
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      BPS             : 384000
      DURATION        : 01:37:27.018000000
      NUMBER_OF_FRAMES: 274079
      NUMBER_OF_BYTES : 280657375
      _STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2023-02-28 11:36:36
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: subrip (default)
    Metadata:
      title           : English
      BPS             : 77
      DURATION        : 01:36:24.153000000
      NUMBER_OF_FRAMES: 1543
      NUMBER_OF_BYTES : 56326
      _STATISTICS_WRITING_APP: mkvmerge v73.0.0 ('25 or 6 to 4') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2023-02-28 11:36:36
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
Output #0, hls, to '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e.m3u8':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x960 [SAR 1:1 DAR 2:1], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn (default)
  Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 384 kb/s (default)
    Metadata:
      encoder         : Lavc59.37.100 libfdk_aac
frame=    1 fps=0.0 q=-1.0 size=N/A time=-00:05:07.14 bitrate=N/A speed=N/A    
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e46.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e47.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e48.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e49.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e50.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e51.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e52.ts' for writing
frame= 1123 fps=0.0 q=-1.0 size=N/A time=00:00:47.03 bitrate=N/A speed=89.7x    
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e53.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e54.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e55.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e56.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e57.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e58.ts' for writing
frame= 2080 fps=2030 q=-1.0 size=N/A time=00:01:26.86 bitrate=N/A speed=84.8x    
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e59.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e60.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e61.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e62.ts' for writing
frame= 3044 fps=1997 q=-1.0 size=N/A time=00:02:07.16 bitrate=N/A speed=83.4x    
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e63.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e64.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e65.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e66.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e67.ts' for writing
frame= 4006 fps=1979 q=-1.0 size=N/A time=00:02:47.28 bitrate=N/A speed=82.6x    
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e68.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e69.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e70.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e71.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e72.ts' for writing
frame= 4960 fps=1965 q=-1.0 size=N/A time=00:03:26.99 bitrate=N/A speed=  82x    
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e73.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e74.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e75.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e76.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e77.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e78.ts' for writing
frame= 5928 fps=1960 q=-1.0 size=N/A time=00:04:07.41 bitrate=N/A speed=81.8x    
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e79.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e80.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e81.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e82.ts' for writing
frame= 6890 fps=1955 q=-1.0 size=N/A time=00:04:47.48 bitrate=N/A speed=81.6x    
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e83.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e84.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e85.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e86.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e87.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e88.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e89.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e90.ts' for writing
frame= 7824 fps=1944 q=-1.0 size=N/A time=00:05:26.56 bitrate=N/A speed=81.1x    
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e91.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e92.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e93.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e94.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e95.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e96.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e97.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e98.ts' for writing
frame= 8786 fps=1942 q=-1.0 size=N/A time=00:06:06.49 bitrate=N/A speed=  81x       
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e852.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e853.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e854.ts' for writing
[hls @ 0x5650a807ad40] Opening '/tmp/jellyfin/transcodes/07d18d82f169dcbe5f779c7ef4f1989e855.ts' for writing
frame=132823 fps=1906 q=-1.0 Lsize=N/A time=01:32:19.87 bitrate=N/A speed=79.5x    
video:1533495kB audio:259193kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

tribly commented 1 year ago

I have the same problem, but only with one series. Tried different releases and containers and always ends with having to restart Jellyfin because it gets stuck.

mcmuller commented 1 year ago

plus 1. Unable to seek in DircetPlay files anymore

gomaaz commented 1 year ago

Same here with one Series. Same output as above in first post. Gets stuck after 1 to 2 seeks and quits playing.

Also updated to ffmpeg 6 with no differences.

gomaaz commented 1 year ago

I digged a Bit deeper...

I compared many Video files with checking the Attributes with Mediainfo.

IT Turns Out that Video files with ref frames 4 running without issues. All those Videos with unlogic skip behaviour or Halting had ref frames 5 plus the jellyfin Log Error as above

Maybe IT helps....

Auxtal commented 1 year ago

+1 I'm having the same problems, for me 1080p work fine but not 4k media.

gogito commented 1 year ago

Following

Auxtal commented 12 months ago

Just thought I'd mention how I resolved this issue for my deployment, after doing some very thorough research I found a very old web forum which I can't find anymore. However it mentions that if you're running your Jellyfin instance through Cloudflare. Cloudflare's caching system can cause this issue. It can simply be resolved by setting Caching > Configuration > Caching level = No Query String

Again this was the solution for me it maybe different for others but give it a go none the less :)

jellyfin-bot commented 8 months ago

This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.

If you have any questions you can use one of several ways to contact us.

tribly commented 7 months ago

Still open.

adoreparler commented 7 months ago

Screen Recording 2024-04-22 at 3 40 12 PM

jettycake commented 6 months ago

This also happens when using the Android TV application running on a Shield.

jellyfin-bot commented 2 months ago

This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.

If you have any questions you can use one of several ways to contact us.

elendil7 commented 2 months ago

It may be a reverse proxy issue. I was running jellyfin on a remote server and had proxying through cloudflare enabled for my subdomains, and seeking was constantly taking a long time and timing out (even with caching disabled on both nginx and cloudflare).

The solution for me was to disable proxying through cloudflare (keep the A record though), which opens me up to DDOS attacks but for a personal server it hardly matters. Now, seeking is almost instant, and constant seeking never times out.

Naturally, I don't know much about your setup so feel free to heed the above info as you will, may or may not apply to your situation.

adoreparler commented 2 months ago

For my video above I was on same network and wired connection, no proxy using direct IP.