| 1 | opustags |
| 2 | ======== |
| 3 | |
| 4 | View and edit Ogg Opus comments. |
| 5 | |
| 6 | opustags supports the following features: |
| 7 | |
| 8 | - interactive editing using your preferred text editor, |
| 9 | - batch editing with command-line flags, |
| 10 | - tags exporting and importing through text files. |
| 11 | |
| 12 | opustags is designed to be fast and as conservative as possible, to the point that if you edit tags |
| 13 | then edit them again to their previous values, you should get a bit-perfect copy of the original |
| 14 | file. No under-the-cover operation like writing "edited with opustags" or timestamp tagging will |
| 15 | ever be performed. |
| 16 | |
| 17 | opustags is tag-agnostic: you can write arbitrary key-value tags, and none of them will be treated |
| 18 | specially. After all, common tags like TITLE or ARTIST are nothing more than conventions. |
| 19 | |
| 20 | The project’s homepage is located at <https://github.com/fmang/opustags>. |
| 21 | |
| 22 | Requirements |
| 23 | ------------ |
| 24 | |
| 25 | * a POSIX-compliant system, |
| 26 | * a C++20 compiler, |
| 27 | * CMake ≥ 3.11, |
| 28 | * libogg 1.3.3. |
| 29 | |
| 30 | The version numbers are indicative, and it's very likely opustags will build and work fine with |
| 31 | other versions too, as CMake and libogg are quite mature. |
| 32 | |
| 33 | Installing |
| 34 | ---------- |
| 35 | |
| 36 | opustags is a commonplace CMake project. |
| 37 | |
| 38 | Here's how to install it in your `.local`, under your home: |
| 39 | |
| 40 | mkdir build |
| 41 | cd build |
| 42 | cmake -DCMAKE_INSTALL_PREFIX=~/.local .. |
| 43 | make |
| 44 | make install |
| 45 | |
| 46 | Note that you don't need to install opustags in order to run it, as the executable is standalone. |
| 47 | |
| 48 | Documentation |
| 49 | ------------- |
| 50 | |
| 51 | Usage: opustags --help |
| 52 | opustags [OPTIONS] FILE |
| 53 | opustags OPTIONS -i FILE... |
| 54 | opustags OPTIONS FILE -o FILE |
| 55 | |
| 56 | Options: |
| 57 | -h, --help print this help |
| 58 | -o, --output FILE specify the output file |
| 59 | -i, --in-place overwrite the input files |
| 60 | -y, --overwrite overwrite the output file if it already exists |
| 61 | -a, --add FIELD=VALUE add a comment |
| 62 | -d, --delete FIELD[=VALUE] delete previously existing comments |
| 63 | -D, --delete-all delete all the previously existing comments |
| 64 | -s, --set FIELD=VALUE replace a comment |
| 65 | -S, --set-all import comments from standard input |
| 66 | -e, --edit edit tags interactively in VISUAL/EDITOR |
| 67 | --output-cover FILE extract and save the cover art, if any |
| 68 | --set-cover FILE sets the cover art |
| 69 | --vendor print the vendor string |
| 70 | --set-vendor VALUE set the vendor string |
| 71 | --raw disable encoding conversion |
| 72 | -z delimit tags with NUL |
| 73 | |
| 74 | See the man page, `opustags.1`, for extensive documentation. |