You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-d, --debug|\[\<level\>\]|Enables debug logging. Level is optional.<br/>Default of 1 (low).<br/>2 includes JSON and FFmpeg output.<br/>3 contains even more JSON output.
76
96
-b, --bitrate|\<bitrate\>|Sets the output quality in constant bits per second (CBR).<br/>Examples: 160k, 240k, 300000<br/>**Note:** May not be specified with `-v`, `-a`, or `-e`.
77
97
-v, --quality|\<quality\>|Sets the output variable bit rate (VBR).<br/>Specify a value between 0 and 9, with 0 being the highest quality.<br/>See the [FFmpeg MP3 Encoding Guide](https://trac.ffmpeg.org/wiki/Encode/MP3) for more details.<br/>**Note:** May not be specified with `-b`, `-a`, or `-e`.
78
98
-a, --advanced|\"\<options\>\"|Advanced ffmpeg options.<br/>The specified `options` replace all script defaults and are sent directly to ffmpeg.<br/>The `options` value must be enclosed in quotes.<br/>See [FFmpeg Options](https://ffmpeg.org/ffmpeg.html#Options) for details on valid options, and [Guidelines for high quality audio encoding](https://trac.ffmpeg.org/wiki/Encode/HighQualityAudio) for suggested usage.<br/>**Note:** Requires the `-e` option to also be specified. May not be specified with `-v` or `-b`.<br/>![warning] **WARNING:** You must specify an audio codec (by including a `-c:a <codec>` ffmpeg option) or the resulting file will contain no audio!<br/>![warning] **WARNING:** Invalid `options` could result in script failure!
@@ -81,7 +101,9 @@ Option|Argument|Description
81
101
-o, --output|\<directory\>|Converted audio file(s) are saved to `directory` instead of being located in the same directory as the source audio file.<br/>The path will be created if it does not exist.
82
102
-k, --keep-file| |Do not delete the source file or move it to the Lidarr Recycle bin.<br/>**Note:** This also disables importing the new files into Lidarr after conversion.
83
103
-r, --regex|'\<regex\>'|Sets the regular expression used to select input files.<br/>The `regex` value should be enclosed in single quotes and escaped properly.<br/>Defaults to `[.]flac$`.
104
+
-l, --log|\<log_file\>|The log filename<br/>Default of /config/log/flac2mp3.txt
84
105
-t, --tags|\<taglist\>|Comma separated list of metadata tags to apply automated corrections to.<br/>See [Metadata Corrections](./README.md#metadata-corrections) section.
106
+
-d, --debug|\[\<level\>\]|Enables debug logging. Level is optional.<br/>Default of 1 (low).<br/>2 includes JSON and FFmpeg output.<br/>3 contains even more JSON output.
85
107
--help| |Display help and exit.
86
108
--version| |Display version and exit.
87
109
@@ -159,7 +181,7 @@ Then put `/config/flac2mp3-custom.sh` in the **Path** field in place of `/usr/lo
159
181
### Environment Variable
160
182
The `flac2mp3.sh` script also allows the use of arguments provided by the `FLAC2MP3_ARGS` environment variable. This allows advanced use cases without having to provide a custom script.
161
183
162
-
For example, the following value would convert any .mp3 to Opus:
184
+
For example, the following value in your `docker run` command would convert any .mp3 to Opus:
@@ -186,7 +208,7 @@ Using this function, you can easily process all of your audio files in any subdi
186
208
187
209
#### Script Execution Differences in Batch Mode
188
210
Because the script is not called from within Lidarr, expect the following behavior while in Batch Mode:
189
-
* *The file name must be specified on the command line*<br/>(The `-f` option places the script in Batch Mode)
211
+
* *The filename must be specified on the command line*<br/>(The `-f` option places the script in Batch Mode)
190
212
* *Lidarr APIs are not called and its database is not updated.*<br/>This may require a manual import of converted music files or an artist rescan.
191
213
* *Original audio files are deleted.*<br/>The Recycle Bin function is not available. (Modifiable using the `-k` option.)
192
214
@@ -197,22 +219,23 @@ find /music/ -type f -name "*.flac" | while read file; do /usr/local/bin/flac2mp
197
219
```
198
220
199
221
### Logs
200
-
A log file is created for the script activity called:
222
+
By default, a log file is created for the script activity called:
201
223
202
224
`/config/logs/flac2mp3.txt`
203
225
204
-
This log can be downloaded from Lidarr under *System* > *Log Files*
226
+
This log can be downloaded from Lidarr under *System* > *Log Files*. The log filename can be modified with the `--log` command-line option.
205
227
206
228
Log rotation is performed, with 5 log files of 1MB each kept, matching Lidarr's log retention.
207
229
>![danger] **NOTE:** If debug logging is enabled with a level above 1, the log file can grow very large very quickly and is much more likely to be rotated. *Do not leave high-level debug logging enabled permanently.*
208
230
209
231
#### Metadata Corrections
210
-
This feature is not meant for general purpose use. It is only documented for completeness.
232
+
This feature is not meant for general purpose use. It is only documented here for completeness.
211
233
212
234
List of supported tags and metadata corrections that are applied:
213
235
214
236
|Tag|Original|Correction
215
237
|---|---|---
238
+
|title|Parenthesis for live\|remix, etc. "()"|Square brackets "\[]"
216
239
|disc|1|1/1
217
240
|genre|/Pop/|"Pop"
218
241
| |/Indie/|"Alternative & Indie"
@@ -221,7 +244,16 @@ List of supported tags and metadata corrections that are applied:
221
244
| |/Punk\|Alternative/|"Alternative & Punk"
222
245
| |/Rock/|"Rock"
223
246
224
-
## Credits
247
+
# Uninstall
248
+
To completely remove the mod:
249
+
1. Delete the custom script from Lidarr's *Settings* > *Connect* screen that you created in the [Installation](./README.md#installation) section above.
250
+
2. Stop and delete the Lidarr container.
251
+
3. Exclude the **DOCKER_MODS** environment variable from your `compose.yaml` file or the `docker run` command when re-creating the Lidarr container.
0 commit comments