[Cin] export_edl patch

Andrew Randrianasulu randrianasulu at gmail.com
Mon May 31 23:59:39 CEST 2021


i mean can *any* NLE on your machine (including Resolve) produce usable
cmx3600 edl?


i compiled git opentimelineio with minor hack

$ git diff diff --git a/CMakeLists.txt b/CMakeLists.txt index
3b7d084..a71fc30 100644
--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,7 @@
set(OTIO_VERSION
${OTIO_VERSION_MAJOR}.${OTIO_VERSION_MINOR}.${OTIO_VERSION_PATC
set(OTIO_AUTHOR "Contributors to the OpenTimelineIO project")
set(OTIO_AUTHOR_EMAIL "opentimelineio at pixar.com")
 set(OTIO_LICENSE "Modified Apache 2.0 License")
+set(CMAKE_EXEC_LINKER_FLAGS "-lpython3.9")
 project(OpenTimelineIO VERSION ${OTIO_VERSION} LANGUAGES C CXX) diff

--git a/src/deps/rapidjson b/src/deps/rapidjson
--- a/src/deps/rapidjson +++ b/src/deps/rapidjson @@ -1 +1 @@
-Subproject commit 17aa824c928ea111e9b12a61e06d98335ce98f15 +Subproject
commit 17aa824c928ea111e9b12a61e06d98335ce98f15-dirty diff --git
a/src/opentime/CMakeLists.txt b/src/opentime/CMakeLists.txt
index 9a7ce49..33b8e73 100644 --- a/src/opentime/CMakeLists.txt +++
b/src/opentime/CMakeLists.txt
@@ -9,6 +9,8 @@ set(OPENTIME_HEADER_FILES timeTransform.h version.h)

 +set(CMAKE_SHARED_LINKER_FLAGS "-lpython3.9") +
 add_library(opentime ${OTIO_SHARED_OR_STATIC_LIB} errorStatus.cpp
rationalTime.cpp
$

so it links with current python3.9 on my tablet/termux

$ ./setup.py install --prefix ~/.local

and something shows up..

$ ~/.local/bin/otiocat ~/my.edl {
    "OTIO_SCHEMA": "Timeline.1", "metadata": {},
    "name": "matrix_noAudio.xml fps: 25", "global_start_time": null,
    "tracks": {
        "OTIO_SCHEMA": "Stack.1", "metadata": {},
        "name": "tracks", "source_range": null,
        "effects": [], "markers": [],
        "children": [ {
                "OTIO_SCHEMA": "Track.1", "metadata": {},
                "name": "V", "source_range": null,
                "effects": [], "markers": [],
                "children": [ {
                        "OTIO_SCHEMA": "Clip.1", "metadata": {}, "name":
"matrixNoAudio.mov",
                        "source_range": {
                            "OTIO_SCHEMA": "TimeRange.1", "duration": {
                                "OTIO_SCHEMA": "RationalTime.1", "rate":
24.0,
                                "value": 590.0 },
                            "start_time": { "OTIO_SCHEMA": "RationalTime.1",
                                "rate": 24.0, "value": 0.0
                            }
                        }, "effects": [],
                        "markers": [], "media_reference": { "OTIO_SCHEMA":
"MissingReference.1",
                            "metadata": {}, "name": "", "available_range":
null
                        } },
                    { "OTIO_SCHEMA": "Clip.1",
                        "metadata": { "cmx_3600": {
                                "reel": "BL" }
                        }, "name": "002",
                        "source_range": {
                            "OTIO_SCHEMA": "TimeRange.1", "duration": {
                                "OTIO_SCHEMA": "RationalTime.1", "rate":
24.0,
                                "value": 169.0 },
                            "start_time": { "OTIO_SCHEMA": "RationalTime.1",
                                "rate": 24.0, "value": 0.0
                            } },
                        "effects": [],
                        "markers": [], "media_reference": {
                            "OTIO_SCHEMA": "GeneratorReference.1",
"metadata": {},
                            "name": "", "available_range": null,
                            "generator_kind": "black",
                            "parameters": {} }
                    }, {
                        "OTIO_SCHEMA": "Clip.1", "metadata": {},
                        "name": "matrixNoAudio.mov", "source_range": {
                            "OTIO_SCHEMA": "TimeRange.1", "duration": {
                                "OTIO_SCHEMA": "RationalTime.1", "rate":
24.0,
                                "value": 723.0 },
                            "start_time": { "OTIO_SCHEMA": "RationalTime.1",
                                "rate": 24.0, "value": 0.0
                            } },
                        "effects": [], "markers": [],
                        "media_reference": { "OTIO_SCHEMA":
"MissingReference.1",
                            "metadata": {}, "name": "",
                            "available_range": null }
                    }
                ], "kind": "Video"
            }
        ]
    } }

====

i found some forum posts on kdenlive's support of opentimelineio (and thus
cmx3600) but in mid-2020 it was not really working flawless/out of the box.

now we have opentimelineio-0.13 (and i compiled 0.14-dev) so it may work
better?

can you double-check your kdenlive/otio install?

https://forum.kde.org/viewtopic.php?f=265&t=165060

make sure you configure Resolve as suggested in

https://forum.shotcut.org/t/lost-timecode-xavcs/3392/15

'extract reel names from edl comments' especially?

i think i can put them (reel names) from Cin side, but need some better
understanding how to convert filenames into simple, unique 8 char long
strings.... (sometimes 16 or 32 long reel names accepted)

On Monday, May 31, 2021, Andrea paz <gamberucci.andrea at gmail.com> wrote:

> No, none of my tests produced working edls.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20210601/b489139d/attachment-0001.htm>


More information about the Cin mailing list