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
`otiotool` reads one or more OTIO timeline files, optionally makes changes to the timelines, and outputs a text report and/or a new OTIO file with the result.
22
22
23
-
To run `otiotool` for reporting, use:
23
+
To run `otiotool` for reporting, use options like `--list-clips` or `--list-tracks`. The report output is
For a complete listing of all options use `otiotool -h`.
38
55
39
56
## Phases
40
57
41
58
Unlike some other command line tools, the order in which options appear on
42
-
the command line does not matter. For example `otiotool -i input.otio --flatten -o output.otio` is the same as `otiotool --flatten -o output.otio -i input.otio`
59
+
the command line does not matter. For example these two commands do the same thing:
60
+
61
+
```bash
62
+
otiotool -i input.otio --flatten -o output.otio
63
+
otiotool --flatten -o output.otio -i input.otio
64
+
```
65
+
43
66
Instead, the features of this tool work in phases, as follows:
44
67
45
68
1. Input
69
+
46
70
Input files provided by the `--input <filename>` argument(s) are read into
47
71
memory. Files may be OTIO format, or any format supported by adapter
48
72
plugins.
49
73
50
74
2. Filtering
75
+
51
76
Options such as `--video-only`, `--audio-only`, `--only-tracks-with-name`,
[!NOTE] When `otiotool` is given multiple inputs, the order of those inputs will affect the outcome of `--concat`, `--stack`, and any text reports printed to the console.
236
+
237
+
### Output File
196
238
197
239
Modifications to the timeline(s) can be written out to a new file with the
198
240
`--output <filename.otio>` option.
199
241
242
+
Note: The input files are never modified unless the
243
+
output path specifies the same file, in which case that file will be overwritten (not recommended).
244
+
200
245
### Multiple Timelines
201
246
202
-
If the result is a single timeline, then resulting file contains that timeline
247
+
If the result is a single timeline, then the output file will contain that timeline
203
248
as expected. However, if there were multiple input files and those timelines
204
249
were not combined with `--concat` or `--stack` then the output will be a single
205
250
file containing a SerializableCollection with multiple timelines. This is a
@@ -208,20 +253,30 @@ timeline in an OTIO file.
208
253
209
254
### Standard In/Out
210
255
211
-
If you specify the `--output` file as a single `-` then the resulting OTIO will
212
-
be written to as text to stdout instead of a file. You can also use `-` as an
213
-
input file. This allows you to chain `otiotool` with other tools on the command
256
+
You can chain `otiotool` with other tools on the command
214
257
line.
215
258
259
+
If you specify the `--output` file as a single `-` then the resulting OTIO will
0 commit comments