tageditor/README.md

68 lines
3.0 KiB
Markdown
Raw Normal View History

2015-08-26 20:11:46 +02:00
# Tag Editor
2015-08-29 22:19:59 +02:00
A tag editor with Qt GUI and command-line interface. Supports MP4 (iTunes), ID3, Vorbis and Matroska.
2015-05-19 22:59:28 +02:00
2015-06-08 22:06:46 +02:00
## Supported formats
The tag editor can read and write the following tag formats:
- iTunes-style MP4 tags (MP4-DASH is supported)
- ID3v1 and ID3v2 tags
2015-08-26 20:11:46 +02:00
- Vorbis comments (cover art via "METADATA_BLOCK_PICTURE" is supported)
2015-06-08 22:06:46 +02:00
- Matroska/WebM tags and attachments
2015-08-10 01:19:40 +02:00
The tag editor can also display technical information such as the ID, format, language, bitrate,
duration, size, timestamps, sampling frequency, FPS and other information of the tracks.
2015-05-19 22:59:28 +02:00
2015-08-10 01:19:40 +02:00
It also allows to inspect and validate the element structure of MP4 and Matroska files.
2015-06-21 22:51:25 +02:00
## Usage
2015-08-10 01:19:40 +02:00
The Tageditor has a GUI (Qt 5) and a command line interface.
2015-06-21 22:51:25 +02:00
### GUI
The GUI should be self-explaining. Just open a file, edit the tags and save the changings.
You can set the behaviour of the editor to keep previous values, so you don't have to enter
information like album name or artist for all files in an album again and again.
Checkout the settings dialog. You can customize which fields the editor shows,
2015-08-26 20:11:46 +02:00
change some settings regarding the tag processing (ID3 version, preferred character set, ...)
and more. It also possible to set a directory for temporary files.
2015-06-21 22:51:25 +02:00
There is also a tool to rename files using the tag information stored in the files. The new name is generated
by a small JavaScript which can be customized. An example script is provided. Before any changes are made,
you can checkout a preview with the generated file names.
### CLI
2015-08-10 01:19:40 +02:00
Usage:
```
tageditor <operation> [options]
2015-08-10 01:21:09 +02:00
```
2015-08-10 01:19:40 +02:00
Checkout the available operations and options with --help.
Here are Bash examples which illustrate getting and setting tag information:
2015-06-21 22:51:25 +02:00
```
tageditor get title album artist --files /some/dir/*.m4a
```
Displays title, album and artist of all *.m4a files in the specified directory.
```
2015-07-07 00:46:20 +02:00
tageditor set "title=Title of "{1st,2nd,3rd}" file" "title=Title of "{4..16}"th file" \
"album=The Album" "artist=The Artist" \
cover=/path/to/image track={1..16}/16 --files /some/dir/*.m4a
2015-06-21 22:51:25 +02:00
```
Sets title, album, artist, cover and track number of all *.m4a files in the specified directory.
The first file will get the name "Title of 1st file", the second file will get the name "Title of 2nd file" and so on.
The 16th and following files will all get the name "Title of the 16th file". The same scheme is used for the track numbers.
All files will get the album name "The Album", the artist "The Artist" and the cover image from the file "/path/to/image".
2015-08-10 01:19:40 +02:00
## Build instructions
2015-08-26 20:11:46 +02:00
The application depends on c++utilities, qtutilities and tagparser and is built in the same way as these libaries.
2015-08-10 01:19:40 +02:00
2015-08-26 20:11:46 +02:00
The following Qt 5 modules are requried: core gui script widgets webenginewidgets/webkitwidgets*
2015-08-26 21:14:50 +02:00
* If webenginewidgets is installed on the system, the editor will link against it. To force usage of webkitwidgets
2015-08-26 20:11:46 +02:00
add "CONFIG+=forcewebkit" to the qmake arguments.
## TODO
- Use padding to prevent rewriting the entire file to save tags.
- Support more tag formats (EXIF, PDF metadata, ...).