Skip to content

Commit b05f459

Browse files
committed
update readme, more examples
1 parent ea2815a commit b05f459

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- Offering a flexible **Command Line Interface**, a **Web Interface**, and a **Graphical User Interface (GUI)**
1818
- Control output quality and video framerate for the conversion
1919
- Automatically monitor a **"dropzone" directory** for new files and process them as they are dropped
20-
- Fast batch conversion with **parallel, multi-threaded processing** and a `--workers` flag to control concurrency
20+
- Fast batch conversion with configurable **parallel processing** for audio and video conversions
2121

2222
## Setup
2323
1. **Clone/Download**:
@@ -206,11 +206,20 @@ Omitting the `-a`/`--across` parameter will execute merges or concatenations sep
206206

207207
#### Parallel Processing
208208
- Per-file conversions (e.g., audio-to-audio, movie-to-movie, gif-to-video) are processed in parallel.
209-
- Default workers scale with your CPU. Override with `--workers N` or environment variable `A2A_MAX_WORKERS`.
210-
- Example:
209+
- Override default (`1` worker) by setting `--workers N` where `N` can be any integer from `1` to `cpu_count - 1`.
210+
211+
Directory with many audio files:
211212
```bash
212213
python any_to_any.py -i /path/to/folder -f mp3 --workers 4
213214
```
215+
Explicit multiple files:
216+
```bash
217+
python any_to_any.py -i /path/to/a.wav /path/to/b.flac /path/to/c.ogg -f mp3 --workers 4 -o /path/to/output_dir
218+
```
219+
Recursive scan (include subdirectories):
220+
```bash
221+
python any_to_any.py -i /path/to/input_dir -f mp3 --workers 4 --recursive
222+
```
214223

215224
## Supported Formats
216225
**Audio:** MP2, MP3, FLAC, AAC, AC3, DTS, OGG, OGA, WMA, WAV, M4A, AIFF, WEBA, MKA, WV, CAF, TTA, M4B, EAC3, SPX, AU, OPUS, M3U8, W64, MLP, ADTS, SBC, THD<br><br>

0 commit comments

Comments
 (0)