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

[Question] CLI tag adding (track/disk total, engineer, producer) to audio files #118

Open
incogthedev opened this issue Sep 22, 2024 · 7 comments

Comments

@incogthedev
Copy link

incogthedev commented Sep 22, 2024

Hello,

I was looking to see if there was an option to add track/disc total via CLI at all?

Also, do the engineers/preformer/producer tags not work in audio files?

@incogthedev incogthedev changed the title CLI track/disc total? CLI tag adding Sep 22, 2024
@incogthedev incogthedev changed the title CLI tag adding [Question] CLI tag adding (track/disk total, engineer, producer) to audio files Sep 22, 2024
@Martchus
Copy link
Owner

What's supported depends on the container format and not on whether an audio track is present or not.

Note that most container formats use a combined field for the track/disc position so the total is specified as mentioned in the README example. For Matroska - which is a notable exception - you'll need to specify the totals as separate fields.

Maybe I should add a way to probe what fields are supported in the CLI. For now you can simply use the GUI for that. If a field doesn't show up in the GUI editor despite being configured in the settings dialog it is not supported by the file format.

@Martchus
Copy link
Owner

Since this is probably about Matroska which is unfortunately quite unconventional and thus confusing. So I added a section about Matroska to the README file: https://github.com/Martchus/tageditor?tab=readme-ov-file#matroska-related-remarks

@incogthedev
Copy link
Author

It's actually about audio files like FLAC/MP3/OGG!

@Martchus
Copy link
Owner

Martchus commented Sep 23, 2024

Ok, then your question is answered by the examples that were already in the README, just specify e.g. track=5/15 disk=1/2.

@incogthedev
Copy link
Author

Ok, then your question is answered by the examples that were already in the README, just specify e.g. track=5/15 disk=1/2.

Aren't they usually seperate fields, though?

@Martchus
Copy link
Owner

Martchus commented Oct 8, 2024

In ID3v2 and MP4 tags there is one field for the track position that includes both - the track number and total. The same counts for the disk.

In Matroska those are separate fields.

In the underspecified Vorbis comments it annoyingly depends on the convention. This Tag Editor uses one field to be in line with the most popular other tag formats. However, the Tag Editor is still able to read track/disk/part from separate fields. The underlying library would actually be able to control that when writing but I think I have never exposed this functionality in the CLI or GUI.

@Martchus
Copy link
Owner

Martchus commented Oct 8, 2024

Oh, looks like I actually did expose this setting. So you can use --preserve-total-fields with the set operation of the CLI and there's also a GUI setting. To actually set the totals as individual fields you proably have to resort to using native field IDs, see the "Sets custom fields" example in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants