jellyfin / jellyfin-ffmpeg

FFmpeg for Jellyfin
https://jellyfin.org
Other
432 stars 115 forks source link

HEVC -> AV1 transcode issue #396

Closed bibitocarlos closed 1 month ago

bibitocarlos commented 1 month ago

Cant play in Firefox HEVC/X264 files which transcode to AV1 with QSV (same with VAAPI)

  1. Enable AV1 transcode
  2. Play a HEVC/H264 files
  3. Check transcode logs

MediaInfo `eneral Unique ID : 232572116416648336609749392336768272139 (0xAEF7C2A491D53C1EF67F90E70D5D070B) Complete name : /srv/nfs/donnees/films/2001-A Space Odyssey 1968/2001-A.Space.Odyssey.1968.mkv Format : Matroska Format version : Version 4 File size : 21.1 GiB Duration : 2 h 28 min Overall bit rate : 20.3 Mb/s Frame rate : 23.976 FPS Movie name : 2001: A Space Odyssey Encoded date : 2020-04-23 10:43:52 UTC Writing application : mkvmerge v38.0.0 ('The Silent Type') 64-bit Writing library : libebml v1.3.9 + libmatroska v1.5.2

Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5@Main HDR format : SMPTE ST 2086, HDR10 compatible Codec ID : V_MPEGH/ISO/HEVC Duration : 2 h 28 min Bit rate : 19.5 Mb/s Width : 3 840 pixels Height : 1 748 pixels Display aspect ratio : 2.2:1 Frame rate mode : Constant Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits Bits/(Pixel*Frame) : 0.121 Stream size : 20.3 GiB (96%) Writing library : x265 3.2+23-52135ffd9bcd:[Windows][GCC 9.2.0][64 bit] 10bit Encoding settings : cpuid=1111039 / frame-threads=3 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x1748 / interlace=0 / total-frames=214088 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / gop-lookahead=0 / bframes=8 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / no-sao / no-sao-non-deblock / rd=4 / selective-sao=0 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=15.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=0 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=0 / display-window=0 / master-display=G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,50) / cll=992,282 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.01 / no-opt-cu-delta-qp / aq-motion / hdr / hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / no-scenecut-aware-qp Default : Yes Forced : No Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : BT.2020 Mastering display luminance : min: 0.0050 cd/m2, max: 1000 cd/m2 Maximum Content Light Level : 992 cd/m2 Maximum Frame-Average Light Level : 282 cd/m2

Audio #1 ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : A_AAC-2 Duration : 2 h 28 min Bit rate : 611 kb/s Channel(s) : 6 channels Channel layout : C L R Ls Rs LFE Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Delay relative to video : 20 ms Stream size : 651 MiB (3%) Language : English Default : Yes Forced : No

Audio #2 ID : 3 Format : AAC LC SBR Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication Commercial name : HE-AAC Format settings : Explicit Codec ID : A_AAC-2 Duration : 2 h 28 min Bit rate : 66.2 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 23.438 FPS (2048 SPF) Compression mode : Lossy Delay relative to video : 40 ms Stream size : 70.5 MiB (0%) Title : Commentary Language : English Default : No Forced : No `

FFMPEG log : HEVC https://pastebin.com/HH61jCac X264 https://pastebin.com/VmZJAWEs

nyanmisaka commented 1 month ago
[av1_qsv @ 0x5ed324715c00] Selected ratecontrol mode is unsupported
[av1_qsv @ 0x5ed324715c00] Current frame rate is unsupported
[av1_qsv @ 0x5ed324715c00] Current picture structure is unsupported
[av1_qsv @ 0x5ed324715c00] Current resolution is unsupported
[av1_qsv @ 0x5ed324715c00] Current pixel format is unsupported
[av1_qsv @ 0x5ed324715c00] some encoding parameters are not supported by the QSV runtime. Please double check the input parameters.
[vost#0:0/av1_qsv @ 0x5ed324715900] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

12th Gen Intel iGPU doesn't have AV1 hw encoder. You need an Arc dGPU or 14th Gen Ultra iGPU.

For more informations: https://jellyfin.org/docs/general/administration/hardware-acceleration/intel/#transcode-av1

bibitocarlos commented 1 month ago

Thanks, closing !