Jellyfin Forum
Transcoding problem on Docker - 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: Transcoding problem on Docker (/t-transcoding-problem-on-docker)

Pages: 1 2


Transcoding problem on Docker - TheMoltenJack - 2024-02-26

Hi everyone. I'm new to Jellyfin and I've just installed it using Docker on my Linux server, running on an Intel i7-2600K.
When I try to play a media encoded in HEVC the page after loading a few seconds returns the error " This client isn't compatible with the media and the server isn't sending a compatible media format." so I tried enabling hardware acceleration but with the same result (the page doesn't load though, it gives the error almost immediately.
What could be causing the problem? Is there a way to solve it?

On the logs for hardware encoding I see the error:
Code:
[AVHWDeviceContext @ 0x561f1843bd00] No VA display found for any default device.
Device creation failed: -22.
Failed to set value 'vaapi=va:,kernel_driver=i915,driver=iHD' for option 'init_hw_device': Invalid argument
Error parsing global options: Invalid argument



RE: Transcoding problem on Docker - TheDreadPirate - 2024-02-26

Your iGPU does not support HEVC, period. I'm assuming you selected Intel Quick Sync in Dashboard > Playback and checked the HEVC box. If you unchecked that box it will CPU decode before attempting to transcode. And only if you select VAAPI for hardware acceleration.


RE: Transcoding problem on Docker - TheMoltenJack - 2024-02-26

I tried with both intel Quick Sync and VAAPI, the log is the result of VAAPI. So, just to be clear, what settings should work for me if there are any?


RE: Transcoding problem on Docker - TheDreadPirate - 2024-02-26

VAAPI, the only boxes you should have checked are H264, MPEG2, VC-1, and Enable Hardware Encoding. If that doesn't work, uncheck that last one for testing.


RE: Transcoding problem on Docker - TheMoltenJack - 2024-02-26

With this settings I get the same error. At the end of the last log I found

Code:
[AVHWDeviceContext @ 0x556a994488c0] No VA display found for device /dev/dri/renderD128.
Device creation failed: -22.
Failed to set value 'vaapi=va:/dev/dri/renderD128' for option 'init_hw_device': Invalid argument
Error parsing global options: Invalid argument

Unchecking Enable Hardware Encoding I get the same error but the log is this:

Code:
/videos/d7cedda2-58a4-50b0-fd13-95cd7b05f071/hls1/main/0.ts

{"Protocol":0,"Id":"d7cedda258a450b0fd1395cd7b05f071","Path":"/media/movies/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":13653402624,"Name":"Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG","IsRemote":false,"ETag":"54c0800c95a3b3aaf1f603aa8f9ed3e5","RunTimeTicks":93266239488,"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":"bt2020nc","ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","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":"HDR","VideoRangeType":"HDR10","VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"4K HEVC HDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":11711335,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1604,"Width":3840,"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":153,"IsAnamorphic":null},{"Codec":"truehd","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"English TrueHD Atmos 7.1","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"English TrueHD Atmos 7.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"7.1","BitRate":3242671,"BitDepth":24,"RefFrames":null,"PacketLength":null,"Channels":8,"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":"ac3","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"English DD 5.1","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"English DD 5.1 - Dolby Digital","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":384000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"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":"subrip","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"English SRT","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"English SRT - Default - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":3,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"English SDH SRT","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"English SDH SRT - SUBRIP","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":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"mjpeg","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":"bt470bg","ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":null,"NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":825,"Width":550,"AverageFrameRate":null,"RealFrameRate":90000,"Profile":"Baseline","Type":3,"AspectRatio":"2:3","Index":5,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuvj420p","Level":-99,"IsAnamorphic":null}],"MediaAttachments":[{"Codec":"mjpeg","CodecTag":"[0][0][0][0]","Comment":null,"Index":5,"FileName":"cover.jpg","MimeType":"image/jpeg","DeliveryUrl":null}],"Formats":[],"Bitrate":15338006,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M  -i file:"/media/movies/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -preset veryfast -crf 23 -maxrate 19518892 -bufsize 39037784 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -sc_threshold:v:0 0 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,3840)/2)*2:trunc(ow/a/2)*2,format=yuv420p" -codec:a:0 libfdk_aac -ac 8 -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/ea096fbcb1d48c2f282fbe77bb54a785%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/ea096fbcb1d48c2f282fbe77bb54a785.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
Input #0, matroska,webm, from 'file:/media/movies/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG.mkv':
  Metadata:
    title           : Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    creation_time   : 2022-09-05T20:08:57.000000Z
  Duration: 02:35:26.62, start: 0.000000, bitrate: 11711 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 195.987458
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 195.987458, end 774.774000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 774.774000, end 1320.569250
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 1320.569250, end 1756.755000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1756.755000, end 2350.931917
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 2350.931917, end 2839.795292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 2839.795292, end 3413.493417
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 3413.493417, end 4010.381375
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 4010.381375, end 4604.891958
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 4604.891958, end 5160.655500
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 5160.655500, end 5760.087667
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 5760.087667, end 6309.469833
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 6309.469833, end 6830.323500
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 6830.323500, end 7418.411000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 7418.411000, end 7933.008417
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 7933.008417, end 8445.770667
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 8445.770667, end 8847.630458
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 8847.630458, end 9326.608958
      Metadata:
        title           : Chapter 18
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1604 [SAR 1:1 DAR 960:401], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS             : 8015042
      DURATION        : 02:35:26.609000000
      NUMBER_OF_FRAMES: 223615
      NUMBER_OF_BYTES : 9344145800
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title           : English TrueHD Atmos 7.1
      BPS             : 3242671
      DURATION        : 02:35:26.609000000
      NUMBER_OF_FRAMES: 11191931
      NUMBER_OF_BYTES : 3780391034
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      title           : English DD 5.1
      BPS             : 384000
      DURATION        : 02:35:26.624000000
      NUMBER_OF_FRAMES: 291457
      NUMBER_OF_BYTES : 447677952
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(eng): Subtitle: subrip (default)
    Metadata:
      title           : English SRT
      BPS             : 31
      DURATION        : 02:26:55.640000000
      NUMBER_OF_FRAMES: 1301
      NUMBER_OF_BYTES : 34619
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(eng): Subtitle: subrip (hearing impaired)
    Metadata:
      title           : English SDH SRT
      BPS             : 41
      DURATION        : 02:26:55.640000000
      NUMBER_OF_FRAMES: 1687
      NUMBER_OF_BYTES : 45214
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 550x825 [SAR 1:1 DAR 2:3], 90k tbr, 90k tbn (attached pic)
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (truehd (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[libx264 @ 0x557dd42e3040] using SAR=1/1
[libx264 @ 0x557dd42e3040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x557dd42e3040] profile Main, level 5.1, 4:2:0, 8-bit
[libx264 @ 0x557dd42e3040] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=12 lookahead_threads=2 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=0 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=19518 vbv_bufsize=39037 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, hls, to '/config/transcodes/ea096fbcb1d48c2f282fbe77bb54a785.m3u8':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264, yuv420p(tv, bt709, progressive), 3840x1604 [SAR 1:1 DAR 960:401], q=2-31, 23.98 fps, 90k tbn (default)
    Metadata:
      encoder         : Lavc59.37.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 19518000/0/0 buffer size: 39037000 vbv_delay: N/A
  Stream #0:1: Audio: aac, 48000 Hz, 7.1(wide), 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=   25 fps=0.0 q=0.0 size=N/A time=00:00:01.00 bitrate=N/A speed=1.71x    
frame=   52 fps= 48 q=28.0 size=N/A time=00:00:02.21 bitrate=N/A speed=2.03x    
frame=   81 fps= 51 q=28.0 size=N/A time=00:00:03.34 bitrate=N/A speed=2.09x    
[hls @ 0x557dd42df8c0] Opening '/config/transcodes/ea096fbcb1d48c2f282fbe77bb54a7850.ts' for writing
frame=  110 fps= 52 q=28.0 size=N/A time=00:00:04.54 bitrate=N/A speed=2.15x    
frame=  139 fps= 53 q=28.0 size=N/A time=00:00:05.76 bitrate=N/A speed=2.19x    
frame=  164 fps= 52 q=28.0 size=N/A time=00:00:06.82 bitrate=N/A speed=2.18x    
[hls @ 0x557dd42df8c0] Opening '/config/transcodes/ea096fbcb1d48c2f282fbe77bb54a7851.ts' for writing


[q] command received. Exiting.

[hls @ 0x557dd42df8c0] Opening '/config/transcodes/ea096fbcb1d48c2f282fbe77bb54a7852.ts' for writing
frame=  182 fps= 51 q=-1.0 Lsize=N/A time=00:00:07.59 bitrate=N/A speed=2.12x    
video:58kB audio:625kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x557dd42e3040] frame I:3     Avg QP: 6.97  size:  2360
[libx264 @ 0x557dd42e3040] frame P:46    Avg QP:10.34  size:   591
[libx264 @ 0x557dd42e3040] frame B:133   Avg QP:12.69  size:   184
[libx264 @ 0x557dd42e3040] consecutive B-frames:  2.2%  0.0%  3.3% 94.5%
[libx264 @ 0x557dd42e3040] mb I  I16..4: 99.7%  0.0%  0.3%
[libx264 @ 0x557dd42e3040] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.1%  0.0%  0.0%  0.0%  0.0%    skip:99.9%
[libx264 @ 0x557dd42e3040] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%  L0:62.3% L1:37.4% BI: 0.3%
[libx264 @ 0x557dd42e3040] coded y,uvDC,uvAC intra: 0.7% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x557dd42e3040] i16 v,h,dc,p: 99%  0%  1%  0%
[libx264 @ 0x557dd42e3040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 21% 15%  5%  6%  3%  5%  3%  4%
[libx264 @ 0x557dd42e3040] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x557dd42e3040] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x557dd42e3040] kb/s:61.98



RE: Transcoding problem on Docker - TheDreadPirate - 2024-02-26

The output of the transcode is in 4K. I'm assuming your TV/display is not 4K. What kind of client are you using?


RE: Transcoding problem on Docker - TheMoltenJack - 2024-02-26

As of now I'm using a desktop PC with a 2K monitor, but I have a 4K TV so some of the media I have are 4K


RE: Transcoding problem on Docker - TheDreadPirate - 2024-02-26

Hmmm.  I'd assume the PC client would be able to handle down-scaling the content when it is larger than the display.

What happens when you set the max transcode resolution to 1080P?

Settings > Playback (not the dashboard).

   


RE: Transcoding problem on Docker - TheMoltenJack - 2024-02-26

Still same error.
On another note, I found out about the error I was getting with hardware encoding enabled and it was the docker container not being able to access the right driver and device, thing that I did solve now. The problem is that I'm getting another error:
Code:
[h264_vaapi @ 0x55a222a8f500] Hardware does not support encoding at size 3840x1616 (constraints: width 32-2048 height 32-2048).
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[libfdk_aac @ 0x55a222a9f5c0] 2 frames left in the queue on closing
Conversion failed!

While with hardware encoding disabled I get

Code:
/videos/d7cedda2-58a4-50b0-fd13-95cd7b05f071/hls1/main/0.ts

{"Protocol":0,"Id":"d7cedda258a450b0fd1395cd7b05f071","Path":"/media/movies/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":13653402624,"Name":"Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG","IsRemote":false,"ETag":"54c0800c95a3b3aaf1f603aa8f9ed3e5","RunTimeTicks":93266239488,"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":"bt2020nc","ColorTransfer":"smpte2084","ColorPrimaries":"bt2020","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":"HDR","VideoRangeType":"HDR10","VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"4K HEVC HDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":11711335,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1604,"Width":3840,"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":153,"IsAnamorphic":null},{"Codec":"truehd","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"English TrueHD Atmos 7.1","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"English TrueHD Atmos 7.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"7.1","BitRate":3242671,"BitDepth":24,"RefFrames":null,"PacketLength":null,"Channels":8,"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":"ac3","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"English DD 5.1","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"English DD 5.1 - Dolby Digital","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":384000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"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":"subrip","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"English SRT","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"English SRT - Default - SUBRIP","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":3,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"subrip","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"English SDH SRT","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"English SDH SRT - SUBRIP","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":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"mjpeg","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":"bt470bg","ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":null,"NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":825,"Width":550,"AverageFrameRate":null,"RealFrameRate":90000,"Profile":"Baseline","Type":3,"AspectRatio":"2:3","Index":5,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuvj420p","Level":-99,"IsAnamorphic":null}],"MediaAttachments":[{"Codec":"mjpeg","CodecTag":"[0][0][0][0]","Comment":null,"Index":5,"FileName":"cover.jpg","MimeType":"image/jpeg","DeliveryUrl":null}],"Formats":[],"Bitrate":15338006,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M  -i file:"/media/movies/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -preset veryfast -crf 23 -maxrate 19518892 -bufsize 39037784 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -sc_threshold:v:0 0 -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" -codec:a:0 libfdk_aac -ac 8 -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/fc9d4b42159d5df071e1958508583a63%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/fc9d4b42159d5df071e1958508583a63.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
Input #0, matroska,webm, from 'file:/media/movies/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG/Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG.mkv':
  Metadata:
    title           : Dune.2021.2160p.UHD.BluRay.x265.10bit.HDR.TrueHD.7.1.Atmos-RARBG
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    creation_time   : 2022-09-05T20:08:57.000000Z
  Duration: 02:35:26.62, start: 0.000000, bitrate: 11711 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 195.987458
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 195.987458, end 774.774000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 774.774000, end 1320.569250
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 1320.569250, end 1756.755000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1756.755000, end 2350.931917
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 2350.931917, end 2839.795292
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 2839.795292, end 3413.493417
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 3413.493417, end 4010.381375
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 4010.381375, end 4604.891958
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 4604.891958, end 5160.655500
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 5160.655500, end 5760.087667
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 5760.087667, end 6309.469833
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 6309.469833, end 6830.323500
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 6830.323500, end 7418.411000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 7418.411000, end 7933.008417
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 7933.008417, end 8445.770667
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 8445.770667, end 8847.630458
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 8847.630458, end 9326.608958
      Metadata:
        title           : Chapter 18
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x1604 [SAR 1:1 DAR 960:401], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS             : 8015042
      DURATION        : 02:35:26.609000000
      NUMBER_OF_FRAMES: 223615
      NUMBER_OF_BYTES : 9344145800
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title           : English TrueHD Atmos 7.1
      BPS             : 3242671
      DURATION        : 02:35:26.609000000
      NUMBER_OF_FRAMES: 11191931
      NUMBER_OF_BYTES : 3780391034
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      title           : English DD 5.1
      BPS             : 384000
      DURATION        : 02:35:26.624000000
      NUMBER_OF_FRAMES: 291457
      NUMBER_OF_BYTES : 447677952
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(eng): Subtitle: subrip (default)
    Metadata:
      title           : English SRT
      BPS             : 31
      DURATION        : 02:26:55.640000000
      NUMBER_OF_FRAMES: 1301
      NUMBER_OF_BYTES : 34619
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(eng): Subtitle: subrip (hearing impaired)
    Metadata:
      title           : English SDH SRT
      BPS             : 41
      DURATION        : 02:26:55.640000000
      NUMBER_OF_FRAMES: 1687
      NUMBER_OF_BYTES : 45214
      _STATISTICS_WRITING_APP: mkvmerge v70.0.0 ('Caught A Lite Sneeze') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2022-09-05 20:08:57
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 550x825 [SAR 1:1 DAR 2:3], 90k tbr, 90k tbn (attached pic)
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (truehd (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[libx264 @ 0x5597729e7040] using SAR=1/1
[libx264 @ 0x5597729e7040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x5597729e7040] profile Main, level 4.1, 4:2:0, 8-bit
[libx264 @ 0x5597729e7040] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - 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=12 lookahead_threads=2 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=0 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=19518 vbv_bufsize=39037 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, hls, to '/config/transcodes/fc9d4b42159d5df071e1958508583a63.m3u8':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264, yuv420p(tv, bt709, progressive), 1920x802 [SAR 1:1 DAR 960:401], q=2-31, 23.98 fps, 90k tbn (default)
    Metadata:
      encoder         : Lavc59.37.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 19518000/0/0 buffer size: 39037000 vbv_delay: N/A
  Stream #0:1: Audio: aac, 48000 Hz, 7.1(wide), 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=   39 fps=0.0 q=28.0 size=N/A time=00:00:01.79 bitrate=N/A speed= 3.1x    
frame=   87 fps= 81 q=28.0 size=N/A time=00:00:03.73 bitrate=N/A speed=3.46x    
[hls @ 0x5597729e38c0] Opening '/config/transcodes/fc9d4b42159d5df071e1958508583a630.ts' for writing
frame=  134 fps= 84 q=28.0 size=N/A time=00:00:05.54 bitrate=N/A speed= 3.5x    
[hls @ 0x5597729e38c0] Opening '/config/transcodes/fc9d4b42159d5df071e1958508583a631.ts' for writing
frame=  177 fps= 85 q=28.0 size=N/A time=00:00:07.44 bitrate=N/A speed=3.57x    

[q] command received. Exiting.

[hls @ 0x5597729e38c0] Opening '/config/transcodes/fc9d4b42159d5df071e1958508583a632.ts' for writing
frame=  184 fps= 83 q=-1.0 Lsize=N/A time=00:00:07.85 bitrate=N/A speed=3.56x    
video:21kB audio:645kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x5597729e7040] frame I:3     Avg QP:12.82  size:   970
[libx264 @ 0x5597729e7040] frame P:46    Avg QP:15.36  size:   234
[libx264 @ 0x5597729e7040] frame B:135   Avg QP:18.34  size:    54
[libx264 @ 0x5597729e7040] consecutive B-frames:  1.6%  0.0%  4.9% 93.5%
[libx264 @ 0x5597729e7040] mb I  I16..4: 99.5%  0.0%  0.5%
[libx264 @ 0x5597729e7040] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.1%  0.0%  0.0%  0.0%  0.0%    skip:99.9%
[libx264 @ 0x5597729e7040] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%  L0:66.9% L1:33.1% BI: 0.0%
[libx264 @ 0x5597729e7040] coded y,uvDC,uvAC intra: 0.8% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x5597729e7040] i16 v,h,dc,p: 98%  0%  2%  0%
[libx264 @ 0x5597729e7040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 13% 24%  4%  5%  3%  5%  3%  5%
[libx264 @ 0x5597729e7040] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x5597729e7040] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x5597729e7040] kb/s:21.82



RE: Transcoding problem on Docker - TheDreadPirate - 2024-02-27

Right at the top of the first log

Code:
[h264_vaapi @ 0x55a222a8f500] Hardware does not support encoding at size 3840x1616 (constraints: width 32-2048 height 32-2048).

Looks like your device does not support encoding at 4K. Looks like a straight up hardware limitation.