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
feat: add -i option for track index selection (issue #25)
- Add -i <n> option to specify which audio track to process in multi-track files
- Default to track index 0 (first audio track)
- Useful for MP4/M4V files with multiple audio tracks (e.g., different languages)
- Add aacgain to acknowledgements in README
- Bump version to 1.1.0
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,10 @@ mp3rgain -r *.mp3 *.m4a
123
123
124
124
# Recursive directory processing includes M4A files
125
125
mp3rgain -R /path/to/music
126
+
127
+
# Process specific audio track in multi-track files (e.g., video files)
128
+
mp3rgain -i 1 movie.m4v # Process second audio track
129
+
mp3rgain -i 0 song.m4a # Process first track (default)
126
130
```
127
131
128
132
Note: For M4A files, mp3rgain writes ReplayGain tags (iTunes freeform format) but does not modify the audio data, as AAC doesn't have a lossless gain adjustment mechanism like MP3's `global_gain` field.
@@ -255,6 +259,7 @@ Example JSON output:
255
259
|`-r`| Apply Track gain (ReplayGain analysis) |
256
260
|`-a`| Apply Album gain (ReplayGain analysis) |
257
261
|`-e`| Skip album analysis (even with multiple files) |
262
+
|`-i <n>`| Specify which audio track to process (default: 0) |
258
263
|`-u`| Undo gain changes (restore from APEv2 tag) |
0 commit comments