Autor Beitrag
sandreas
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Di 30.08.22 07:30 
Hallo,

um etwas mehr Feedback zu erhalten, möchte ich hier mal mein aktuelles Projekt vorstellen.

tone ist ein cross platform audio tagger als Kommandozeilenprogramm, geschrieben in C#. Hauptsächlich ist es für Hörbücher gedacht, kann aber auch für die meisten anderen Audio-Formate verwendet werden.

Das Programm kommt als einzelne Datei ohne DLL oder Installer, es kann also sehr leicht ausprobiert werden.

Sourcecode und Download auf github. Da es sich um ein Cross-Plattform-Tool handelt, poste ich hier mal nur die Windows und Linux x64 links, weitere Platformen (raspberry, docker, etc.) sind aber auch verfügbar:

Features:

  • Ausgabe und Abändern von Metadaten für die meisten Audio-Formate (mp3, flac, m4a, etc.)
  • Sehr umfangreiche Möglichkeiten für Tag-Felder (Standardfelder: Album, Titel, Artist, etc., Komplexere: Kapitelmarken, Cover, etc. und Benutzerdefinierte Felder)
  • Pfadbasiertes Tagging über Templates (z.B. audiobooks/%g/%a/%s/%p - %n.m4b)
  • Scripting-Engine, womit man komplett eigene Tagger inkl. Internetzugriff in JavaScript schreiben kann


Damit man sich es besser vorstellen kann, hier mal ein paar Beispiele:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
# show all tags for single file (input.mp3)
tone dump input.mp3

# show album only via json format and JSONPath query
tone dump "input.mp3" --format json --query "$.meta.album"

# change title tag
tone tag input.mp3 --meta-title "a title"

# change a custom field, auto-import covers nearby and show debug info on error (--dry-run simulation)
tone tag --debug --auto-import=covers --meta-additional-field "©st3=testing" input.m4b --dry-run

# recursively set tags genre, artist, series, part and title by path pattern (--dry-run simulation)
tone tag --auto-import=covers --auto-import=chapters --path-pattern="audiobooks/%g/%a/%s/%p - %n.m4b" --path-pattern="audiobooks/%g/%a/%z/%n.m4b" audiobooks/ --dry-run


Würde mich sehr über Feedback und Kritik zum Sourcecode freuen.

Fragen beantworte ich natürlich auch gerne.