Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: Transcoding job killed before playback starts. #11640

Open
1 task done
kevincox opened this issue May 14, 2024 · 6 comments · May be fixed by #11643
Open
1 task done

[Issue]: Transcoding job killed before playback starts. #11640

kevincox opened this issue May 14, 2024 · 6 comments · May be fixed by #11643
Labels
bug Something isn't working

Comments

@kevincox
Copy link

Please describe your bug

When playing a transcoded video on a chromecast the ffmpeg process is killed before the video starts playing.

Reproduction Steps

  1. Cast a h265 video from the Android app.
  2. Wait for it to start playing.

Jellyfin Version

10.9.0

if other:

10.9.1

Environment

- OS: Linux
- Linux Kernel: 6.6.30
- Virtualization: None
- Clients: Jellyfin Android
- Browser: N/A
- FFmpeg Version: jellyfin-ffmpeg 6.0.1
- Playback Method: Transcode
- Hardware Acceleration: AMD AMF
- GPU Model: N/A
- Plugins: None
- Reverse Proxy: nginx
- Base URL: /
- Networking: ?
- Storage: N/A

Jellyfin logs

nginx: {"cache_status":"","connection_id":3813,"connection_request_count":9,"duration_s":0.001,"protocol":"HTTP/1.1","remote_addr":"::ffff:192.168.2.69","req_bytes":609,"req_content_length":"","req_content_type":"","req_host":"jellyfin.example","req_method":"OPTIONS","req_pipelined":".","req_referrer":"https://apps.jellyfin.org/","req_uri":"/Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d","req_via":"","req_user":"","req_user_agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.225 Safari/537.36 CrKey/1.56.500000","res_bytes":264,"res_bytes_body":0,"res_content_length":"","res_content_type":"","res_status":204,"res_gzip_ratio":"","ssl_session_reused":"r","time":"2024-05-14T18:59:23+00:00","http2":"","uri":"https://jellyfin.example/Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d"}
nginx: {"cache_status":"","connection_id":3813,"connection_request_count":10,"duration_s":0.002,"protocol":"HTTP/1.1","remote_addr":"::ffff:192.168.2.69","req_bytes":1045,"req_content_length":"52","req_content_type":"application/json","req_host":"jellyfin.example","req_method":"POST","req_pipelined":".","req_referrer":"https://apps.jellyfin.org/","req_uri":"/Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d","req_via":"","req_user":"","req_user_agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.225 Safari/537.36 CrKey/1.56.500000","res_bytes":163,"res_bytes_body":0,"res_content_length":"","res_content_type":"","res_status":204,"res_gzip_ratio":"","ssl_session_reused":"r","time":"2024-05-14T18:59:23+00:00","http2":"","uri":"https://jellyfin.example/Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d"}
nginx: {"cache_status":"","connection_id":3813,"connection_request_count":11,"duration_s":0.001,"protocol":"HTTP/1.1","remote_addr":"::ffff:192.168.2.69","req_bytes":609,"req_content_length":"","req_content_type":"","req_host":"jellyfin.example","req_method":"OPTIONS","req_pipelined":".","req_referrer":"https://apps.jellyfin.org/","req_uri":"/Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d","req_via":"","req_user":"","req_user_agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.225 Safari/537.36 CrKey/1.56.500000","res_bytes":264,"res_bytes_body":0,"res_content_length":"","res_content_type":"","res_status":204,"res_gzip_ratio":"","ssl_session_reused":"r","time":"2024-05-14T18:59:33+00:00","http2":"","uri":"https://jellyfin.example/Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d"}
[18:59:33] [INF] [94] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Transcoding kill timer stopped for JobId f5d1f95a5eda4125a5610b168848d9a2 PlaySessionId 4122ccf6510b40f79ceb27509411005d. Killing transcoding
[18:59:33] [INF] [94] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /var/lib/jellyfin/transcodes/6e1be1c92fe5e14780d974d95f95de06.mkv
nginx: {"cache_status":"","connection_id":3813,"connection_request_count":12,"duration_s":0.004,"protocol":"HTTP/1.1","remote_addr":"::ffff:192.168.2.69","req_bytes":1045,"req_content_length":"52","req_content_type":"application/json","req_host":"jellyfin.example","req_method":"POST","req_pipelined":".","req_referrer":"https://apps.jellyfin.org/","req_uri":"/Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d","req_via":"","req_user":"","req_user_agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.225 Safari/537.36 CrKey/1.56.500000","res_bytes":163,"res_bytes_body":0,"res_content_length":"","res_content_type":"","res_status":204,"res_gzip_ratio":"","ssl_session_reused":"r","time":"2024-05-14T18:59:33+00:00","http2":"","uri":"https://jellyfin.example/Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d"}
[18:59:34] [INF] [94] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 0
[18:59:34] [INF] [94] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) /var/lib/jellyfin/transcodes/6e1be1c92fe5e14780d974d95f95de06.mkv

FFmpeg logs

/nix/store/qzsm9p8k15nkwbqjkgg7iz73m1q289zk-jellyfin-ffmpeg-6.0.1-6-bin/bin/ffmpeg -analyzeduration 200M -probesize 1G  -i file:"/mnt/media/REDACTED_SERIES/REDACTED_VIDEO.mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -force_key_frames "expr:gte(t,n_forced*5)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(3840\,2160*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,2160))/2)*2,format=yuv420p" -copyts -avoid_negative_ts disabled -start_at_zero -preset superfast -crf 23 -maxrate 20136392 -bufsize 40272784 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 ac3 -ac 6 -ab 640000 -y "/var/lib/jellyfin/transcodes/6e1be1c92fe5e14780d974d95f95de06.mkv"


ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13.2.0 (GCC)
  configuration: --disable-static --prefix=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-jellyfin-ffmpeg-6.0.1-6 --target_os=linux --arch=x86_64 --pkg-config=pkg-config --enable-gpl --enable-version3 --disable-nonfree --disable-static --enable-shared --enable-pic --disable-thumb --disable-small --enable-runtime-cpudetect --enable-gray --enable-swscale-alpha --enable-hardcoded-tables --enable-safe-bitstream-reader --enable-pthreads --disable-w32threads --disable-os2threads --enable-network --enable-pixelutils --datadir=/nix/store/r4cs1r2kjsqqhd4rq32mqhvy98lqphxi-jellyfin-ffmpeg-6.0.1-6-data/share/ffmpeg --enable-ffmpeg --enable-ffplay --enable-ffprobe --bindir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-jellyfin-ffmpeg-6.0.1-6-bin/bin --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-avutil --enable-postproc --enable-swresample --enable-swscale --libdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-jellyfin-ffmpeg-6.0.1-6-lib/lib --incdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-jellyfin-ffmpeg-6.0.1-6-dev/include --enable-doc --enable-htmlpages --enable-manpages --mandir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-jellyfin-ffmpeg-6.0.1-6-man/share/man --enable-podpages --enable-txtpages --docdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-jellyfin-ffmpeg-6.0.1-6-doc/share/doc/ffmpeg --enable-alsa --enable-libaom --disable-appkit --enable-libass --disable-audiotoolbox --disable-avfoundation --enable-avisynth --enable-libbluray --enable-libbs2b --enable-bzlib --enable-libcaca --enable-libcelt --enable-chromaprint --enable-libcodec2 --disable-coreimage --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-libdav1d --enable-libdc1394 --enable-libdrm --disable-libfdk-aac --enable-ffnvcodec --enable-libflite --enable-fontconfig --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libfribidi --enable-libgme --enable-gnutls --enable-libgsm --enable-iconv --enable-libjack --enable-libjxl --enable-ladspa --enable-lzma --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-nvdec --enable-nvenc --enable-openal --enable-opencl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librtmp --enable-libsmbclient --enable-sdl2 --enable-libshaderc --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-librsvg --enable-libsvtav1 --disable-libtensorflow --enable-libtheora --enable-libv4l2 --enable-v4l2-m2m --enable-vaapi --enable-vdpau --disable-libvpl --disable-videotoolbox --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-vulkan --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxcb --enable-libxcb-shape --enable-libxcb-shm --enable-libxcb-xfixes --enable-xlib --enable-libxml2 --enable-libxvid --enable-libzimg --enable-zlib --enable-libzmq --disable-debug --enable-optimizations --disable-extra-warnings --disable-stripping --extra-version=Jellyfin --disable-ptx-compression
  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, matroska,webm, from 'file:/mnt/media/REDACTED_SERIES/REDACTED_VIDEO.mkv':
  Metadata:
    title           : REDACTED_TITLE
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    IMDB            : REDACTED
    TMDB            : REDACTED
    TVDB            : REDACTED
  Duration: 00:58:56.29, start: 0.000000, bitrate: 12081 kb/s
  Chapters:
    Chapter #0:0: start 3303.000000, end 3536.288000
      Metadata:
        title           : End Credits
  Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default) (original)
    Metadata:
      BPS             : 11306596
      DURATION        : 00:58:56.241000000
      NUMBER_OF_FRAMES: 84785
      NUMBER_OF_BYTES : 4997856143
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 768 kb/s (default) (original)
    Metadata:
      BPS             : 768000
      DURATION        : 00:58:56.288000000
      NUMBER_OF_FRAMES: 110509
      NUMBER_OF_BYTES : 339483648
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: subrip (original)
    Metadata:
      BPS             : 86
      DURATION        : 00:53:28.455000000
      NUMBER_OF_FRAMES: 885
      NUMBER_OF_BYTES : 34752
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(eng): Subtitle: subrip (original) (hearing impaired)
    Metadata:
      title           : SDH
      BPS             : 91
      DURATION        : 00:54:30.809000000
      NUMBER_OF_FRAMES: 965
      NUMBER_OF_BYTES : 37299
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(ara): Subtitle: subrip
    Metadata:
      BPS             : 124
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 891
      NUMBER_OF_BYTES : 52752
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(cze): Subtitle: subrip
    Metadata:
      BPS             : 73
      DURATION        : 00:56:25.340000000
      NUMBER_OF_FRAMES: 832
      NUMBER_OF_BYTES : 31049
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:6(dan): Subtitle: subrip
    Metadata:
      BPS             : 69
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 780
      NUMBER_OF_BYTES : 29226
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:7(ger): Subtitle: subrip
    Metadata:
      BPS             : 74
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 784
      NUMBER_OF_BYTES : 31654
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:8(gre): Subtitle: subrip
    Metadata:
      BPS             : 121
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 843
      NUMBER_OF_BYTES : 51453
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:9(spa): Subtitle: subrip
    Metadata:
      title           : Latin American
      BPS             : 74
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 800
      NUMBER_OF_BYTES : 31643
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:10(spa): Subtitle: subrip
    Metadata:
      BPS             : 71
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 837
      NUMBER_OF_BYTES : 30438
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:11(fin): Subtitle: subrip
    Metadata:
      BPS             : 65
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 680
      NUMBER_OF_BYTES : 27689
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:12(fil): Subtitle: subrip
    Metadata:
      BPS             : 70
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 863
      NUMBER_OF_BYTES : 29726
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:13(fre): Subtitle: subrip
    Metadata:
      BPS             : 71
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 832
      NUMBER_OF_BYTES : 30428
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:14(heb): Subtitle: subrip
    Metadata:
      BPS             : 113
      DURATION        : 00:56:21.378000000
      NUMBER_OF_FRAMES: 870
      NUMBER_OF_BYTES : 48098
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:15(hrv): Subtitle: subrip
    Metadata:
      BPS             : 65
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 869
      NUMBER_OF_BYTES : 27851
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:16(hun): Subtitle: subrip
    Metadata:
      BPS             : 75
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 840
      NUMBER_OF_BYTES : 32068
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:17(ind): Subtitle: subrip
    Metadata:
      BPS             : 71
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 823
      NUMBER_OF_BYTES : 30051
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:18(ita): Subtitle: subrip
    Metadata:
      BPS             : 69
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 834
      NUMBER_OF_BYTES : 29540
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:19(jpn): Subtitle: subrip
    Metadata:
      BPS             : 62
      DURATION        : 00:56:25.299000000
      NUMBER_OF_FRAMES: 792
      NUMBER_OF_BYTES : 26322
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:20(kor): Subtitle: subrip
    Metadata:
      BPS             : 92
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 884
      NUMBER_OF_BYTES : 39016
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:21(may): Subtitle: subrip
    Metadata:
      BPS             : 71
      DURATION        : 00:56:29.345000000
      NUMBER_OF_FRAMES: 834
      NUMBER_OF_BYTES : 30352
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:22(nob): Subtitle: subrip
    Metadata:
      BPS             : 70
      DURATION        : 00:56:21.670000000
      NUMBER_OF_FRAMES: 781
      NUMBER_OF_BYTES : 29643
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:23(dut): Subtitle: subrip
    Metadata:
      BPS             : 72
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 696
      NUMBER_OF_BYTES : 30788
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:24(pol): Subtitle: subrip
    Metadata:
      BPS             : 71
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 800
      NUMBER_OF_BYTES : 30260
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:25(por): Subtitle: subrip
    Metadata:
      title           : Brazilian
      BPS             : 71
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 840
      NUMBER_OF_BYTES : 30240
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:26(por): Subtitle: subrip
    Metadata:
      BPS             : 72
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 833
      NUMBER_OF_BYTES : 30848
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:27(rum): Subtitle: subrip
    Metadata:
      BPS             : 79
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 831
      NUMBER_OF_BYTES : 33777
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:28(rus): Subtitle: subrip
    Metadata:
      BPS             : 117
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 859
      NUMBER_OF_BYTES : 49873
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:29(swe): Subtitle: subrip
    Metadata:
      BPS             : 70
      DURATION        : 00:56:21.337000000
      NUMBER_OF_FRAMES: 652
      NUMBER_OF_BYTES : 29928
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:30(tha): Subtitle: subrip
    Metadata:
      BPS             : 212
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 878
      NUMBER_OF_BYTES : 89853
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:31(tur): Subtitle: subrip
    Metadata:
      BPS             : 72
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 855
      NUMBER_OF_BYTES : 30823
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:32(ukr): Subtitle: subrip
    Metadata:
      BPS             : 114
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 873
      NUMBER_OF_BYTES : 48554
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:33(vie): Subtitle: subrip
    Metadata:
      BPS             : 104
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 849
      NUMBER_OF_BYTES : 44050
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:34(chi): Subtitle: subrip
    Metadata:
      title           : Simplified
      BPS             : 76
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 879
      NUMBER_OF_BYTES : 32444
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:35(chi): Subtitle: subrip
    Metadata:
      title           : Traditional
      BPS             : 70
      DURATION        : 00:56:25.382000000
      NUMBER_OF_FRAMES: 845
      NUMBER_OF_BYTES : 29784
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (eac3 (native) -> ac3 (native))
Press [q] to stop, [?] for help
[libx264 @ 0x21f3440] using SAR=1/1
[libx264 @ 0x21f3440] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x21f3440] profile Main, level 5.1, 4:2:0, 8-bit
[libx264 @ 0x21f3440] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - 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=18 lookahead_threads=3 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=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=20136 vbv_bufsize=40272 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00
Output #0, matroska, to '/var/lib/jellyfin/transcodes/6e1be1c92fe5e14780d974d95f95de06.mkv':
  Metadata:
    encoder         : Lavf60.3.100
  Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 1k tbn (default) (original)
    Metadata:
      encoder         : Lavc60.3.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 20136000/0/0 buffer size: 40272000 vbv_delay: N/A
  Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 640 kb/s (default) (original)
    Metadata:
      encoder         : Lavc60.3.100 ac3
frame=    0 fps=0.0 q=0.0 size=       1kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=    3 fps=0.0 q=19.0 size=       1kB time=00:00:01.28 bitrate=   4.7kbits/s speed=1.75x    
frame=   37 fps= 30 q=19.0 size=       1kB time=00:00:02.78 bitrate=   2.1kbits/s speed=2.22x    
frame=   62 fps= 35 q=17.0 size=       1kB time=00:00:03.77 bitrate=   1.6kbits/s speed=2.15x    
frame=   83 fps= 37 q=20.0 size=       1kB time=00:00:04.76 bitrate=   1.3kbits/s speed=2.11x    
frame=  115 fps= 42 q=20.0 size=    5120kB time=00:00:05.95 bitrate=7046.9kbits/s speed=2.15x    
frame=  139 fps= 43 q=22.0 size=    5632kB time=00:00:07.04 bitrate=6553.6kbits/s speed=2.15x    
frame=  167 fps= 44 q=23.0 size=    6144kB time=00:00:08.28 bitrate=6072.8kbits/s speed= 2.2x    
frame=  208 fps= 49 q=17.0 size=    6144kB time=00:00:10.01 bitrate=5025.1kbits/s speed=2.34x    
frame=  248 fps= 52 q=17.0 size=   11008kB time=00:00:11.77 bitrate=7657.7kbits/s speed=2.47x    
frame=  289 fps= 55 q=18.0 size=   11008kB time=00:00:13.24 bitrate=6806.9kbits/s speed=2.51x    
frame=  330 fps= 57 q=18.0 size=   11008kB time=00:00:15.04 bitrate=5995.8kbits/s speed= 2.6x    
frame=  371 fps= 59 q=20.0 size=   11264kB time=00:00:16.80 bitrate=5492.5kbits/s speed=2.67x    
frame=  414 fps= 61 q=19.0 size=   11264kB time=00:00:18.56 bitrate=4971.7kbits/s speed=2.73x    
frame=  457 fps= 63 q=17.0 size=   11264kB time=00:00:20.28 bitrate=4548.2kbits/s speed=2.78x    
frame=  489 fps= 63 q=19.0 size=   12032kB time=00:00:21.79 bitrate=4523.0kbits/s speed=2.79x    
frame=  513 fps= 62 q=20.0 size=   12032kB time=00:00:22.59 bitrate=4362.9kbits/s speed=2.71x    
frame=  534 fps= 60 q=21.0 size=   12800kB time=00:00:23.52 bitrate=4458.2kbits/s speed=2.66x    
frame=  555 fps= 59 q=22.0 size=   12800kB time=00:00:24.38 bitrate=4300.3kbits/s speed=2.61x    
frame=  581 fps= 59 q=22.0 size=   15872kB time=00:00:25.53 bitrate=5091.8kbits/s speed= 2.6x    
frame=  602 fps= 58 q=21.0 size=   17152kB time=00:00:26.46 bitrate=5309.4kbits/s speed=2.55x    
frame=  623 fps= 57 q=20.0 size=   17152kB time=00:00:27.26 bitrate=5153.7kbits/s speed= 2.5x    
frame=  644 fps= 56 q=23.0 size=   19200kB time=00:00:28.06 bitrate=5604.6kbits/s speed=2.46x    
frame=  672 fps= 56 q=23.0 size=   19200kB time=00:00:29.28 bitrate=5371.8kbits/s speed=2.45x    
frame=  693 fps= 56 q=24.0 size=   21504kB time=00:00:30.08 bitrate=5856.4kbits/s speed=2.41x    
frame=  710 fps= 55 q=23.0 size=   23040kB time=00:00:31.00 bitrate=6086.9kbits/s speed=2.39x    
frame=  729 fps= 54 q=24.0 size=   24576kB time=00:00:31.77 bitrate=6335.8kbits/s speed=2.35x    
frame=  756 fps= 54 q=23.0 size=   28672kB time=00:00:32.86 bitrate=7147.1kbits/s speed=2.33x    
frame=  781 fps= 54 q=22.0 size=   28672kB time=00:00:33.79 bitrate=6950.8kbits/s speed=2.32x    
frame=  802 fps= 53 q=24.0 size=   28672kB time=00:00:34.72 bitrate=6765.0kbits/s speed= 2.3x    
frame=  825 fps= 53 q=22.0 size=   33792kB time=00:00:35.77 bitrate=7737.7kbits/s speed=2.29x    
frame=  848 fps= 53 q=22.0 size=   36608kB time=00:00:36.70 bitrate=8170.6kbits/s speed=2.28x    
frame=  871 fps= 52 q=22.0 size=   36608kB time=00:00:37.56 bitrate=7982.7kbits/s speed=2.26x    
frame=  894 fps= 52 q=24.0 size=   41728kB time=00:00:38.65 bitrate=8843.0kbits/s speed=2.26x    
frame=  915 fps= 52 q=23.0 size=   41728kB time=00:00:39.32 bitrate=8691.9kbits/s speed=2.23x    
frame=  939 fps= 52 q=24.0 size=   45824kB time=00:00:40.54 bitrate=9258.8kbits/s speed=2.24x    
frame=  961 fps= 52 q=24.0 size=   45824kB time=00:00:41.28 bitrate=9093.8kbits/s speed=2.21x    
frame=  983 fps= 51 q=23.0 size=   48896kB time=00:00:42.33 bitrate=9461.4kbits/s speed=2.21x    
frame= 1006 fps= 51 q=23.0 size=   48896kB time=00:00:43.16 bitrate=9279.0kbits/s speed=2.19x    
frame= 1029 fps= 51 q=23.0 size=   52736kB time=00:00:44.12 bitrate=9790.0kbits/s speed=2.18x    
frame= 1052 fps= 51 q=22.0 size=   52736kB time=00:00:45.12 bitrate=9574.8kbits/s speed=2.18x    
frame= 1076 fps= 51 q=24.0 size=   52736kB time=00:00:46.24 bitrate=9342.8kbits/s speed=2.17x    
frame= 1106 fps= 51 q=23.0 size=   57088kB time=00:00:47.29 bitrate=9888.0kbits/s speed=2.17x    
frame= 1131 fps= 51 q=21.0 size=   57088kB time=00:00:48.32 bitrate=9678.5kbits/s speed=2.16x    
frame= 1158 fps= 51 q=21.0 size=   57088kB time=00:00:49.56 bitrate=9434.8kbits/s speed=2.17x    
frame= 1177 fps= 50 q=23.0 size=   62208kB time=00:00:50.40 bitrate=10111.3kbits/s speed=2.16x    
frame= 1201 fps= 50 q=23.0 size=   64256kB time=00:00:51.23 bitrate=10274.5kbits/s speed=2.15x    
frame= 1222 fps= 50 q=22.0 size=   64256kB time=00:00:52.12 bitrate=10097.9kbits/s speed=2.14x    
frame= 1243 fps= 50 q=23.0 size=   68096kB time=00:00:53.08 bitrate=10507.9kbits/s speed=2.13x    
frame= 1267 fps= 50 q=22.0 size=   68096kB time=00:00:54.01 bitrate=10327.4kbits/s speed=2.12x    
frame= 1289 fps= 50 q=24.0 size=   68096kB time=00:00:54.97 bitrate=10147.0kbits/s speed=2.12x    
frame= 1313 fps= 50 q=23.0 size=   72960kB time=00:00:56.06 bitrate=10660.8kbits/s speed=2.12x    
frame= 1336 fps= 50 q=23.0 size=   75264kB time=00:00:57.08 bitrate=10800.2kbits/s speed=2.12x    
frame= 1360 fps= 49 q=23.0 size=   75264kB time=00:00:58.08 bitrate=10615.7kbits/s speed=2.11x    
frame= 1385 fps= 49 q=23.0 size=   75264kB time=00:00:58.97 bitrate=10454.5kbits/s speed= 2.1x    
frame= 1412 fps= 49 q=21.0 size=   80384kB time=00:01:00.06 bitrate=10963.4kbits/s speed= 2.1x    
frame= 1440 fps= 49 q=19.0 size=   80384kB time=00:01:01.31 bitrate=10740.2kbits/s speed=2.11x    
frame= 1464 fps= 49 q=21.0 size=   82432kB time=00:01:02.30 bitrate=10838.5kbits/s speed= 2.1x    
frame= 1486 fps= 49 q=23.0 size=   82432kB time=00:01:03.13 bitrate=10695.7kbits/s speed=2.09x    
frame= 1510 fps= 49 q=23.0 size=   82432kB time=00:01:04.32 bitrate=10498.8kbits/s speed= 2.1x    
frame= 1531 fps= 49 q=21.0 size=   87552kB time=00:01:05.05 bitrate=11024.7kbits/s speed=2.09x    
frame= 1558 fps= 49 q=24.0 size=   87552kB time=00:01:06.30 bitrate=10817.2kbits/s speed=2.09x    
frame= 1585 fps= 49 q=23.0 size=   90624kB time=00:01:07.32 bitrate=11026.5kbits/s speed=2.09x    
frame= 1608 fps= 49 q=22.0 size=   90624kB time=00:01:08.48 bitrate=10841.0kbits/s speed=2.09x    
frame= 1636 fps= 49 q=23.0 size=   95232kB time=00:01:09.56 bitrate=11214.1kbits/s speed=2.09x    

[q] command received. Exiting.

frame= 1680 fps= 50 q=-1.0 Lsize=   99962kB time=00:01:10.08 bitrate=11685.0kbits/s speed=2.08x    
video:94397kB audio:5535kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.029839%
[libx264 @ 0x21f3440] frame I:42    Avg QP:11.91  size:239350
[libx264 @ 0x21f3440] frame P:572   Avg QP:13.37  size: 94130
[libx264 @ 0x21f3440] frame B:1066  Avg QP:15.07  size: 30738
[libx264 @ 0x21f3440] consecutive B-frames: 11.5%  8.8%  8.2% 71.4%
[libx264 @ 0x21f3440] mb I  I16..4: 69.2%  0.0% 30.8%
[libx264 @ 0x21f3440] mb P  I16..4: 34.4%  0.0%  0.0%  P16..4: 22.1%  0.0%  0.0%  0.0%  0.0%    skip:43.5%
[libx264 @ 0x21f3440] mb B  I16..4:  5.2%  0.0%  0.0%  B16..8: 18.1%  0.0%  0.0%  direct:10.1%  skip:66.6%  L0:42.2% L1:50.8% BI: 7.0%
[libx264 @ 0x21f3440] coded y,uvDC,uvAC intra: 23.5% 44.3% 19.6% inter: 4.8% 14.0% 0.5%
[libx264 @ 0x21f3440] i16 v,h,dc,p: 52% 16% 13% 19%
[libx264 @ 0x21f3440] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 19% 18%  9%  7%  6%  5%  5%  4%
[libx264 @ 0x21f3440] i8c dc,h,v,p: 49% 16% 26%  8%
[libx264 @ 0x21f3440] Weighted P-Frames: Y:2.6% UV:0.3%
[libx264 @ 0x21f3440] kb/s:11036.00

Please attach any browser or client logs here

No response

Please attach any screenshots here

TV screen stays black.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@kevincox kevincox added the bug Something isn't working label May 14, 2024
@jellyfin-bot
Copy link
Contributor

Hi, it seems like your issue report has the following item(s) that need to be addressed:

  • You have not provided the ffmpeg log unaltered from the server. Please provide a valid ffmpeg log.

This is an automated message, currently under testing. Please file an issue here if you encounter any problems.

@kevincox
Copy link
Author

Full logs were too long for the template, attached here:

ffmpeg.txt
jellyfin.txt

@kevincox
Copy link
Author

Summarized timeline:

  • 18:59:03 GET /videos/81ce6feb-49f7-8d35-141d-47579d39c9a4/stream.mkv
  • 18:59:13 POST /Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d
  • 18:59:23 POST /Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d
  • 18:59:33 Transcoding kill timer stopped for JobId f5d1f95a5eda4125a5610b168848d9a2 PlaySessionId 4122ccf6510b40f79ceb27509411005d. Killing transcoding
  • 18:59:33 POST /Sessions/Playing/Ping?playSessionId=4122ccf6510b40f79ceb27509411005d

@kevincox
Copy link
Author

It seems that if the job type is not TranscodingJobType.Progressive the timeout is 10s. And the ping interval from the Chromecast also seems to be 10s.

var timerDuration = 10000;
if (job.Type != TranscodingJobType.Progressive)
{
timerDuration = 60000;
}

Is it timing out just before the ping? If the timeout is 10s is it timing out as the ping is in flight? If the ping interval is 10s the timeout should probably be at least 20s, I would go with 60-120s. If the timeout should stay 10s the ping interval should probably be brought down to 1 or 2s.

@kevincox
Copy link
Author

@kevincox kevincox linked a pull request May 14, 2024 that will close this issue
@kevincox
Copy link
Author

#11643 resolves the timeout issue which is the main problem mentioned.

However it still didn't start playing even when the transcoding completed. But I guess that is another bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

2 participants