Files
copyparty/bin/mtag/README.md

54 lines
2.3 KiB
Markdown
Raw Normal View History

2021-03-17 01:37:59 +01:00
standalone programs which take an audio file as argument
2021-09-16 00:06:19 +02:00
**NOTE:** these all require `-e2ts` to be functional, meaning you need to do at least one of these: `apt install ffmpeg` or `pip3 install mutagen`
2021-03-17 01:37:59 +01:00
some of these rely on libraries which are not MIT-compatible
* [audio-bpm.py](./audio-bpm.py) detects the BPM of music using the BeatRoot Vamp Plugin; imports GPL2
* [audio-key.py](./audio-key.py) detects the melodic key of music using the Mixxx fork of keyfinder; imports GPL3
2021-11-20 17:58:37 +01:00
these invoke standalone programs which are GPL or similar, so is legally fine for most purposes:
2021-08-06 00:49:42 +02:00
* [media-hash.py](./media-hash.py) generates checksums for audio and video streams; uses FFmpeg (LGPL or GPL)
2021-11-20 17:58:37 +01:00
* [image-noexif.py](./image-noexif.py) removes exif tags from images; uses exiftool (GPLv1 or artistic-license)
2021-03-17 01:42:59 +01:00
2021-11-20 17:58:37 +01:00
these do not have any problematic dependencies at all:
2021-09-14 22:44:56 +02:00
2021-10-03 19:35:20 +02:00
* [cksum.py](./cksum.py) computes various checksums
2021-09-14 22:44:56 +02:00
* [exe.py](./exe.py) grabs metadata from .exe and .dll files (example for retrieving multiple tags with one parser)
* [wget.py](./wget.py) lets you download files by POSTing URLs to copyparty
2021-03-21 20:20:11 +01:00
# dependencies
2021-03-19 00:08:31 +01:00
run [`install-deps.sh`](install-deps.sh) to build/install most dependencies required by these programs (supports windows/linux/macos)
2021-03-21 17:56:05 +01:00
2021-03-21 20:20:11 +01:00
*alternatively* (or preferably) use packages from your distro instead, then you'll need at least these:
* from distro: `numpy vamp-plugin-sdk beatroot-vamp mixxx-keyfinder ffmpeg`
* from pypy: `keyfinder vamp`
2021-03-21 17:56:05 +01:00
# usage from copyparty
2021-08-06 00:49:42 +02:00
`copyparty -e2dsa -e2ts` followed by any combination of these:
* `-mtp key=f,audio-key.py`
* `-mtp .bpm=f,audio-bpm.py`
* `-mtp ahash,vhash=f,media-hash.py`
2021-03-21 17:56:05 +01:00
* `f,` makes the detected value replace any existing values
* the `.` in `.bpm` indicates numeric value
* assumes the python files are in the folder you're launching copyparty from, replace the filename with a relative/absolute path if that's not the case
* `mtp` modules will not run if a file has existing tags in the db, so clear out the tags with `-e2tsr` the first time you launch with new `mtp` options
2022-08-03 22:20:28 +02:00
## usage with volflags
2021-03-21 17:56:05 +01:00
instead of affecting all volumes, you can set the options for just one volume like so:
2021-08-06 00:49:42 +02:00
`copyparty -v /mnt/nas/music:/music:r:c,e2dsa:c,e2ts` immediately followed by any combination of these:
* `:c,mtp=key=f,audio-key.py`
* `:c,mtp=.bpm=f,audio-bpm.py`
* `:c,mtp=ahash,vhash=f,media-hash.py`