tageditor icon indicating copy to clipboard operation
tageditor copied to clipboard

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

Open incogthedev opened this issue 1 year ago • 7 comments

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 avatar Sep 22 '24 03:09 incogthedev

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 avatar Sep 22 '24 08:09 Martchus

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

Martchus avatar Sep 22 '24 21:09 Martchus

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

incogthedev avatar Sep 23 '24 02:09 incogthedev

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.

Martchus avatar Sep 23 '24 08:09 Martchus

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?

incogthedev avatar Oct 08 '24 22:10 incogthedev

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 avatar Oct 08 '24 22:10 Martchus

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.

Martchus avatar Oct 08 '24 22:10 Martchus

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 07 '24 23:12 stale[bot]