VAAPI HAC crashes when encoding is enabled #3319

Closed
opened 2026-02-06 23:08:04 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @agilob on GitHub (Oct 16, 2021).

Describe the bug
When I enable VAAPI Hardware encoding and stream to chromecast ffmpeg crashes. When saving settings I get:

[15:11:01] [INF] Found ffmpeg version 4.3.2
[15:11:01] [INF] Available decoders: ["h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8_cuvid", "vp8_qsv", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "flac", "mp3"]
[15:11:01] [INF] Available encoders: ["libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "ac3", "flac", "libmp3lame", "libopus", "libvorbis", "srt"]
[15:11:01] [INF] Available hwaccel types: ["vdpau", "cuda", "vaapi", "qsv", "drm", "opencl"]

Then when I attempt to stream:

[15:10:47] [INF] /usr/lib/jellyfin-ffmpeg/ffmpeg -vaapi_device /dev/dri/renderD128 -i file:"/media/.mkv" -map 0:0 -map 0:1 -codec:v:0 h264_vaapi -force_key_frames "expr:gte(t,n_forced*5)" -filter_complex "[0:3]scale=1920x1080[sub];[0:0]format=nv12|vaapi,hwupload,scale_vaapi=format=nv12,hwdownload[base];[base][sub]overlay,format=nv12,hwupload" -copyts -avoid_negative_ts disabled -start_at_zero -b:v 5159126 -maxrate 5159126 -bufsize 10318252 -profile:v:0 high -level 41 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -ac 2 -ab 384000 -y "/tmp/transcodes/transcodes/transcodes/8b08e977df46e2cec69ddd5c66c8e10d.mkv"

[15:10:47] [ERR] FFmpeg exited with code 1

System (please complete the following information):

  • OS: Arch
  • Virtualization: Kubernetes
  • Clients: Android -> Chromecast
  • Jellyfin Version: 10.7.7
  • FFmpeg Version: 4.3.2 (from official jellyfin images)
  • Playback: chromecast
  • Hardware Acceleration: VAAPI
  • Reverse Proxy: traefik

FFmpeg Logs
Cannot find them

Originally created by @agilob on GitHub (Oct 16, 2021). **Describe the bug** When I enable VAAPI `Hardware encoding` and stream to chromecast ffmpeg crashes. When saving settings I get: [15:11:01] [INF] Found ffmpeg version 4.3.2 [15:11:01] [INF] Available decoders: ["h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8_cuvid", "vp8_qsv", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "flac", "mp3"] [15:11:01] [INF] Available encoders: ["libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "ac3", "flac", "libmp3lame", "libopus", "libvorbis", "srt"] [15:11:01] [INF] Available hwaccel types: ["vdpau", "cuda", "vaapi", "qsv", "drm", "opencl"] Then when I attempt to stream: [15:10:47] [INF] /usr/lib/jellyfin-ffmpeg/ffmpeg -vaapi_device /dev/dri/renderD128 -i file:"/media/.mkv" -map 0:0 -map 0:1 -codec:v:0 h264_vaapi -force_key_frames "expr:gte(t,n_forced*5)" -filter_complex "[0:3]scale=1920x1080[sub];[0:0]format=nv12|vaapi,hwupload,scale_vaapi=format=nv12,hwdownload[base];[base][sub]overlay,format=nv12,hwupload" -copyts -avoid_negative_ts disabled -start_at_zero -b:v 5159126 -maxrate 5159126 -bufsize 10318252 -profile:v:0 high -level 41 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -ac 2 -ab 384000 -y "/tmp/transcodes/transcodes/transcodes/8b08e977df46e2cec69ddd5c66c8e10d.mkv" [15:10:47] [ERR] FFmpeg exited with code 1 **System (please complete the following information):** - OS: Arch - Virtualization: Kubernetes - Clients: Android -> Chromecast - Jellyfin Version: 10.7.7 - FFmpeg Version: 4.3.2 (from official jellyfin images) - Playback: chromecast - Hardware Acceleration: VAAPI - Reverse Proxy: traefik **FFmpeg Logs** Cannot find them
OVERLORD added the bugstale labels 2026-02-06 23:08:04 +03:00
Author
Owner

@crobibero commented on GitHub (Oct 16, 2021):

The ffmpeg logs can either be accessed from the admin view, or in the log directory. Without them there is nothing we can do or suggest.

@crobibero commented on GitHub (Oct 16, 2021): The ffmpeg logs can either be accessed from the admin view, or in the log directory. Without them there is nothing we can do or suggest.
Author
Owner

@agilob commented on GitHub (Oct 16, 2021):

/videos/faf6f132-9774-1832-c776-df9e6f14699e/stream.mkv

{"Protocol":0,"Id":"faf6f13297741832c776df9e6f14699e","Path":"/media/.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":1614274432,"Name":"...s","IsRemote":false,"ETag":"e63032f4669c14acf975436143ce03e0","RunTimeTicks":28959979520,"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":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1001/24000","Title":null,"VideoRange":"SDR","localizedUndefined":null,"localizedDefault":null,"localizedForced":null,"DisplayTitle":"1080p HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":4459324,"BitDepth":null,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"16:9","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":"aac","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":null,"VideoRange":null,"localizedUndefined":null,"localizedDefault":null,"localizedForced":null,"DisplayTitle":"Eng - AAC - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":454585,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"aac","CodecTag":null,"Language":"ger","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":null,"VideoRange":null,"localizedUndefined":null,"localizedDefault":null,"localizedForced":null,"DisplayTitle":"Ger - AAC - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":191999,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"HE-AAC","Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Eng","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},{"Codec":"PGSSUB","CodecTag":null,"Language":"fre","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Fre","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":4,"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":"ger","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Ger","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":5,"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":"spa","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Spa","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":6,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"srt","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":null,"CodecTimeBase":null,"Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Eng","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":7,"Score":null,"IsExternal":true,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/media/.en.srt","PixelFormat":null,"Level":null,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":5105908,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -ss 00:18:00.521 -vaapi_device /dev/dri/renderD128 -i file:"/media/.mkv" -map 0:0 -map 0:1 -codec:v:0 h264_vaapi -force_key_frames "expr:gte(t,n_forced*5)" -filter_complex "[0:3]scale=1920x1080[sub];[0:0]format=nv12|vaapi,hwupload,scale_vaapi=format=nv12,hwdownload[base];[base][sub]overlay,format=nv12,hwupload" -copyts -avoid_negative_ts disabled -start_at_zero -b:v 4585266 -maxrate 4585266 -bufsize 9170532 -profile:v:0 high -level 41 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -ac 2 -ab 384000 -y "/tmp/transcodes/transcodes/transcodes/280e209c1b91abca2b8b7200f3bba577.mkv"


ffmpeg version 4.3.2-Jellyfin Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-gpl --enable-version3 --enable-static --enable-libfontconfig --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-ffnvcodec
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[matroska,webm @ 0x55ada6469400] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55ada6469400] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55ada6469400] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'file:/media/.mkv':
  Metadata:
    title           : ..., Disc 3
    encoder         : libebml v1.3.6 + libmatroska v1.4.9
    creation_time   : 2018-09-22T22:41:07.000000Z
  Duration: 00:48:16.00, start: 0.000000, bitrate: 4459 kb/s
    Chapter #0:0: start 0.000000, end 233.608375
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 233.608375, end 426.050625
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 426.050625, end 552.218333
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 552.218333, end 822.988833
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 822.988833, end 1114.571792
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1114.571792, end 1259.925333
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1259.925333, end 1584.207625
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1584.207625, end 1779.235792
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1779.235792, end 2049.672625
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2049.672625, end 2122.995875
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 2122.995875, end 2777.065958
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 2777.065958, end 2895.934708
    Metadata:
      title           : Chapter 12
    Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS-eng         : 3754343
      DURATION-eng    : 00:48:15.935000000
      NUMBER_OF_FRAMES-eng: 69433
      NUMBER_OF_BYTES-eng: 1359041694
      _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp
    Metadata:
      BPS-eng         : 454585
      DURATION-eng    : 00:48:15.936000000
      NUMBER_OF_FRAMES-eng: 135747
      NUMBER_OF_BYTES-eng: 164556201
      _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(ger): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp
    Metadata:
      BPS-eng         : 191999
      DURATION-eng    : 00:48:15.958000000
      NUMBER_OF_FRAMES-eng: 67874
      NUMBER_OF_BYTES-eng: 69502739
      _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      BPS-eng         : 33620
      DURATION-eng    : 00:47:24.675000000
      NUMBER_OF_FRAMES-eng: 1194
      NUMBER_OF_BYTES-eng: 11955039
      _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:4(fre): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 30189
      DURATION-eng    : 00:47:58.876000000
      NUMBER_OF_FRAMES-eng: 1066
      NUMBER_OF_BYTES-eng: 10863898
      _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:5(ger): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 34090
      DURATION-eng    : 00:47:58.876000000
      NUMBER_OF_FRAMES-eng: 1074
      NUMBER_OF_BYTES-eng: 12267643
      _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:6(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 31317
      DURATION-eng    : 00:47:58.876000000
      NUMBER_OF_FRAMES-eng: 1076
      NUMBER_OF_BYTES-eng: 11269815
      _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 (hevc) -> format (graph 0)
  Stream #0:3 (pgssub) -> scale (graph 0)
  hwupload (graph 0) -> Stream #0:0 (h264_vaapi)
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[matroska,webm @ 0x55ada6469400] sub2video: using 1920x1080 canvas
[h264_vaapi @ 0x55ada652b9c0] Driver does not support some wanted packed headers (wanted 0xd, found 0).
[h264_vaapi @ 0x55ada652b9c0] Driver does not support packed sequence headers, but a global header is requested.
[h264_vaapi @ 0x55ada652b9c0] No global header will be written: this may result in a stream which is not usable for some purposes (e.g. not muxable to some containers).
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
Error initializing output stream 0:0 -- 
[aac @ 0x55ada652c680] Qavg: -nan
Conversion failed!
@agilob commented on GitHub (Oct 16, 2021): ``` /videos/faf6f132-9774-1832-c776-df9e6f14699e/stream.mkv {"Protocol":0,"Id":"faf6f13297741832c776df9e6f14699e","Path":"/media/.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":1614274432,"Name":"...s","IsRemote":false,"ETag":"e63032f4669c14acf975436143ce03e0","RunTimeTicks":28959979520,"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":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1001/24000","Title":null,"VideoRange":"SDR","localizedUndefined":null,"localizedDefault":null,"localizedForced":null,"DisplayTitle":"1080p HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":4459324,"BitDepth":null,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"16:9","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":"aac","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":null,"VideoRange":null,"localizedUndefined":null,"localizedDefault":null,"localizedForced":null,"DisplayTitle":"Eng - AAC - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":454585,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"aac","CodecTag":null,"Language":"ger","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":null,"VideoRange":null,"localizedUndefined":null,"localizedDefault":null,"localizedForced":null,"DisplayTitle":"Ger - AAC - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":191999,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"HE-AAC","Type":0,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"PGSSUB","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Eng","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},{"Codec":"PGSSUB","CodecTag":null,"Language":"fre","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Fre","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":4,"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":"ger","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Ger","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":5,"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":"spa","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Spa","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":6,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"srt","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":null,"CodecTimeBase":null,"Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"Eng","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":7,"Score":null,"IsExternal":true,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/media/.en.srt","PixelFormat":null,"Level":null,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":5105908,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null} /usr/lib/jellyfin-ffmpeg/ffmpeg -ss 00:18:00.521 -vaapi_device /dev/dri/renderD128 -i file:"/media/.mkv" -map 0:0 -map 0:1 -codec:v:0 h264_vaapi -force_key_frames "expr:gte(t,n_forced*5)" -filter_complex "[0:3]scale=1920x1080[sub];[0:0]format=nv12|vaapi,hwupload,scale_vaapi=format=nv12,hwdownload[base];[base][sub]overlay,format=nv12,hwupload" -copyts -avoid_negative_ts disabled -start_at_zero -b:v 4585266 -maxrate 4585266 -bufsize 9170532 -profile:v:0 high -level 41 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -ac 2 -ab 384000 -y "/tmp/transcodes/transcodes/transcodes/280e209c1b91abca2b8b7200f3bba577.mkv" ffmpeg version 4.3.2-Jellyfin Copyright (c) 2000-2021 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-gpl --enable-version3 --enable-static --enable-libfontconfig --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-ffnvcodec libavutil 56. 51.100 / 56. 51.100 libavcodec 58. 91.100 / 58. 91.100 libavformat 58. 45.100 / 58. 45.100 libavdevice 58. 10.100 / 58. 10.100 libavfilter 7. 85.100 / 7. 85.100 libswscale 5. 7.100 / 5. 7.100 libswresample 3. 7.100 / 3. 7.100 libpostproc 55. 7.100 / 55. 7.100 [matroska,webm @ 0x55ada6469400] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 0x55ada6469400] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [matroska,webm @ 0x55ada6469400] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, matroska,webm, from 'file:/media/.mkv': Metadata: title : ..., Disc 3 encoder : libebml v1.3.6 + libmatroska v1.4.9 creation_time : 2018-09-22T22:41:07.000000Z Duration: 00:48:16.00, start: 0.000000, bitrate: 4459 kb/s Chapter #0:0: start 0.000000, end 233.608375 Metadata: title : Chapter 01 Chapter #0:1: start 233.608375, end 426.050625 Metadata: title : Chapter 02 Chapter #0:2: start 426.050625, end 552.218333 Metadata: title : Chapter 03 Chapter #0:3: start 552.218333, end 822.988833 Metadata: title : Chapter 04 Chapter #0:4: start 822.988833, end 1114.571792 Metadata: title : Chapter 05 Chapter #0:5: start 1114.571792, end 1259.925333 Metadata: title : Chapter 06 Chapter #0:6: start 1259.925333, end 1584.207625 Metadata: title : Chapter 07 Chapter #0:7: start 1584.207625, end 1779.235792 Metadata: title : Chapter 08 Chapter #0:8: start 1779.235792, end 2049.672625 Metadata: title : Chapter 09 Chapter #0:9: start 2049.672625, end 2122.995875 Metadata: title : Chapter 10 Chapter #0:10: start 2122.995875, end 2777.065958 Metadata: title : Chapter 11 Chapter #0:11: start 2777.065958, end 2895.934708 Metadata: title : Chapter 12 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default) Metadata: BPS-eng : 3754343 DURATION-eng : 00:48:15.935000000 NUMBER_OF_FRAMES-eng: 69433 NUMBER_OF_BYTES-eng: 1359041694 _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp Metadata: BPS-eng : 454585 DURATION-eng : 00:48:15.936000000 NUMBER_OF_FRAMES-eng: 135747 NUMBER_OF_BYTES-eng: 164556201 _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(ger): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp Metadata: BPS-eng : 191999 DURATION-eng : 00:48:15.958000000 NUMBER_OF_FRAMES-eng: 67874 NUMBER_OF_BYTES-eng: 69502739 _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080 Metadata: BPS-eng : 33620 DURATION-eng : 00:47:24.675000000 NUMBER_OF_FRAMES-eng: 1194 NUMBER_OF_BYTES-eng: 11955039 _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:4(fre): Subtitle: hdmv_pgs_subtitle Metadata: BPS-eng : 30189 DURATION-eng : 00:47:58.876000000 NUMBER_OF_FRAMES-eng: 1066 NUMBER_OF_BYTES-eng: 10863898 _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:5(ger): Subtitle: hdmv_pgs_subtitle Metadata: BPS-eng : 34090 DURATION-eng : 00:47:58.876000000 NUMBER_OF_FRAMES-eng: 1074 NUMBER_OF_BYTES-eng: 12267643 _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:6(spa): Subtitle: hdmv_pgs_subtitle Metadata: BPS-eng : 31317 DURATION-eng : 00:47:58.876000000 NUMBER_OF_FRAMES-eng: 1076 NUMBER_OF_BYTES-eng: 11269815 _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-22 22:41:07 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream mapping: Stream #0:0 (hevc) -> format (graph 0) Stream #0:3 (pgssub) -> scale (graph 0) hwupload (graph 0) -> Stream #0:0 (h264_vaapi) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [matroska,webm @ 0x55ada6469400] sub2video: using 1920x1080 canvas [h264_vaapi @ 0x55ada652b9c0] Driver does not support some wanted packed headers (wanted 0xd, found 0). [h264_vaapi @ 0x55ada652b9c0] Driver does not support packed sequence headers, but a global header is requested. [h264_vaapi @ 0x55ada652b9c0] No global header will be written: this may result in a stream which is not usable for some purposes (e.g. not muxable to some containers). Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input Error initializing output stream 0:0 -- [aac @ 0x55ada652c680] Qavg: -nan Conversion failed! ```
Author
Owner

@nyanmisaka commented on GitHub (Oct 16, 2021):

AMD VAAPI driver doesn't support writing packed headers required by the MKV container.

You can bypass it by applying this patch into Mesa.
https://trac.ffmpeg.org/attachment/ticket/8042/mesa-report-packed-header-support.diff

@nyanmisaka commented on GitHub (Oct 16, 2021): AMD VAAPI driver doesn't support writing packed headers required by the MKV container. You can bypass it by applying this patch into Mesa. https://trac.ffmpeg.org/attachment/ticket/8042/mesa-report-packed-header-support.diff
Author
Owner

@agilob commented on GitHub (Oct 16, 2021):

Right, so I just need to convert the file to mp4? ffmpeg is provided by jellyfin container

@agilob commented on GitHub (Oct 16, 2021): Right, so I just need to convert the file to mp4? ffmpeg is provided by jellyfin container
Author
Owner

@agilob commented on GitHub (Oct 16, 2021):

I have converted the container to mp4 compatible and still getting this crash:

[17:30:18] [INF] /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/.mp4" -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -force_key_frames "expr:gte(t,n_forced*5)" -vf "format=nv12|vaapi,hwupload,scale_vaapi=format=nv12" -copyts -avoid_negative_ts disabled -start_at_zero -b:v 4844046 -maxrate 4844046 -bufsize 9688092 -profile:v:0 high -level 41 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -ac 2 -ab 384000 -y "/tmp/transcodes/transcodes/transcodes/d61c05bb295376949844656a816240a5.mkv"

Transcoding stil caches to mkv container?

Converted using:

for f in *.mkv; do ffmpeg -i "$f" -c:v copy -c:a aac "${f%.mkv}.mp4"; done
@agilob commented on GitHub (Oct 16, 2021): I have converted the container to mp4 compatible and still getting this crash: ``` [17:30:18] [INF] /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/media/.mp4" -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -force_key_frames "expr:gte(t,n_forced*5)" -vf "format=nv12|vaapi,hwupload,scale_vaapi=format=nv12" -copyts -avoid_negative_ts disabled -start_at_zero -b:v 4844046 -maxrate 4844046 -bufsize 9688092 -profile:v:0 high -level 41 -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -ac 2 -ab 384000 -y "/tmp/transcodes/transcodes/transcodes/d61c05bb295376949844656a816240a5.mkv" ``` Transcoding stil caches to mkv container? Converted using: ``` for f in *.mkv; do ffmpeg -i "$f" -c:v copy -c:a aac "${f%.mkv}.mp4"; done ```
Author
Owner

@nyanmisaka commented on GitHub (Oct 16, 2021):

It should work with mpegts(ts).

@nyanmisaka commented on GitHub (Oct 16, 2021): It should work with mpegts(ts).
Author
Owner

@jellyfin-bot commented on GitHub (Feb 14, 2022):

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

@jellyfin-bot commented on GitHub (Feb 14, 2022): This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments. If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label. This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on [Matrix or Social Media](https://docs.jellyfin.org/general/getting-help.html).
Author
Owner

@carl1330 commented on GitHub (May 25, 2022):

AMD VAAPI driver doesn't support writing packed headers required by the MKV container.

You can bypass it by applying this patch into Mesa. https://trac.ffmpeg.org/attachment/ticket/8042/mesa-report-packed-header-support.diff

How do i apply this patch? Im having a similar issue.

@carl1330 commented on GitHub (May 25, 2022): > AMD VAAPI driver doesn't support writing packed headers required by the MKV container. > > You can bypass it by applying this patch into Mesa. https://trac.ffmpeg.org/attachment/ticket/8042/mesa-report-packed-header-support.diff How do i apply this patch? Im having a similar issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#3319