Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No audio for some files in 5.1.4-1 #307

Closed
eglia opened this issue Nov 29, 2023 · 2 comments
Closed

No audio for some files in 5.1.4-1 #307

eglia opened this issue Nov 29, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@eglia
Copy link

eglia commented Nov 29, 2023

Describe The Bug
Using 5.1.4-1, there is no sound when transcoding certain files.
5.1.3-7 did not show this issue.
Issue observed in jellyfin-web on Firefox and MS Edge.
No relevant messages in browser, jellyfin or ffmpeg log.

Steps To Reproduce

Expected Behavior

System (please complete the following information):

  • Platform: Linux
  • Operating System: Ubuntu 20.04
  • Virtualization: Docker
  • Jellyfin Version: 10.8.13
  • Jellyfin-FFmpeg Version: 5.1.4-1
  • Hardware Acceleration: NVENC
  • CPU & GPU Model: AMD Ryzen 7 3700X, GeForce GTX 960

MediaInfo

General
Unique ID                                : 113165871936395028939996336112828355828 (0x5522F442D05CB961826245DF325314F4)
Complete name                            : /Show.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 216 MiB
Duration                                 : 21 min 4 s
Overall bit rate                         : 1 431 kb/s
Movie name                               : Show
Writing application                      : Lavf59.16.100
Writing library                          : Lavf59.16.100
Comment                                  : 1080p,22,faster,2779249,0,-1
ErrorDetectionType                       : Per level 1

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L4@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 21 min 4 s
Bit rate                                 : 1 210 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Original frame rate                      : 23.976 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 0)
Bit depth                                : 8 bits
Stream size                              : 182 MiB (85%)
Writing library                          : x265 0.0:[Linux][GCC 4.8.5][64 bit] 8bit
Encoding settings                        : cpuid=1111039 / frame-threads=4 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=2 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=23 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=0 / b-pyramid / bframe-bias=0 / rc-lookahead=15 / lookahead-slices=6 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=2 / selective-sao=4 / early-skip / rskip / fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=22.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=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=1 / chromaloc=1 / chromaloc-top=0 / chromaloc-bottom=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=255 / 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 / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / 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-qpconformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 21 min 4 s
Bit rate mode                            : Constant
Bit rate                                 : 192 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 28.711 FPS (1536 SPF)
Bit depth                                : 32 bits
Compression mode                         : Lossy
Stream size                              : 28.9 MiB (13%)
Writing library                          : Lavc59.18.100 ac3
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Duration                                 : 21 min 0 s
Language                                 : English
Default                                  : No
Forced                                   : No


FFmpeg Logs
Version 5.1.4, no audio:

/videos/76002903-30da-c105-5efc-40a91d24664c/hls1/main/0.ts

{"Protocol":0,"Id":"7600290330dac1055efc40a91d24664c","Path":"/show.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":226134992,"Name":"Show","IsRemote":false,"ETag":"b840b808abf25145b755d589591a8a61","RunTimeTicks":12643940352,"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":"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":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Eng - SUBRIP - External","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":0,"Score":null,"IsExternal":true,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/show.en.srt","PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"hevc","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":"bt709","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":"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":1430788,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main","Type":1,"AspectRatio":"16:9","Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":120,"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":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Eng - Dolby Digital - Stereo - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":192000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":44100,"IsDefault":true,"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}],"MediaAttachments":[],"Formats":[],"Bitrate":1622788,"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 cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -threads 1 -autorotate 0 -i file:"/show.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_nvenc -preset p7 -b:v 5961617 -maxrate 5961617 -bufsize 11923234 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p" -codec:a:0 libfdk_aac -ac 2 -ab 256000 -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/0d5bcb3c076fc4715dbc750d2c5c9d56%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d56.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:/show.mkv':
  Metadata:
    title           : Show
    COMMENT         : 1080p,22,faster,2779249,0,-1
    ENCODER         : Lavf59.16.100
  Duration: 00:21:04.39, start: 0.000000, bitrate: 1430 kb/s
  Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      ENCODER         : Lavc59.18.100 libx265
      DURATION        : 00:21:04.394000000
  Stream #0:1(eng): Audio: ac3, 44100 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      ENCODER         : Lavc59.18.100 ac3
      DURATION        : 00:21:04.388000000
  Stream #0:2(eng): Subtitle: subrip
    Metadata:
      DURATION        : 00:21:00.231000000
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
Output #0, hls, to '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d56.m3u8':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264 (Main), cuda(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 5961 kb/s, 23.98 fps, 90k tbn (default)
    Metadata:
      encoder         : Lavc59.37.100 h264_nvenc
    Side data:
      cpb: bitrate max/min/avg: 5961617/0/5961617 buffer size: 11923234 vbv_delay: N/A
  Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 256 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    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d560.ts' for writing
frame=  150 fps=0.0 q=12.0 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d561.ts' for writing
frame=  259 fps=235 q=15.0 size=N/A time=00:00:04.57 bitrate=N/A speed=4.15x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d562.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d563.ts' for writing
frame=  367 fps=229 q=19.0 size=N/A time=00:00:09.05 bitrate=N/A speed=5.65x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d564.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d565.ts' for writing
frame=  499 fps=237 q=17.0 size=N/A time=00:00:14.55 bitrate=N/A speed=6.92x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d566.ts' for writing
frame=  574 fps=220 q=16.0 size=N/A time=00:00:17.69 bitrate=N/A speed= 6.8x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d567.ts' for writing
frame=  671 fps=216 q=24.0 size=N/A time=00:00:21.73 bitrate=N/A speed=   7x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d568.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d569.ts' for writing
frame=  761 fps=211 q=19.0 size=N/A time=00:00:25.47 bitrate=N/A speed=7.06x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5610.ts' for writing
frame=  906 fps=221 q=12.0 size=N/A time=00:00:31.48 bitrate=N/A speed=7.67x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5611.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5612.ts' for writing
frame= 1018 fps=221 q=13.0 size=N/A time=00:00:36.19 bitrate=N/A speed=7.86x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5613.ts' for writing
frame= 1102 fps=216 q=16.0 size=N/A time=00:00:39.70 bitrate=N/A speed=7.77x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5614.ts' for writing
frame= 1171 fps=209 q=14.0 size=N/A time=00:00:42.56 bitrate=N/A speed=7.59x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5615.ts' for writing
frame= 1258 fps=206 q=14.0 size=N/A time=00:00:46.23 bitrate=N/A speed=7.56x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5616.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5617.ts' for writing
frame= 1341 fps=203 q=16.0 size=N/A time=00:00:49.66 bitrate=N/A speed= 7.5x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5618.ts' for writing
frame= 1416 fps=199 q=21.0 size=N/A time=00:00:52.80 bitrate=N/A speed=7.42x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5619.ts' for writing
frame= 1502 fps=197 q=25.0 size=N/A time=00:00:56.40 bitrate=N/A speed= 7.4x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5620.ts' for writing
frame= 1602 fps=197 q=17.0 size=N/A time=00:01:00.58 bitrate=N/A speed=7.46x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5621.ts' for writing
frame= 1698 fps=197 q=21.0 size=N/A time=00:01:04.57 bitrate=N/A speed=7.49x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5622.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5623.ts' for writing
frame= 1765 fps=193 q=18.0 size=N/A time=00:01:07.36 bitrate=N/A speed=7.35x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5624.ts' for writing
frame= 1848 fps=191 q=20.0 size=N/A time=00:01:10.82 bitrate=N/A speed=7.33x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5625.ts' for writing
frame= 1920 fps=189 q=28.0 size=N/A time=00:01:13.81 bitrate=N/A speed=7.26x    
frame= 1979 fps=186 q=24.0 size=N/A time=00:01:16.27 bitrate=N/A speed=7.15x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5626.ts' for writing
frame= 2048 fps=183 q=16.0 size=N/A time=00:01:19.13 bitrate=N/A speed=7.09x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5627.ts' for writing
frame= 2116 fps=181 q=22.0 size=N/A time=00:01:21.99 bitrate=N/A speed=7.02x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5628.ts' for writing
frame= 2227 fps=183 q=14.0 size=N/A time=00:01:26.63 bitrate=N/A speed=7.12x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5629.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5630.ts' for writing
frame= 2341 fps=185 q=18.0 size=N/A time=00:01:31.39 bitrate=N/A speed=7.21x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5631.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5632.ts' for writing
frame= 2457 fps=185 q=9.0 size=N/A time=00:01:36.24 bitrate=N/A speed=7.25x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5633.ts' for writing
frame= 2582 fps=187 q=10.0 size=N/A time=00:01:41.47 bitrate=N/A speed=7.37x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5634.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5635.ts' for writing
frame= 2701 fps=189 q=13.0 size=N/A time=00:01:46.41 bitrate=N/A speed=7.45x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5636.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5637.ts' for writing
frame= 2820 fps=191 q=17.0 size=N/A time=00:01:51.36 bitrate=N/A speed=7.54x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5638.ts' for writing
frame= 2931 fps=192 q=13.0 size=N/A time=00:01:55.96 bitrate=N/A speed=7.59x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5639.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5640.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5641.ts' for writing
frame= 3069 fps=194 q=17.0 size=N/A time=00:02:01.76 bitrate=N/A speed=7.72x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5642.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5643.ts' for writing
frame= 3205 fps=197 q=13.0 size=N/A time=00:02:07.40 bitrate=N/A speed=7.82x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5644.ts' for writing
frame= 3336 fps=199 q=18.0 size=N/A time=00:02:12.88 bitrate=N/A speed=7.92x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5645.ts' for writing
frame= 3457 fps=200 q=12.0 size=N/A time=00:02:17.92 bitrate=N/A speed=7.98x    
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5646.ts' for writing
[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5647.ts' for writing


[q] command received. Exiting.

[hls @ 0x55afd31fa540] Opening '/config/transcodes/0d5bcb3c076fc4715dbc750d2c5c9d5648.ts' for writing
frame= 3586 fps=200 q=12.0 Lsize=N/A time=00:02:23.33 bitrate=N/A speed=8.01x    
video:83101kB audio:4674kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Version 5.1.3, audio working:

/videos/76002903-30da-c105-5efc-40a91d24664c/hls1/main/0.ts

{"Protocol":0,"Id":"7600290330dac1055efc40a91d24664c","Path":"/show.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":226134992,"Name":"Show","IsRemote":false,"ETag":"b840b808abf25145b755d589591a8a61","RunTimeTicks":12643940352,"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":"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":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Eng - SUBRIP - External","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":0,"Score":null,"IsExternal":true,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/show.en.srt","PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"hevc","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":"bt709","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":"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":1430788,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"Profile":"Main","Type":1,"AspectRatio":"16:9","Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":120,"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":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"Eng - Dolby Digital - Stereo - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":192000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":44100,"IsDefault":true,"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}],"MediaAttachments":[],"Formats":[],"Bitrate":1622788,"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 cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -threads 1 -autorotate 0 -i file:"/show.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_nvenc -preset p7 -b:v 5961617 -maxrate 5961617 -bufsize 11923234 -g:v:0 72 -keyint_min:v:0 72 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p" -codec:a:0 libfdk_aac -ac 2 -ab 256000 -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/b55e13c61bccf02a8d5d26e389093718%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/b55e13c61bccf02a8d5d26e389093718.m3u8"


ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 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:/show.mkv':
  Metadata:
    title           : Show
    COMMENT         : 1080p,22,faster,2779249,0,-1
    ENCODER         : Lavf59.16.100
  Duration: 00:21:04.39, start: 0.000000, bitrate: 1430 kb/s
  Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709/unknown/unknown, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      ENCODER         : Lavc59.18.100 libx265
      DURATION        : 00:21:04.394000000
  Stream #0:1(eng): Audio: ac3, 44100 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      ENCODER         : Lavc59.18.100 ac3
      DURATION        : 00:21:04.388000000
  Stream #0:2(eng): Subtitle: subrip
    Metadata:
      DURATION        : 00:21:00.231000000
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (ac3 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
Output #0, hls, to '/config/transcodes/b55e13c61bccf02a8d5d26e389093718.m3u8':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264 (Main), cuda(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 5961 kb/s, 23.98 fps, 90k tbn (default)
    Metadata:
      encoder         : Lavc59.37.100 h264_nvenc
    Side data:
      cpb: bitrate max/min/avg: 5961617/0/5961617 buffer size: 11923234 vbv_delay: N/A
  Stream #0:1: Audio: aac, 44100 Hz, stereo, s16, 256 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    
[hls @ 0x5615df798540] Opening '/config/transcodes/b55e13c61bccf02a8d5d26e3890937180.ts' for writing
frame=  150 fps=0.0 q=12.0 size=N/A time=00:00:01.54 bitrate=N/A speed=2.66x    
[hls @ 0x5615df798540] Opening '/config/transcodes/b55e13c61bccf02a8d5d26e3890937181.ts' for writing
frame=  259 fps=239 q=15.0 size=N/A time=00:00:06.12 bitrate=N/A speed=5.64x    
[hls @ 0x5615df798540] Opening '/config/transcodes/b55e13c61bccf02a8d5d26e3890937182.ts' for writing
[hls @ 0x5615df798540] Opening '/config/transcodes/b55e13c61bccf02a8d5d26e3890937183.ts' for writing
frame=  369 fps=233 q=19.0 size=N/A time=00:00:10.64 bitrate=N/A speed=6.72x    
[hls @ 0x5615df798540] Opening '/config/transcodes/b55e13c61bccf02a8d5d26e3890937184.ts' for writing
[hls @ 0x5615df798540] Opening '/config/transcodes/b55e13c61bccf02a8d5d26e3890937185.ts' for writing
frame=  499 fps=239 q=17.0 size=N/A time=00:00:16.08 bitrate=N/A speed=7.71x    
[hls @ 0x5615df798540] Opening '/config/transcodes/b55e13c61bccf02a8d5d26e3890937186.ts' for writing
frame=  574 fps=222 q=16.0 size=N/A time=00:00:19.24 bitrate=N/A speed=7.43x    

[q] command received. Exiting.

[hls @ 0x5615df798540] Opening '/config/transcodes/b55e13c61bccf02a8d5d26e3890937187.ts' for writing
[hls @ 0x5615df798540] Opening '/config/transcodes/b55e13c61bccf02a8d5d26e3890937188.ts' for writing
frame=  590 fps=208 q=18.0 Lsize=N/A time=00:00:19.91 bitrate=N/A speed=7.01x    
video:13673kB audio:768kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Additional Context

@eglia eglia added the bug Something isn't working label Nov 29, 2023
@nyanmisaka
Copy link
Member

nyanmisaka commented Nov 29, 2023

@eglia It seems that upstream introduced a regression in 5.1.4 and 6.1, but fortunately 6.0.1 is not affected. You can try jellyfin-ffmpeg6 6.0.1-1.

@nyanmisaka
Copy link
Member

Fixed in jellyfin-ffmpeg5 5.1.4-2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants