This was a "corrupted"/blocky H264 stream:
And for good measure the AMF attempt:
Any ideas/recommendations where to start to try and fix this?
Code:
/videos/b55a5ff3-90ab-0d57-618f-4918f11d3f7a/hls1/main/0.ts
{"Protocol":0,"Id":"b55a5ff390ab0d57618f4918f11d3f7a","Path":"/video/Movies/Spy Caper.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":6868718592,"Name":"Spy Caper","IsRemote":false,"ETag":"fcf70906dab7532e9ec321a2205def95","RunTimeTicks":72222810112,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"hevc","CodecTag":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 HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":7608364,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":800,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"2.40:1","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":120,"IsAnamorphic":null},{"Codec":"opus","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":"Surround 5.1","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Surround 5.1 - Eng - OPUS - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"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":"PGSSUB","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":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Eng - Default - Forced - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":true,"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":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","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":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Eng - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":3,"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":7608364,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -canvas_size 1920x800 -i file:"/video/Movies/Spy Caper.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 h264_vaapi -rc_mode VBR -b:v 12680607 -maxrate 12680607 -bufsize 25361214 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -flags:v -global_header -filter_complex "[0:3]scale=s=1920x800:flags=fast_bilinear[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwdownload,format=nv12[main];[main][sub]overlay=eof_action=pass:shortest=1:repeatlast=0,hwupload_vaapi" -start_at_zero -codec:a:0 libfdk_aac -ac 6 -ab 640000 -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 "/config/transcodes/247f5d845ec3e8421f52e804d98117a0%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/247f5d845ec3e8421f52e804d98117a0.m3u8"
ffmpeg version 5.1.4-Jellyfin Copyright (c) 2000-2023 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-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --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-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
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
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
[matroska,webm @ 0x560b8873f240] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x560b8873f240] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'file:/video/Movies/Spy Caper.mkv':
Metadata:
title : Spy Caper
creation_time : 2023-11-16T02:08:17.000000Z
ENCODER : Lavf59.27.100
Duration: 02:00:22.28, start: -0.007000, bitrate: 7608 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 759.759000
Metadata:
title : Chapter 1
Chapter #0:1: start 759.759000, end 1176.008000
Metadata:
title : Chapter 2
Chapter #0:2: start 1176.008000, end 1739.238000
Metadata:
title : Chapter 3
Chapter #0:3: start 1739.238000, end 2568.566000
Metadata:
title : Chapter 4
Chapter #0:4: start 2568.566000, end 3001.499000
Metadata:
title : Chapter 5
Chapter #0:5: start 3001.499000, end 3600.055000
Metadata:
title : Chapter 6
Chapter #0:6: start 3600.055000, end 4149.479000
Metadata:
title : Chapter 7
Chapter #0:7: start 4149.479000, end 4786.782000
Metadata:
title : Chapter 8
Chapter #0:8: start 4786.782000, end 5413.867000
Metadata:
title : Chapter 9
Chapter #0:9: start 5413.867000, end 5940.810000
Metadata:
title : Chapter 10
Chapter #0:10: start 5940.810000, end 6694.730000
Metadata:
title : Chapter 11
Chapter #0:11: start 6694.730000, end 7222.215000
Metadata:
title : Chapter 12
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
DURATION : 02:00:22.264000000
Stream #0:1(eng): Audio: opus, 48000 Hz, 5.1, fltp (default)
Metadata:
title : Surround 5.1
DURATION : 02:00:22.281000000
Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle, 1920x800 (default) (forced)
Metadata:
DURATION : 02:00:19.970000000
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x800
Metadata:
DURATION : 02:00:19.970000000
Stream mapping:
Stream #0:0 (hevc) -> setparams:default (graph 0)
Stream #0:3 (pgssub) -> scale:default (graph 0)
hwupload_vaapi:default (graph 0) -> Stream #0:0 (h264_vaapi)
Stream #0:1 -> #0:1 (opus (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[matroska,webm @ 0x560b8873f240] sub2video: using 1920x800 canvas
[h264_vaapi @ 0x560b8883d980] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
Output #0, hls, to '/config/transcodes/247f5d845ec3e8421f52e804d98117a0.m3u8':
Metadata:
encoder : Lavf59.27.100
Stream #0:0: Video: h264 (High), vaapi(tv, bt709, progressive), 1920x800 [SAR 1:1 DAR 12:5], q=2-31, 12680 kb/s, 23.98 fps, 90k tbn
Metadata:
encoder : Lavc59.37.100 h264_vaapi
Stream #0:1: Audio: aac, 48000 Hz, 5.1, s16, 640 kb/s (default)
Metadata:
encoder : Lavc59.37.100 libfdk_aac
frame= 1 fps=0.0 q=0.0 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x
frame= 51 fps=0.0 q=-0.0 size=N/A time=00:00:02.06 bitrate=N/A speed=3.26x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a00.ts' for writing
frame= 96 fps= 84 q=-0.0 size=N/A time=00:00:03.92 bitrate=N/A speed=3.45x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a01.ts' for writing
frame= 148 fps= 89 q=-0.0 size=N/A time=00:00:06.12 bitrate=N/A speed=3.67x
frame= 196 fps= 90 q=-0.0 size=N/A time=00:00:08.10 bitrate=N/A speed=3.74x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a02.ts' for writing
frame= 243 fps= 91 q=-0.0 size=N/A time=00:00:10.06 bitrate=N/A speed=3.77x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a03.ts' for writing
frame= 293 fps= 92 q=-0.0 size=N/A time=00:00:12.16 bitrate=N/A speed=3.83x
frame= 347 fps= 94 q=-0.0 size=N/A time=00:00:14.40 bitrate=N/A speed=3.91x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a04.ts' for writing
frame= 386 fps= 92 q=-0.0 size=N/A time=00:00:16.04 bitrate=N/A speed=3.83x
frame= 430 fps= 92 q=-0.0 size=N/A time=00:00:17.87 bitrate=N/A speed=3.81x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a05.ts' for writing
frame= 478 fps= 92 q=-0.0 size=N/A time=00:00:19.88 bitrate=N/A speed=3.83x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a06.ts' for writing
frame= 522 fps= 92 q=-0.0 size=N/A time=00:00:21.71 bitrate=N/A speed=3.81x
frame= 571 fps= 92 q=-0.0 size=N/A time=00:00:23.74 bitrate=N/A speed=3.82x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a07.ts' for writing
frame= 614 fps= 91 q=-0.0 size=N/A time=00:00:25.57 bitrate=N/A speed=3.81x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a08.ts' for writing
frame= 664 fps= 92 q=-0.0 size=N/A time=00:00:27.62 bitrate=N/A speed=3.83x
frame= 717 fps= 93 q=-0.0 size=N/A time=00:00:29.84 bitrate=N/A speed=3.87x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a09.ts' for writing
frame= 766 fps= 93 q=-0.0 size=N/A time=00:00:31.89 bitrate=N/A speed=3.88x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a010.ts' for writing
frame= 810 fps= 93 q=-0.0 size=N/A time=00:00:33.70 bitrate=N/A speed=3.86x
frame= 863 fps= 93 q=-0.0 size=N/A time=00:00:35.92 bitrate=N/A speed=3.89x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a011.ts' for writing
frame= 917 fps= 94 q=-0.0 size=N/A time=00:00:38.16 bitrate=N/A speed=3.92x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a012.ts' for writing
frame= 959 fps= 94 q=-0.0 size=N/A time=00:00:39.97 bitrate=N/A speed=3.91x
frame= 1006 fps= 94 q=-0.0 size=N/A time=00:00:41.89 bitrate=N/A speed= 3.9x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a013.ts' for writing
frame= 1060 fps= 94 q=-0.0 size=N/A time=00:00:44.16 bitrate=N/A speed=3.93x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a014.ts' for writing
frame= 1108 fps= 94 q=-0.0 size=N/A time=00:00:46.14 bitrate=N/A speed=3.93x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a015.ts' for writing
frame= 1164 fps= 95 q=-0.0 size=N/A time=00:00:48.49 bitrate=N/A speed=3.96x
frame= 1208 fps= 95 q=-0.0 size=N/A time=00:00:50.32 bitrate=N/A speed=3.95x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a016.ts' for writing
frame= 1255 fps= 95 q=-0.0 size=N/A time=00:00:52.28 bitrate=N/A speed=3.95x
frame= 1298 fps= 94 q=-0.0 size=N/A time=00:00:54.08 bitrate=N/A speed=3.93x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a017.ts' for writing
frame= 1342 fps= 94 q=-0.0 size=N/A time=00:00:55.91 bitrate=N/A speed=3.92x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a018.ts' for writing
frame= 1392 fps= 94 q=-0.0 size=N/A time=00:00:58.00 bitrate=N/A speed=3.93x
frame= 1439 fps= 94 q=-0.0 size=N/A time=00:00:59.94 bitrate=N/A speed=3.93x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a019.ts' for writing
frame= 1478 fps= 94 q=-0.0 size=N/A time=00:01:01.58 bitrate=N/A speed=3.91x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a020.ts' for writing
frame= 1516 fps= 93 q=-0.0 size=N/A time=00:01:03.16 bitrate=N/A speed=3.88x
frame= 1563 fps= 93 q=-0.0 size=N/A time=00:01:05.13 bitrate=N/A speed=3.88x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a021.ts' for writing
frame= 1606 fps= 93 q=-0.0 size=N/A time=00:01:06.92 bitrate=N/A speed=3.87x
frame= 1652 fps= 93 q=-0.0 size=N/A time=00:01:08.84 bitrate=N/A speed=3.87x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a022.ts' for writing
frame= 1693 fps= 93 q=-0.0 size=N/A time=00:01:10.54 bitrate=N/A speed=3.86x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a023.ts' for writing
frame= 1734 fps= 92 q=-0.0 size=N/A time=00:01:12.27 bitrate=N/A speed=3.84x
frame= 1773 fps= 92 q=-0.0 size=N/A time=00:01:13.92 bitrate=N/A speed=3.83x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a024.ts' for writing
frame= 1816 fps= 92 q=-0.0 size=N/A time=00:01:15.69 bitrate=N/A speed=3.82x
frame= 1860 fps= 92 q=-0.0 size=N/A time=00:01:17.52 bitrate=N/A speed=3.82x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a025.ts' for writing
frame= 1899 fps= 91 q=-0.0 size=N/A time=00:01:19.14 bitrate=N/A speed= 3.8x
frame= 1941 fps= 91 q=-0.0 size=N/A time=00:01:20.91 bitrate=N/A speed=3.79x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a026.ts' for writing
frame= 1987 fps= 91 q=-0.0 size=N/A time=00:01:22.81 bitrate=N/A speed=3.79x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a027.ts' for writing
frame= 2025 fps= 91 q=-0.0 size=N/A time=00:01:24.41 bitrate=N/A speed=3.78x
frame= 2070 fps= 91 q=-0.0 size=N/A time=00:01:26.29 bitrate=N/A speed=3.78x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a028.ts' for writing
frame= 2113 fps= 91 q=-0.0 size=N/A time=00:01:28.06 bitrate=N/A speed=3.77x
frame= 2154 fps= 90 q=-0.0 size=N/A time=00:01:29.79 bitrate=N/A speed=3.77x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a029.ts' for writing
frame= 2192 fps= 90 q=-0.0 size=N/A time=00:01:31.34 bitrate=N/A speed=3.75x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a030.ts' for writing
frame= 2235 fps= 90 q=-0.0 size=N/A time=00:01:33.16 bitrate=N/A speed=3.75x
frame= 2281 fps= 90 q=-0.0 size=N/A time=00:01:35.08 bitrate=N/A speed=3.75x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a031.ts' for writing
frame= 2322 fps= 90 q=-0.0 size=N/A time=00:01:36.78 bitrate=N/A speed=3.74x
frame= 2366 fps= 90 q=-0.0 size=N/A time=00:01:38.60 bitrate=N/A speed=3.74x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a032.ts' for writing
frame= 2421 fps= 90 q=-0.0 size=N/A time=00:01:40.92 bitrate=N/A speed=3.76x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a033.ts' for writing
frame= 2473 fps= 90 q=-0.0 size=N/A time=00:01:43.08 bitrate=N/A speed=3.77x
frame= 2519 fps= 90 q=-0.0 size=N/A time=00:01:45.00 bitrate=N/A speed=3.77x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a034.ts' for writing
frame= 2565 fps= 90 q=-0.0 size=N/A time=00:01:46.94 bitrate=N/A speed=3.77x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a035.ts' for writing
frame= 2620 fps= 91 q=-0.0 size=N/A time=00:01:49.20 bitrate=N/A speed=3.78x
frame= 2659 fps= 91 q=-0.0 size=N/A time=00:01:50.84 bitrate=N/A speed=3.77x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a036.ts' for writing
frame= 2699 fps= 90 q=-0.0 size=N/A time=00:01:52.51 bitrate=N/A speed=3.77x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a037.ts' for writing
frame= 2742 fps= 90 q=-0.0 size=N/A time=00:01:54.30 bitrate=N/A speed=3.76x
frame= 2791 fps= 90 q=-0.0 size=N/A time=00:01:56.33 bitrate=N/A speed=3.77x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a038.ts' for writing
frame= 2835 fps= 90 q=-0.0 size=N/A time=00:01:58.18 bitrate=N/A speed=3.76x
frame= 2877 fps= 90 q=-0.0 size=N/A time=00:01:59.93 bitrate=N/A speed=3.76x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a039.ts' for writing
frame= 2923 fps= 90 q=-0.0 size=N/A time=00:02:01.85 bitrate=N/A speed=3.76x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a040.ts' for writing
frame= 2968 fps= 90 q=-0.0 size=N/A time=00:02:03.75 bitrate=N/A speed=3.76x
frame= 3007 fps= 90 q=-0.0 size=N/A time=00:02:05.37 bitrate=N/A speed=3.75x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a041.ts' for writing
frame= 3053 fps= 90 q=-0.0 size=N/A time=00:02:07.29 bitrate=N/A speed=3.75x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a042.ts' for writing
frame= 3097 fps= 90 q=-0.0 size=N/A time=00:02:09.10 bitrate=N/A speed=3.75x
frame= 3139 fps= 90 q=-0.0 size=N/A time=00:02:10.88 bitrate=N/A speed=3.75x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a043.ts' for writing
frame= 3181 fps= 90 q=-0.0 size=N/A time=00:02:12.60 bitrate=N/A speed=3.74x
frame= 3224 fps= 90 q=-0.0 size=N/A time=00:02:14.40 bitrate=N/A speed=3.74x
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a044.ts' for writing
frame= 3263 fps= 90 q=-0.0 size=N/A time=00:02:16.02 bitrate=N/A speed=3.73x
frame= 3300 fps= 89 q=-0.0 size=N/A time=00:02:17.60 bitrate=N/A speed=3.72x
[q] command received. Exiting.
[hls @ 0x560b88731e00] Opening '/config/transcodes/247f5d845ec3e8421f52e804d98117a045.ts' for writing
frame= 3306 fps= 89 q=-0.0 Lsize=N/A time=00:02:17.87 bitrate=N/A speed=3.72x
video:204849kB audio:10814kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
And for good measure the AMF attempt:
Code:
/videos/d57fa33f-ed20-77f8-aeaa-2ea4bd048ed9/hls1/main/0.ts
{"Protocol":0,"Id":"d57fa33fed2077f8aeaa2ea4bd048ed9","Path":"/video/Movies/End of the World.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":8151726592,"Name":"End of the World","IsRemote":false,"ETag":"4c82442b11669dae8d3a8410a025fab6","RunTimeTicks":90502209536,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"hevc","CodecTag":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 HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":7205769,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":800,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"2.40:1","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":120,"IsAnamorphic":null},{"Codec":"opus","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":"Surround 5.1","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Surround 5.1 - Eng - OPUS - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"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":"PGSSUB","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":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Eng - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"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":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","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":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Eng - PGSSUB","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":3,"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":7205769,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -canvas_size 1920x800 -i file:"/video/Movies/End of the World.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 h264_amf -quality speed -rc cbr -qmin 0 -qmax 32 -b:v 12009615 -maxrate 12009615 -bufsize 24019230 -g:v:0 72 -keyint_min:v:0 72 -filter_complex "[0:2]scale=s=1920x800:flags=fast_bilinear[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(1920\,800*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(1920/a\,800))/2)*2,format=yuv420p[main];[main][sub]overlay=eof_action=endall:shortest=1:repeatlast=0" -start_at_zero -codec:a:0 libfdk_aac -ac 6 -ab 640000 -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 "/config/transcodes/596587d69d3344842f2bfcff507b8921%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/596587d69d3344842f2bfcff507b8921.m3u8"
ffmpeg version 5.1.4-Jellyfin Copyright (c) 2000-2023 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-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --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-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
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
[matroska,webm @ 0x55e1962af9c0] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x55e1962af9c0] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'file:/video/Movies/End of the World.mkv':
Metadata:
title : End of the World
creation_time : 2023-11-30T03:13:49.000000Z
ENCODER : Lavf59.27.100
Duration: 02:30:50.22, start: -0.007000, bitrate: 7205 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 381.256000
Metadata:
title : Chapter 1
Chapter #0:1: start 381.256000, end 716.299000
Metadata:
title : Chapter 2
Chapter #0:2: start 716.299000, end 1394.602000
Metadata:
title : Chapter 3
Chapter #0:3: start 1394.602000, end 1727.059000
Metadata:
title : Chapter 4
Chapter #0:4: start 1727.059000, end 2130.587000
Metadata:
title : Chapter 5
Chapter #0:5: start 2130.587000, end 2397.645000
Metadata:
title : Chapter 6
Chapter #0:6: start 2397.645000, end 2755.920000
Metadata:
title : Chapter 7
Chapter #0:7: start 2755.920000, end 2920.835000
Metadata:
title : Chapter 8
Chapter #0:8: start 2920.835000, end 3079.535000
Metadata:
title : Chapter 9
Chapter #0:9: start 3079.535000, end 3387.009000
Metadata:
title : Chapter 10
Chapter #0:10: start 3387.009000, end 3550.839000
Metadata:
title : Chapter 11
Chapter #0:11: start 3550.839000, end 4035.323000
Metadata:
title : Chapter 12
Chapter #0:12: start 4035.323000, end 4276.773000
Metadata:
title : Chapter 13
Chapter #0:13: start 4276.773000, end 4862.941000
Metadata:
title : Chapter 14
Chapter #0:14: start 4862.941000, end 5050.629000
Metadata:
title : Chapter 15
Chapter #0:15: start 5050.629000, end 5562.807000
Metadata:
title : Chapter 16
Chapter #0:16: start 5562.807000, end 6075.319000
Metadata:
title : Chapter 17
Chapter #0:17: start 6075.319000, end 6716.168000
Metadata:
title : Chapter 18
Chapter #0:18: start 6716.168000, end 6956.158000
Metadata:
title : Chapter 19
Chapter #0:19: start 6956.158000, end 7167.661000
Metadata:
title : Chapter 20
Chapter #0:20: start 7167.661000, end 7237.272000
Metadata:
title : Chapter 21
Chapter #0:21: start 7237.272000, end 7521.431000
Metadata:
title : Chapter 22
Chapter #0:22: start 7521.431000, end 7694.562000
Metadata:
title : Chapter 23
Chapter #0:23: start 7694.562000, end 7970.838000
Metadata:
title : Chapter 24
Chapter #0:24: start 7970.838000, end 8100.467000
Metadata:
title : Chapter 25
Chapter #0:25: start 8100.467000, end 8636.169000
Metadata:
title : Chapter 26
Chapter #0:26: start 8636.169000, end 9050.166000
Metadata:
title : Chapter 27
Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
DURATION : 02:30:50.215000000
Stream #0:1(eng): Audio: opus, 48000 Hz, 5.1, fltp (default)
Metadata:
title : Surround 5.1
DURATION : 02:30:50.221000000
Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle, 1920x800
Metadata:
DURATION : 02:30:24.814000000
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x800
Metadata:
DURATION : 02:30:25.065000000
Stream mapping:
Stream #0:0 (hevc) -> setparams:default (graph 0)
Stream #0:2 (pgssub) -> scale:default (graph 0)
overlay:default (graph 0) -> Stream #0:0 (h264_amf)
Stream #0:1 -> #0:1 (opus (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[matroska,webm @ 0x55e1962af9c0] sub2video: using 1920x800 canvas
[h264_amf @ 0x55e196358d00] DLL libamfrt64.so.1 failed to open
double free or corruption (fasttop)
Any ideas/recommendations where to start to try and fix this?