TonieToolbox 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- TonieToolbox/__init__.py +1 -1
- TonieToolbox/__main__.py +23 -23
- {tonietoolbox-0.2.0.dist-info → tonietoolbox-0.2.1.dist-info}/METADATA +40 -26
- {tonietoolbox-0.2.0.dist-info → tonietoolbox-0.2.1.dist-info}/RECORD +8 -8
- {tonietoolbox-0.2.0.dist-info → tonietoolbox-0.2.1.dist-info}/WHEEL +0 -0
- {tonietoolbox-0.2.0.dist-info → tonietoolbox-0.2.1.dist-info}/entry_points.txt +0 -0
- {tonietoolbox-0.2.0.dist-info → tonietoolbox-0.2.1.dist-info}/licenses/LICENSE.md +0 -0
- {tonietoolbox-0.2.0.dist-info → tonietoolbox-0.2.1.dist-info}/top_level.txt +0 -0
TonieToolbox/__init__.py
CHANGED
TonieToolbox/__main__.py
CHANGED
@@ -21,50 +21,50 @@ from .recursive_processor import process_recursive_folders
|
|
21
21
|
def main():
|
22
22
|
"""Entry point for the TonieToolbox application."""
|
23
23
|
parser = argparse.ArgumentParser(description='Create Tonie compatible file from Ogg opus file(s).')
|
24
|
-
parser.add_argument('--version', action='version', version=f'TonieToolbox {__version__}',
|
24
|
+
parser.add_argument('-v', '--version', action='version', version=f'TonieToolbox {__version__}',
|
25
25
|
help='show program version and exit')
|
26
26
|
parser.add_argument('input_filename', metavar='SOURCE', type=str,
|
27
27
|
help='input file or directory or a file list (.lst)')
|
28
28
|
parser.add_argument('output_filename', metavar='TARGET', nargs='?', type=str,
|
29
29
|
help='the output file name (default: ---ID---)')
|
30
|
-
parser.add_argument('--
|
30
|
+
parser.add_argument('-t', '--timestamp', dest='user_timestamp', metavar='TIMESTAMP', action='store',
|
31
31
|
help='set custom timestamp / bitstream serial')
|
32
32
|
|
33
|
-
parser.add_argument('--ffmpeg', help='specify location of ffmpeg', default=None)
|
34
|
-
parser.add_argument('--opusenc', help='specify location of opusenc', default=None)
|
35
|
-
parser.add_argument('--bitrate', type=int, help='set encoding bitrate in kbps (default: 96)', default=96)
|
36
|
-
parser.add_argument('--cbr', action='store_true', help='encode in cbr mode')
|
37
|
-
parser.add_argument('--append-tonie-tag', metavar='TAG', action='store',
|
33
|
+
parser.add_argument('-f', '--ffmpeg', help='specify location of ffmpeg', default=None)
|
34
|
+
parser.add_argument('-o', '--opusenc', help='specify location of opusenc', default=None)
|
35
|
+
parser.add_argument('-b', '--bitrate', type=int, help='set encoding bitrate in kbps (default: 96)', default=96)
|
36
|
+
parser.add_argument('-c', '--cbr', action='store_true', help='encode in cbr mode')
|
37
|
+
parser.add_argument('-a', '--append-tonie-tag', metavar='TAG', action='store',
|
38
38
|
help='append [TAG] to filename (must be an 8-character hex value)')
|
39
|
-
parser.add_argument('--no-tonie-header', action='store_true', help='do not write Tonie header')
|
40
|
-
parser.add_argument('--info', action='store_true', help='Check and display info about Tonie file')
|
41
|
-
parser.add_argument('--split', action='store_true', help='Split Tonie file into opus tracks')
|
42
|
-
parser.add_argument('--recursive', action='store_true', help='Process folders recursively')
|
43
|
-
parser.add_argument('--output-to-source', action='store_true',
|
39
|
+
parser.add_argument('-n', '--no-tonie-header', action='store_true', help='do not write Tonie header')
|
40
|
+
parser.add_argument('-i', '--info', action='store_true', help='Check and display info about Tonie file')
|
41
|
+
parser.add_argument('-s', '--split', action='store_true', help='Split Tonie file into opus tracks')
|
42
|
+
parser.add_argument('-r', '--recursive', action='store_true', help='Process folders recursively')
|
43
|
+
parser.add_argument('-O', '--output-to-source', action='store_true',
|
44
44
|
help='Save output files in the source directory instead of output directory')
|
45
|
-
parser.add_argument('--auto-download', action='store_true', help='Automatically download FFmpeg and opusenc if needed')
|
46
|
-
parser.add_argument('--keep-temp', action='store_true',
|
45
|
+
parser.add_argument('-A', '--auto-download', action='store_true', help='Automatically download FFmpeg and opusenc if needed')
|
46
|
+
parser.add_argument('-k', '--keep-temp', action='store_true',
|
47
47
|
help='Keep temporary opus files in a temp folder for testing')
|
48
|
-
parser.add_argument('--compare', action='store', metavar='FILE2',
|
48
|
+
parser.add_argument('-C', '--compare', action='store', metavar='FILE2',
|
49
49
|
help='Compare input file with another .taf file for debugging')
|
50
|
-
parser.add_argument('--detailed-compare', action='store_true',
|
50
|
+
parser.add_argument('-D', '--detailed-compare', action='store_true',
|
51
51
|
help='Show detailed OGG page differences when comparing files')
|
52
52
|
|
53
53
|
# Version check options
|
54
54
|
version_group = parser.add_argument_group('Version Check Options')
|
55
|
-
version_group.add_argument('--skip-update-check', action='store_true',
|
55
|
+
version_group.add_argument('-S', '--skip-update-check', action='store_true',
|
56
56
|
help='Skip checking for updates')
|
57
|
-
version_group.add_argument('--force-refresh-cache', action='store_true',
|
57
|
+
version_group.add_argument('-F', '--force-refresh-cache', action='store_true',
|
58
58
|
help='Force refresh of update information from PyPI')
|
59
|
-
version_group.add_argument('--clear-version-cache', action='store_true',
|
59
|
+
version_group.add_argument('-X', '--clear-version-cache', action='store_true',
|
60
60
|
help='Clear cached version information')
|
61
61
|
|
62
62
|
log_group = parser.add_argument_group('Logging Options')
|
63
63
|
log_level_group = log_group.add_mutually_exclusive_group()
|
64
|
-
log_level_group.add_argument('--debug', action='store_true', help='Enable debug logging')
|
65
|
-
log_level_group.add_argument('--trace', action='store_true', help='Enable trace logging (very verbose)')
|
66
|
-
log_level_group.add_argument('--quiet', action='store_true', help='Show only warnings and errors')
|
67
|
-
log_level_group.add_argument('--silent', action='store_true', help='Show only errors')
|
64
|
+
log_level_group.add_argument('-d', '--debug', action='store_true', help='Enable debug logging')
|
65
|
+
log_level_group.add_argument('-T', '--trace', action='store_true', help='Enable trace logging (very verbose)')
|
66
|
+
log_level_group.add_argument('-q', '--quiet', action='store_true', help='Show only warnings and errors')
|
67
|
+
log_level_group.add_argument('-Q', '--silent', action='store_true', help='Show only errors')
|
68
68
|
|
69
69
|
args = parser.parse_args()
|
70
70
|
if args.trace:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: TonieToolbox
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.1
|
4
4
|
Summary: Convert audio files to Tonie box compatible format
|
5
5
|
Home-page: https://github.com/Quentendo64/TonieToolbox
|
6
6
|
Author: Quentendo64
|
@@ -159,15 +159,14 @@ tonietoolbox --recursive --output-to-source "Music/Albums"
|
|
159
159
|
Run the following command to see all available options:
|
160
160
|
|
161
161
|
```
|
162
|
-
tonietoolbox
|
162
|
+
tonietoolbox -h
|
163
163
|
```
|
164
164
|
|
165
165
|
Output:
|
166
166
|
```
|
167
|
-
usage: TonieToolbox.py [-h] [
|
168
|
-
[
|
169
|
-
[
|
170
|
-
[--compare FILE2] [--detailed-compare] [--debug] [--trace] [--quiet] [--silent]
|
167
|
+
usage: TonieToolbox.py [-h] [-v] [-t TIMESTAMP] [-f FFMPEG] [-o OPUSENC]
|
168
|
+
[-b BITRATE] [-c] [-a TAG] [-n] [-i] [-s] [-r] [-O]
|
169
|
+
[-A] [-k] [-C FILE2] [-D] [-d] [-T] [-q] [-Q]
|
171
170
|
SOURCE [TARGET]
|
172
171
|
|
173
172
|
Create Tonie compatible file from Ogg opus file(s).
|
@@ -178,25 +177,40 @@ positional arguments:
|
|
178
177
|
|
179
178
|
optional arguments:
|
180
179
|
-h, --help show this help message and exit
|
181
|
-
--
|
182
|
-
--
|
183
|
-
|
184
|
-
--
|
185
|
-
--
|
186
|
-
|
187
|
-
|
188
|
-
--
|
189
|
-
|
190
|
-
--
|
191
|
-
|
192
|
-
--
|
193
|
-
|
180
|
+
-v, --version show program version and exit
|
181
|
+
-t, --timestamp TIMESTAMP
|
182
|
+
set custom timestamp / bitstream serial / reference .taf file
|
183
|
+
-f, --ffmpeg FFMPEG specify location of ffmpeg
|
184
|
+
-o, --opusenc OPUSENC specify location of opusenc
|
185
|
+
-b, --bitrate BITRATE set encoding bitrate in kbps (default: 96)
|
186
|
+
-c, --cbr encode in cbr mode
|
187
|
+
-a, --append-tonie-tag TAG
|
188
|
+
append [TAG] to filename (must be an 8-character hex value)
|
189
|
+
-n, --no-tonie-header do not write Tonie header
|
190
|
+
-i, --info Check and display info about Tonie file
|
191
|
+
-s, --split Split Tonie file into opus tracks
|
192
|
+
-r, --recursive Process folders recursively
|
193
|
+
-O, --output-to-source
|
194
|
+
Save output files in the source directory instead of output directory
|
195
|
+
-A, --auto-download Automatically download FFmpeg and opusenc if needed
|
196
|
+
-k, --keep-temp Keep temporary opus files in a temp folder for testing
|
197
|
+
-C, --compare FILE2 Compare input file with another .taf file for debugging
|
198
|
+
-D, --detailed-compare
|
199
|
+
Show detailed OGG page differences when comparing files
|
200
|
+
|
201
|
+
Version Check Options:
|
202
|
+
-S, --skip-update-check
|
203
|
+
Skip checking for updates
|
204
|
+
-F, --force-refresh-cache
|
205
|
+
Force refresh of update information from PyPI
|
206
|
+
-X, --clear-version-cache
|
207
|
+
Clear cached version information
|
194
208
|
|
195
209
|
Logging Options:
|
196
|
-
--debug
|
197
|
-
--trace
|
198
|
-
--quiet
|
199
|
-
--silent
|
210
|
+
-d, --debug Enable debug logging
|
211
|
+
-T, --trace Enable trace logging (very verbose)
|
212
|
+
-q, --quiet Show only warnings and errors
|
213
|
+
-Q, --silent Show only errors
|
200
214
|
```
|
201
215
|
|
202
216
|
### Common Usage Examples
|
@@ -230,9 +244,9 @@ tonietoolbox file1.taf --compare file2.taf --detailed-compare
|
|
230
244
|
#### Custom timestamp options:
|
231
245
|
|
232
246
|
```
|
233
|
-
tonietoolbox input.mp3 --
|
234
|
-
tonietoolbox input.mp3 --
|
235
|
-
tonietoolbox input.mp3 --
|
247
|
+
tonietoolbox input.mp3 --timestamp 1745078762 # UNIX Timestamp
|
248
|
+
tonietoolbox input.mp3 --timestamp 0x6803C9EA # Bitstream time
|
249
|
+
tonietoolbox input.mp3 --timestamp ./reference.taf # Reference TAF for extraction
|
236
250
|
```
|
237
251
|
|
238
252
|
#### Set custom bitrate:
|
@@ -1,5 +1,5 @@
|
|
1
|
-
TonieToolbox/__init__.py,sha256=
|
2
|
-
TonieToolbox/__main__.py,sha256=
|
1
|
+
TonieToolbox/__init__.py,sha256=141g35CQjQQB9-oCGkOKQkDV9GWkssN0IhK1vh1FBoc,96
|
2
|
+
TonieToolbox/__main__.py,sha256=KE5x6KMLQZGd4nwjk71AmlxMZOgnN-lXLBNDi6XkHJc,10917
|
3
3
|
TonieToolbox/audio_conversion.py,sha256=ra72qsE8j2GEP_4kqDT9m6aKlnnREZhZAlpf7y83pA0,11202
|
4
4
|
TonieToolbox/constants.py,sha256=QQWQpnCI65GByLlXLOkt2n8nALLu4m6BWp0zuhI3M04,2021
|
5
5
|
TonieToolbox/dependency_manager.py,sha256=fWtYp_UQDKrgIKcOyy95w7Grk_wYx5Fadyg8ulpb7nE,23451
|
@@ -13,9 +13,9 @@ TonieToolbox/tonie_file.py,sha256=nIS4qhpBKIyPvTU39yYljRidpY6cz78halXlz3HJy9w,15
|
|
13
13
|
TonieToolbox/tonie_header.proto,sha256=WaWfwO4VrwGtscK2ujfDRKtpeBpaVPoZhI8iMmR-C0U,202
|
14
14
|
TonieToolbox/tonie_header_pb2.py,sha256=s5bp4ULTEekgq6T61z9fDkRavyPM-3eREs20f_Pxxe8,3665
|
15
15
|
TonieToolbox/version_handler.py,sha256=7Zx-pgzAUhz6jMplvNal1wHyxidodVxaNcAV0EMph5k,9778
|
16
|
-
tonietoolbox-0.2.
|
17
|
-
tonietoolbox-0.2.
|
18
|
-
tonietoolbox-0.2.
|
19
|
-
tonietoolbox-0.2.
|
20
|
-
tonietoolbox-0.2.
|
21
|
-
tonietoolbox-0.2.
|
16
|
+
tonietoolbox-0.2.1.dist-info/licenses/LICENSE.md,sha256=rGoga9ZAgNco9fBapVFpWf6ri7HOBp1KRnt1uIruXMk,35190
|
17
|
+
tonietoolbox-0.2.1.dist-info/METADATA,sha256=mMJ6-auDHNFK12NcDU_HNQlwiC6Y98fprLJICBihaxI,10514
|
18
|
+
tonietoolbox-0.2.1.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
|
19
|
+
tonietoolbox-0.2.1.dist-info/entry_points.txt,sha256=oqpeyBxel7aScg35Xr4gZKnf486S5KW9okqeBwyJxxc,60
|
20
|
+
tonietoolbox-0.2.1.dist-info/top_level.txt,sha256=Wkkm-2p7I3ENfS7ZbYtYUB2g-xwHrXVlERHfonsOPuE,13
|
21
|
+
tonietoolbox-0.2.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|