Skip to content

A modified version of a tool I build for Radio Tux. It simply tags ogg, MP3 and MP4 files. This version is for Tim Pritlove

Notifications You must be signed in to change notification settings

timpritlove/prittag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

prittag

Prittag is a modified version of a tool I build for Radio Tux. I created this version to serve the request made by Tim Pritlove in the episode 01 of the podcast "Der Lautsprecher" for a tool which could help him with automating his podcasts generation, so he easily could offer multiple audio formats without more work.

It writes the following tags to multiple Ogg, MP3 or MP4 files:

  • album
  • album artist
  • artist
  • comment
  • composer
  • date
  • disk
  • genre
  • lyrics
  • number of disks
  • number of tracks
  • title
  • track

Additionally it can add an albumart (cover) to them and use mp4chaps to embed chapters.

The name was chosen according to the amazing tool prittorrent.

Dependencies

Installation

Download it to a place of your choice and install all dependencies.

Usage

Prittag expects a XML file and at least one audio file as arguments. The XML file tells prittag which tags it should write into the files and is expected to look like example.xml. By default prittag will perform a white space stripping on every tag and every line of multi line tags. You can enable and disable this as well globally as for every single tag by adding the option "strip-space" and setting it either to "yes" or "no". For example:

<?xml version="1.0" encoding="UTF-8" ?>
<tags strip-space="no">
    <title>FooBar</title>
    <lyrics strip-space="yes">
    Foo
    Bar
    </lyrics>
</tags>

If you want prittag to use mp4chaps to embed chapters, add a chapters section into the tag like this:

<?xml version="1.0" encoding="UTF-8" ?>
<tags>
    <title>FooBar</title>
    <chapters>
        <chapter>
            <time>00:00:00.000</time>
            <title>Test Chapter</title>
        </chapter>
    </chapters>
</tags>

Call it from the command line like this: "./prittag.py foo.xml bar.mp3 bar.oga bar.m4a"

About

A modified version of a tool I build for Radio Tux. It simply tags ogg, MP3 and MP4 files. This version is for Tim Pritlove

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages