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
Copy file name to clipboardExpand all lines: docs/tutorials/write-a-media-linker.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,11 @@ OpenTimelineIO Media Linkers are plugins that allow OTIO to replace MissingRefer
4
4
5
5
The current MediaLinker can be specified as an argument to `otio.adapters.read_from_file` or via an environment variable. If one is specified, then it will run after the adapter reads the contents of the file before it is returned back.
After the EDL adapter reads something.edl, the media linker "awesome_studios_media_linker" will run and link the media in the file (if it can).
12
14
@@ -16,25 +18,28 @@ After the EDL adapter reads something.edl, the media linker "awesome_studios_med
16
18
To create a new OTIO Adapter, you need to create a file mymedialinker.py. Then add a manifest that points at that python file:
17
19
18
20
21
+
```json
19
22
{
20
23
"OTIO_SCHEMA" : "PluginManifest.1",
21
24
"media_linkers" : [
22
25
{
23
26
"OTIO_SCHEMA" : "MediaLinker.1",
24
27
"name" : "awesome_studios_media_linker",
25
-
"execution_scope" : "in process",
26
28
"filepath" : "mymedialinker.py"
27
29
}
28
30
],
29
31
"adapters" : [
30
32
]
31
33
}
34
+
```
32
35
33
36
Then you need to add this manifest to your `$OTIO_PLUGIN_MANIFEST_PATH` environment variable (which is separated with `:` for POSIX or `;` for Windows).
34
37
35
38
Finally, to specify this linker as the default media linker, set `OTIO_DEFAULT_MEDIA_LINKER` to the name of the media linker:
0 commit comments