jellyfin / jellyfin-kodi

Jellyfin Plugin for Kodi
https://jellyfin.org
GNU General Public License v3.0
855 stars 113 forks source link

How to stop transcoding Atmos #940

Open FredHaa opened 1 day ago

FredHaa commented 1 day ago

I have some files with E-AC3 Atmos sound tracks which I cannot get to not transcode.

My Kodi box is attached to the TV using HDMI, which is then attached to my soundbar using eARC.

it5c0z1mG commented 18 hours ago

Use native mode, #928 is the new version, it gets the files directly so its entirely down to kodi to play it then you can set kodis audio settings to 7.1 or passthrough and it all plays perfectly

oddstr13 commented 7 hours ago

Based on the device profile, I'd expect audio not to get transcoded in the first place, possibly with the exception of when the video is getting transcoded.

Is the video getting transcoded?

https://github.com/jellyfin/jellyfin-kodi/blob/a03eee48873f1206d5fb55800ce1be23ee48e884/jellyfin_kodi/helper/playutils.py#L419

FredHaa commented 7 hours ago

Here is a snippet of the ffmpeg logs:

ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-23ubuntu4)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      59.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
Input #0, matroska,webm, from 'file:/tv/Ozark/Season 3/Ozark.S03E06.Su.Casa.Es.Mi.Casa.WEBDL-2160p.HEVC.10bit.DV HDR10.EAC3.5.1-SiC.mkv':
  Metadata:
    title           : Ozark S03E06 Su Casa Es Mi Casa
    TMDB            : tv/69740
    TVDB            : 329089
    IMDB            : tt5071412
    ENCODER         : Lavf60.3.100
  Duration: 00:59:02.43, start: 0.000000, bitrate: 15784 kb/s
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
      Metadata:
        DURATION        : 00:57:50.717000000
      Side data:
        DOVI configuration record: version: 1.0, profile: 8, level: 6, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 1
  Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
      Metadata:
        DURATION        : 00:59:02.432000000
  Stream #0:2(eng): Subtitle: subrip (srt) (default)
      Metadata:
        DURATION        : 00:54:30.976000000
  Stream #0:3(eng): Subtitle: subrip (srt) (hearing impaired)
      Metadata:
        title           : SDH
        DURATION        : 00:55:44.507000000
  Stream #0:4(dan): Subtitle: subrip (srt)
      Metadata:
        DURATION        : 00:57:29.612000000
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (eac3 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
Output #0, hls, to '/config/transcodes/456e581db518e7268a11c0af596f567b.m3u8':
  Metadata:
    encoder         : Lavf61.1.100
  Stream #0:0: Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 90k tbn (default)
      Side data:
        DOVI configuration record: version: 1.0, profile: 8, level: 6, rpu flag: 1, el flag: 0, bl flag: 1, compatibility id: 1
  Stream #0:1: Audio: aac, 48000 Hz, 5.1, s16, 256 kb/s (default)
      Metadata:
        encoder         : Lavc61.3.100 libfdk_aac

As you can see the DV HDR track is not transcoded, only the E-AC3 stream.

oddstr13 commented 5 hours ago

Do you know if this is new behavior, or if it has been present in older versions of Jellyfin too?

On that note, which software versions are you using?