Jellyfin Forum
Possible to edit/custom Audio name ? (See picture) - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Possible to edit/custom Audio name ? (See picture) (/t-possible-to-edit-custom-audio-name-see-picture)



Possible to edit/custom Audio name ? (See picture) - kalemvar - 2023-09-28

Hello

Is it possible to edit or remove these information on the audio name ? they are there by default but I would love to remove them and put my own print

Thanks

kalemvar

   


RE: Possible to edit/custom Audio name ? (See picture) - skribe - 2023-09-28

Some of this information is read from the headers in the media file, some of it is determined by ffprobe I believe. You can edit anything in the headers, as long as it's mkv, with mkxtoolnix.


RE: Possible to edit/custom Audio name ? (See picture) - kalemvar - 2023-09-28

Thanks for the reply

all of them are .MKV and are mux with mkvtoolnix

-for the "default" tag, if I put no to "default track" in mkvtoolenix, it's removed from Jellyfin
-But for remove "Stereo" and "Dolby Digital+" do you have clue (in mkvtoolnix) ?

Thanks

kalemvar


RE: Possible to edit/custom Audio name ? (See picture) - bitmap - 2023-09-29

Those are properties of the audio track. You can't remove them.


RE: Possible to edit/custom Audio name ? (See picture) - kalemvar - 2023-09-29

Thanks,

it's logical that I can't remove them, is it possible to remove or edit them shorter, like E-AC3 or something ? I guess probably not but I'm asking Smiling-face

Thanks

kalemvar


RE: Possible to edit/custom Audio name ? (See picture) - bitmap - 2023-09-29

I'm not sure. That might be how Jellyfin parses DD+, E-AC3, E-AC3, EAC-3, etc...

You can use ffprobe to look at what this information is set as currently on files with

Code:
ffprobe -show_streams -select_stream X:a "filename.ext"

Where "X" is the audio stream index, starting at zero. I'm not at my computer right now, I'm on mobile or I'd run one for you and throw some output here. I'll do that later today once I'm done out in the world.

You can change the data in a number of ways. I'd say Mkvtoolnix is the right tool since you can just alter the data without doing any encoding. You can alter metadata with ffmpeg as well, though, which is what I'm more familiar with using the metadata flag with the correct specifiers. I don't know what the right field for this is, however, and I also don't know the downstream effects of changing the field to something possibly non-standard. Pulling your file out of spec might make it not play, not work with ffmpeg any longer, cause other metadata issues, etc...

You're welcome to try, see what happens, and change it back if it breaks. I'd back up your file first. Use ffprobe to figure out where this data is stored and Mkvtoolnix or ffmpeg to alter the metadata field to the desired value, then refresh the file in Jellyfin, confirm whether it worked, check that it functions, see if it works anywhere else you care about, and go about your day...


RE: Possible to edit/custom Audio name ? (See picture) - kalemvar - 2023-09-30

Big Thanks for the reply

I would very much like a complete example with details on how you do it.

It's really appreciate Smiling-face

Kalemvar


RE: Possible to edit/custom Audio name ? (See picture) - bitmap - 2023-10-03

Apologies it took me this long to reply, but here's a sample of ffprobe output.

Code:
bitmap@server~: ffprobe -hide_banner -v quiet -show_streams -select_streams a media.mkv
    [STREAM]
    index=1
    codec_name=ac3
    codec_long_name=ATSC A/52A (AC-3)
    profile=unknown
    codec_type=audio
    codec_tag_string=[0][0][0][0]
    codec_tag=0x0000
    sample_fmt=fltp
    sample_rate=48000
    channels=2
    channel_layout=stereo
    bits_per_sample=0
    initial_padding=0
    id=N/A
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=1/1000
    start_pts=0
    start_time=0.000000
    duration_ts=N/A
    duration=N/A
    bit_rate=192000
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=N/A
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=1
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    DISPOSITION:timed_thumbnails=0
    DISPOSITION:captions=0
    DISPOSITION:descriptions=0
    DISPOSITION:metadata=0
    DISPOSITION:dependent=0
    DISPOSITION:still_image=0
    TAG:language=jpn
    TAG:title=Stereo
    TAG:BPS-eng=192000
    TAG:DURATION-eng=01:36:22.912000000
    TAG:NUMBER_OF_FRAMES-eng=180716
    TAG:NUMBER_OF_BYTES-eng=138789888
    TAG:SOURCE_ID-eng=0180BD
    TAG:_STATISTICS_WRITING_APP-eng=MakeMKV v1.17.5 linux(x64-release)
    TAG:_STATISTICS_WRITING_DATE_UTC-eng=2023-09-30 22:27:21
    TAG:_STATISTICS_TAGS-eng=BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    [/STREAM]

I would guess that the TAG fields are what you're editing with metadata calls in ffmpeg...so I gave it a shot. I don't think you can edit metadata fields in bulk, you have to make multiple calls. I tried to edit two at once and it set a single field to both values (using the standard colon-separated syntax that ff* tools like to use). So here's how I edited the metadata using ffmpeg (which originally took about 60 seconds, the second run took about 10 seconds):

Code:
bitmap@server:folder$ ffmpeg -y -i media.mkv -c copy -metadata:s:a:0 'language=eng' -metadata:s:a:0 'title=OPUS 5.1' "test.mkv"
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[out#0/matroska @ 0x560f44b98280] video:4226494kB audio:135537kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.068291%
frame=173315 fps=3019 q=-1.0 Lsize= 4365010kB time=01:36:22.88 bitrate=6183.5kbits/s speed= 101x

The problem here is that ffmpeg muxes the file as it changes the metadata. MKVToolnix doesn't, so it's the better tool for this job. I'm just less familiar with it. Here's the output from ffprobe after this operation:

Code:
bitmap@server:folder$ ffprobe -hide_banner -v quiet -show_streams -select_streams a -i test.mkv
[STREAM]
index=1
codec_name=ac3
codec_long_name=ATSC A/52A (AC-3)
profile=unknown
codec_type=audio
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
sample_fmt=fltp
sample_rate=48000
channels=2
channel_layout=stereo
bits_per_sample=0
initial_padding=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/1000
start_pts=0
start_time=0.000000
duration_ts=N/A
duration=N/A
bit_rate=192000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:language=eng
TAG:title=OPUS 5.1
TAG:_STATISTICS_TAGS-eng=BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
TAG:BPS-eng=192000
TAG:DURATION-eng=01:36:22.912000000
TAG:NUMBER_OF_FRAMES-eng=180716
TAG:NUMBER_OF_BYTES-eng=138789888
TAG:SOURCE_ID-eng=0180BD
TAG:_STATISTICS_WRITING_APP-eng=MakeMKV v1.17.5 linux(x64-release)
TAG:_STATISTICS_WRITING_DATE_UTC-eng=2023-09-30 22:27:21
TAG:DURATION=01:36:22.912000000
[/STREAM]

I would look at MKVToolnix, specifically mkvpropedit. Brief look seems like there's not a ton on audio track editing with tags, but I didn't do a deep dive. A quick search around might give you more examples to work from. The reason I have the flow above worked out is because it's easy to integrate into my scripting for automated encoding and it's all in the same ecosystem so I know I'm working with the same information (ffprobe will have the same info as ffmpeg to work with). The muxing time is irrelevant when you're already encoding or remuxing a file anyway...


RE: Possible to edit/custom Audio name ? (See picture) - kalemvar - 2023-10-06

Thanks for your reply and your advance explanation.

I'm a bit lost with those commands, can you explain a bit more on how this work ?

maybe MKVToolnix is a better option but I really don't know what flag to change, to make Jellyfin display - EAC-3 instead of "Dolby Digital+" and edit/remove "Stereo". Same goes to subtitle, the "Subrip" isn't really beautiful on the display.

Thanks for your time and clarification Smiling-face

kalemvar


RE: Possible to edit/custom Audio name ? (See picture) - kalemvar - 2023-10-07

If I follow this guide on the forum : https://forum.jellyfin.org/t-from-disc-to-drive-a-beginner-s-guide-to-preparing-your-media-for-jellyfin

I can probably achieve this without editing the codec ID

If I'm looking at those pictures :

Audio name says : English 5.1 DTS-HD Master Audio ES

   

and the result on this one with the exact same name without the codec and surround/stereo

   

That the goal I'm looking right now

Thanks guys