2024-09-27, 03:52 PM
(This post was last modified: 2024-09-27, 04:48 PM by PoizenJam. Edited 2 times in total.)
I have a bunch of multi-track audio files I've created and stored on Jellyfin. ffmpeg code in Python looks like-
These metadata for the audio track names displays just fine in VLC and Windows Media Player:
But in Jellyfin the audio track names are completely missing:
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.
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:
But in Jellyfin the audio track names are completely missing:
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.