Jellyfin Forum
SOLVED: Multitrack Audio Track Names Missing - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Media Scanning & Identification (https://forum.jellyfin.org/f-media-scanning-identification)
+---- Thread: SOLVED: Multitrack Audio Track Names Missing (/t-solved-multitrack-audio-track-names-missing)



Multitrack Audio Track Names Missing - PoizenJam - 2024-09-27

I have a bunch of multi-track audio files I've created and stored on Jellyfin. ffmpeg code in Python looks like-

Code:
    # Convert to 1080p60
    subprocess.run(
        ["ffmpeg",
        '-hwaccel', 'cuda',  # Enable CUDA hardware acceleration
        '-i', input_file,
        '-n',
        '-c:v', 'h264_nvenc',
        '-preset', 'slow',
        '-b:v', '4.2M',
        "-c:a", "copy",  # Copy all audio streams
        "-vf", "scale=1920:-2",
        '-map', '0:v:0',

        # Map all audio streams
        '-map', '0:a:0',  # Map the first audio stream
        '-map', '0:a:1',  # Map the second audio stream
        '-map', '0:a:2',  # Map the third audio stream
        '-map', '0:a:3',  # Map the fourth audio stream
       
        # Add metadata for each audio track
        '-metadata:s:a:0', 'title=Clean (Backing + Bass)',  # Title for the first audio track
        '-metadata:s:a:1', 'title=Original (Stream Audio)',  # Title for the second audio track
        '-metadata:s:a:2', 'title=Voice (Muted Music)',  # Title for the third audio track
        '-metadata:s:a:3', 'title=Bass (Dry)',  # Title for the fourth audio track

        # Add global metadata
        '-metadata', 'title='+title,
        '-metadata', 'artist=PoizenJam',
        '-metadata', 'date='+keys[9],
        '-metadata', 'comment='+keys[8],
        '-metadata', 'description='+custom_desc,
        output_file_1080p]
    )

These metadata for the audio track names displays just fine in VLC and Windows Media Player:

[Image: Oeo7AC9.png]

But in Jellyfin the audio track names are completely missing:

[Image: jIPZ4FX.png]

Unsure why this would be the case- wondering if the community has any insight?

If it helps, I am running Jellyfin as a Docker container on Windows.


RE: Multitrack Audio Track Names Missing - TheDreadPirate - 2024-09-27

What is the output of ffprobe on that file?  Also, did you make these changes after you add the file to your library?  Did you rescan and replace all metadata after changing the titles?  I mirrored your ffmpeg command, added "FOSS Audio" to track 1, rescanned my test file, and it showed up in Jellyfin.

   

Code:
chris@rat-trap:/media/storage2/testMovies/Atomic Blonde$ ffprobe Atomic\ Blonde\ -\ \[FOSS\].mkv
ffprobe version 6.0.1-Jellyfin Copyright (c) 2007-2023 the FFmpeg developers
......
......
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      DURATION        : 01:54:44.293000000
  Stream #0:1(eng): Audio: flac, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title          : FOSS Audio
      ENCODER        : Lavc60.3.100 flac
      DURATION        : 01:54:44.298000000
  Stream #0:2(eng): Audio: vorbis, 48000 Hz, 5.1, fltp
    Metadata:
      title          : Surround 5.1
      ENCODER        : Lavc60.3.100 libvorbis
      DURATION        : 01:54:44.303000000
  Stream #0:3(eng): Audio: vorbis, 48000 Hz, stereo, fltp
    Metadata:
      title          : Stereo
      ENCODER        : Lavc60.3.100 libvorbis
      DURATION        : 01:54:44.324000000
  Stream #0:4(eng): Audio: vorbis, 48000 Hz, stereo, fltp
    Metadata:
      title          : Stereo
      ENCODER        : Lavc60.3.100 libvorbis
      DURATION        : 01:54:44.332000000
  Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      DURATION        : 01:48:19.827000000

Code:
ffmpeg -i Atomic\ Blonde\ -\ \[FOSS\].mkv -map 0 -codec copy -metadata:s:a:0 title="FOSS Audio" test.mkv



RE: Multitrack Audio Track Names Missing - PoizenJam - 2024-09-27

ffprobe wasn't showing the "Title" metatata- so thanks for that tipoff.

Interesting, after a bit of troubleshooting I resolved the issue by writing some additional metadata (language + handler_name fields). Truly bizarre that title wasn't working on its own, especially since VLC and WMP detected it fine enough.