Jellyfin Forum
SOLVED: Intel Transcoding Crashes - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: Intel Transcoding Crashes (/t-solved-intel-transcoding-crashes)

Pages: 1 2 3 4


RE: Intel Transcoding Crashes - valthonis_surion - 2024-01-30

More installed options with the previous command now. But the LiveTV portion with transcoding hangs like it has been.

intel-gpu-tools/mantic,now 1.27.1-1 amd64 [installed]
intel-media-va-driver-non-free/mantic,now 23.2.3+ds1-1 amd64 [installed]
intel-microcode/mantic-updates,mantic-security,now 3.20231114.0ubuntu0.23.10.1 amd64 [installed,automatic]
intel-opencl-icd/mantic,now 22.43.24595.41-1 amd64 [installed]
libdrm-intel1/mantic,now 2.4.115-1 amd64 [installed,automatic]

The FFMPEG transcode log doesn't show anything odd, but the core log shows this with the last lock up.

[2024-01-30 19:51:55.481 +00:00] [INF] "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 3000000 -fflags +igndts -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -autorotate 0 -i \"http://192.168.1.60:8096/LiveTv/LiveStreamFiles/f419d847c05c4e0887515f3bf74f7e60/stream.ts\" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 h264_qsv -low_power 1 -preset 7 -look_ahead 0 -b:v 5616000 -maxrate 5616000 -bufsize 11232000 -g:v:0 180 -keyint_min:v:0 180 -vf \"setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,1920)/2)*2:trunc(ow/a/2)*2,format=yuv420p\" -flags -global_header -codec:a:0 libfdk_aac -ac 2 -ab 384000 -af \"volume=2\" -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_base_url \"hls/2ed0fc6de15ef48586b5d33eff5ea6a4/\" -hls_segment_filename \"/mnt/transcode/2ed0fc6de15ef48586b5d33eff5ea6a4%d.ts\" -hls_playlist_type event -hls_list_size 0 -y \"/mnt/transcode/2ed0fc6de15ef48586b5d33eff5ea6a4.m3u8\""
[2024-01-30 19:51:59.703 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.60:8096/videos/23f50ea8-47eb-4700-cd53-009b224ac0ce/live.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzEyMS4wLjAuMCBTYWZhcmkvNTM3LjM2fDE3MDY1NDQ5MjAxMzc1&MediaSourceId=native_38e2ec422972cf18ae399822dbeeeca8_645ce5e20f5e592d00dbe9b24efc0d8d&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=-1&VideoBitrate=5616000&AudioBitrate=384000&MaxFramerate=59.94006&PlaySessionId=bfa4850c3b184c598d81c34cc8a861f9&api_key=adb3654b95974168a630380a48310f82&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_native_38e2ec422972cf18ae399822dbeeeca8_645ce5e20f5e592d00dbe9b24efc0d8d&TranscodingMaxAudioChannels=2&RequireAvc=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&mpeg2video-level=4&mpeg2video-videobitdepth=8&mpeg2video-profile=main&TranscodeReasons=ContainerBitrateExceedsLimit" to "192.168.1.245" in 0:00:04.2269458 with Status Code 200
[2024-01-30 19:52:29.101 +00:00] [ERR] FFmpeg exited with code 139
[2024-01-30 19:52:33.899 +00:00] [INF] Deleting partial stream file(s) "/mnt/transcode/2ed0fc6de15ef48586b5d33eff5ea6a4.m3u8"
[2024-01-30 19:52:35.406 +00:00] [INF] Playback stopped reported by app "Jellyfin Web" "10.8.13" playing "WLUKFOX". Stopped at "31082" ms
[2024-01-30 19:52:35.445 +00:00] [INF] Live stream "native_38e2ec422972cf18ae399822dbeeeca8_645ce5e20f5e592d00dbe9b24efc0d8d" consumer count is now 0
[2024-01-30 19:52:35.445 +00:00] [INF] Closing live stream "a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_native_38e2ec422972cf18ae399822dbeeeca8_645ce5e20f5e592d00dbe9b24efc0d8d"
[2024-01-30 19:52:35.445 +00:00] [INF] Closing "SharedHttpStream"
[2024-01-30 19:52:35.445 +00:00] [INF] Live stream "a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_native_38e2ec422972cf18ae399822dbeeeca8_645ce5e20f5e592d00dbe9b24efc0d8d" closed successfully
[2024-01-30 19:52:35.446 +00:00] [INF] Copying of "SharedHttpStream" to "/mnt/transcode/f419d847c05c4e0887515f3bf74f7e60.ts" was canceled
[2024-01-30 19:52:35.447 +00:00] [INF] Deleting temp file "/mnt/transcode/f419d847c05c4e0887515f3bf74f7e60.ts"


RE: Intel Transcoding Crashes - valthonis_surion - 2024-01-30

For clarification, .245 is the machine I am trying to view the video and .60 is obviously the Jellyfin box.
The bitrate is specifically limited, thus the "containerbitrateexceedslimit" reason for transcoding.


RE: Intel Transcoding Crashes - TheDreadPirate - 2024-01-30

Try upgrading jellyfin-ffmpeg from 5.1.4 to 6

I think its as simple as the command below. It's been a while since I made the switch to 6. I don't recall there being any difficulty doing this upgrade.

Code:
sudo apt install jellyfin-ffmpeg6
sudo systemctl restart jellyfin



RE: Intel Transcoding Crashes - valthonis_surion - 2024-01-30

Ran the two commands, same behavior. Still the same error in the logs.

[2024-01-30 20:31:52.072 +00:00] [INF] "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 3000000 -fflags +igndts -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -autorotate 0 -i \"http://192.168.1.60:8096/LiveTv/LiveStreamFiles/be3c66661835401b9628c34a4a09e73f/stream.ts\" -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 h264_qsv -low_power 1 -preset 7 -look_ahead 0 -b:v 5616000 -maxrate 5616000 -bufsize 11232000 -g:v:0 90 -keyint_min:v:0 90 -vf \"setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,yadif=0Thumbs-down0,scale=trunc(min(max(iw\,ih*a)\,1920)/2)*2:trunc(ow/a/2)*2,format=yuv420p\" -flags -global_header -codec:a:0 libfdk_aac -ac 2 -ab 384000 -af \"volume=2\" -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_base_url \"hls/cc18e0c00b8a80906ba1d34508aa8063/\" -hls_segment_filename \"/mnt/transcode/cc18e0c00b8a80906ba1d34508aa8063%d.ts\" -hls_playlist_type event -hls_list_size 0 -y \"/mnt/transcode/cc18e0c00b8a80906ba1d34508aa8063.m3u8\""
[2024-01-30 20:31:56.297 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.60:8096/videos/c5eec3a0-f756-dc26-6f8c-cb4155d5177a/live.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzEyMS4wLjAuMCBTYWZhcmkvNTM3LjM2fDE3MDY1NDQ5MjAxMzc1&MediaSourceId=native_ff80f93c46e0a0b178f0c4d61a5abab3_645ce5e20f5e592d00dbe9b24efc0d8d&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=-1&VideoBitrate=5616000&AudioBitrate=384000&MaxFramerate=29.97003&PlaySessionId=a464a809b48f46469ac9fd007193ce1d&api_key=adb3654b95974168a630380a48310f82&LiveStreamId=a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_native_ff80f93c46e0a0b178f0c4d61a5abab3_645ce5e20f5e592d00dbe9b24efc0d8d&TranscodingMaxAudioChannels=2&RequireAvc=false&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&mpeg2video-level=4&mpeg2video-videobitdepth=8&mpeg2video-profile=main&TranscodeReasons=ContainerBitrateExceedsLimit&allowVideoStreamCopy=false" to "192.168.1.245" in 0:00:04.2301209 with Status Code 200
[2024-01-30 20:32:01.332 +00:00] [ERR] FFmpeg exited with code 139
[2024-01-30 20:32:05.946 +00:00] [INF] Deleting partial stream file(s) "/mnt/transcode/cc18e0c00b8a80906ba1d34508aa8063.m3u8"
[2024-01-30 20:32:07.452 +00:00] [INF] Playback stopped reported by app "Jellyfin Web" "10.8.13" playing "WFRV-HD". Stopped at "6829" ms
[2024-01-30 20:32:07.485 +00:00] [INF] Live stream "native_ff80f93c46e0a0b178f0c4d61a5abab3_645ce5e20f5e592d00dbe9b24efc0d8d" consumer count is now 0
[2024-01-30 20:32:07.485 +00:00] [INF] Closing live stream "a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_native_ff80f93c46e0a0b178f0c4d61a5abab3_645ce5e20f5e592d00dbe9b24efc0d8d"
[2024-01-30 20:32:07.485 +00:00] [INF] Closing "SharedHttpStream"
[2024-01-30 20:32:07.485 +00:00] [INF] Live stream "a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_native_ff80f93c46e0a0b178f0c4d61a5abab3_645ce5e20f5e592d00dbe9b24efc0d8d" closed successfully
[2024-01-30 20:32:07.486 +00:00] [INF] Copying of "SharedHttpStream" to "/mnt/transcode/be3c66661835401b9628c34a4a09e73f.ts" was canceled
[2024-01-30 20:32:07.486 +00:00] [INF] Deleting temp file "/mnt/transcode/be3c66661835401b9628c34a4a09e73f.ts"
[2024-01-30 20:32:07.497 +00:00] [WRN] Slow HTTP Response from "http://192.168.1.60:8096/Sessions/Playing/Stopped" to "192.168.1.245" in 0:00:01.5539285 with Status Code 204


RE: Intel Transcoding Crashes - TheDreadPirate - 2024-01-30

How many liveTV channels do you have? Is this a HDHomeRun or some IPTV service?


RE: Intel Transcoding Crashes - tmsrxzar - 2024-01-30

"[ERR] FFmpeg exited with code 139"

if ffmpeg exited does the ffmpeg log show why


RE: Intel Transcoding Crashes - TheDreadPirate - 2024-01-30

(2024-01-30, 08:44 PM)tmsrxzar Wrote: "[ERR] FFmpeg exited with code 139"

if ffmpeg exited does the ffmpeg log show why

Pretty sure that is the message in their first post.

Code:
[h264_qsv @ 000001cb4bb2cf40] Error during encoding: device failed (-17)
Error submitting video frame to the encoder

I haven't been able to find anything online regarding this message other than problems with the source.  I double checked that RaptorLake supports mpeg2 decoding (that is the video stream video codec).


RE: Intel Transcoding Crashes - tmsrxzar - 2024-01-30

(2024-01-30, 08:49 PM)TheDreadPirate Wrote: Pretty sure that is the message in their first post.

Code:
[h264_qsv @ 000001cb4bb2cf40] Error during encoding: device failed (-17)
Error submitting video frame to the encoder

indeed, in the first post *when the system was still running windows 11

are we still getting the same error now that the system has been wiped and had linux installed was more my question

if yes, the system is just possessed or the TV streams provider (be it a hdhomerun device or iptv) is just broken


RE: Intel Transcoding Crashes - valthonis_surion - 2024-01-30

(2024-01-30, 08:44 PM)tmsrxzar Wrote: "[ERR] FFmpeg exited with code 139"

if ffmpeg exited does the ffmpeg log show why

Nothing immediately stood out to me, but here is the FFMPEG log.


ffmpeg version 6.0.1-Jellyfin Copyright © 2000-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-4ubuntu3)
  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
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[mpeg2video @ 0x5584d3049600] Invalid frame dimensions 0x0.
    Last message repeated 14 times
Input #0, mpegts, from 'http://192.168.1.60:8096/LiveTv/LiveStreamFiles/be3c66661835401b9628c34a4a09e73f/stream.ts':
  Duration: N/A, start: 26504.052978, bitrate: N/A
  Program 3
  Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn
    Side data:
      cpb: bitrate max/min/avg: 15151200/0/0 buffer size: 7995392 vbv_delay: N/A
  Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
  Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s (visual impaired)
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (h264_qsv))
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
Output #0, hls, to '/mnt/transcode/cc18e0c00b8a80906ba1d34508aa8063.m3u8':
  Metadata:
    encoder        : Lavf60.3.100
  Stream #0:0: Video: h264, nv12(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 5616 kb/s, 29.97 fps, 90k tbn
    Metadata:
      encoder        : Lavc60.3.100 h264_qsv
    Side data:
      cpb: bitrate max/min/avg: 5616000/0/5616000 buffer size: 11232000 vbv_delay: N/A
  Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 384 kb/s
    Metadata:
      encoder        : Lavc60.3.100 libfdk_aac
frame=    0 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed=  0x   
frame=  91 fps=0.0 q=32.0 size=N/A time=00:00:03.09 bitrate=N/A speed= 5.4x   
[hls @ 0x5584d3050040] Opening '/mnt/transcode/cc18e0c00b8a80906ba1d34508aa80630.ts' for writing
[hls @ 0x5584d3050040] Opening '/mnt/transcode/cc18e0c00b8a80906ba1d34508aa8063.m3u8.tmp' for writing
frame=  107 fps= 97 q=35.0 size=N/A time=00:00:03.66 bitrate=N/A speed=3.34x   
frame=  123 fps= 76 q=34.0 size=N/A time=00:00:04.16 bitrate=N/A speed=2.57x   
frame=  139 fps= 65 q=35.0 size=N/A time=00:00:04.67 bitrate=N/A speed=2.18x   
frame=  152 fps= 57 q=36.0 size=N/A time=00:00:05.18 bitrate=N/A speed=1.95x   
frame=  170 fps= 52 q=34.0 size=N/A time=00:00:05.78 bitrate=N/A speed=1.76x   
frame=  187 fps= 49 q=32.0 size=N/A time=00:00:06.40 bitrate=N/A speed=1.68x   
[hls @ 0x5584d3050040] Opening '/mnt/transcode/cc18e0c00b8a80906ba1d34508aa80631.ts' for writing
[hls @ 0x5584d3050040] Opening '/mnt/transcode/cc18e0c00b8a80906ba1d34508aa8063.m3u8.tmp' for writing
frame=  201 fps= 46 q=33.0 size=N/A time=00:00:06.86 bitrate=N/A speed=1.57x   
frame=  218 fps= 45 q=33.0 size=N/A time=00:00:07.38 bitrate=N/A speed=1.51x   
frame=  232 fps= 43 q=33.0 size=N/A time=00:00:08.00 bitrate=N/A speed=1.48x   



RE: Intel Transcoding Crashes - TheDreadPirate - 2024-01-30

In Dashboard > Playback, is MPEG2 checked? The log indicates it is CPU decoding (mpeg2video (native)). It SHOULDN'T matter, but I wonder what happens when you switch it to hardware decoding. Intel's docs indicate that RaptorLake still supports decoding MPEG2.