Closed waldirio closed 1 year ago
Hi @waldirio!
Is the example otio file created and exported from kdenlive? Would you be able to provide a file we can look at? Also, does the effect show in otioview?
Hello @apetrynet
Thanks for your quick response.
yes, the file was exported via kdenlive and I'm importing on kdenlive as well, btw, the app version is 22.12.2
Please, check the file below
$ cat otio_export.otio
{
"OTIO_SCHEMA": "Timeline.1",
"metadata": {},
"name": "Kdenlive imported timeline",
"global_start_time": null,
"tracks": {
"OTIO_SCHEMA": "Stack.1",
"metadata": {},
"name": "tracks",
"source_range": null,
"effects": [],
"markers": [],
"enabled": true,
"children": [
{
"OTIO_SCHEMA": "Track.1",
"metadata": {},
"name": "",
"source_range": null,
"effects": [],
"markers": [],
"enabled": true,
"children": [
{
"OTIO_SCHEMA": "Gap.1",
"metadata": {},
"name": "",
"source_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 865.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 0.0
}
},
"effects": [],
"markers": [],
"enabled": true
},
{
"OTIO_SCHEMA": "Clip.2",
"metadata": {},
"name": "",
"source_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 1000.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 5091.0
}
},
"effects": [],
"markers": [],
"enabled": true,
"media_references": {
"DEFAULT_MEDIA": {
"OTIO_SCHEMA": "ExternalReference.1",
"metadata": {},
"name": "",
"available_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 32023.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 0.0
}
},
"available_image_bounds": null,
"target_url": "Videos/sat_report_template_ptBR.mp4"
}
},
"active_media_reference_key": "DEFAULT_MEDIA"
}
],
"kind": "Audio"
},
{
"OTIO_SCHEMA": "Track.1",
"metadata": {},
"name": "",
"source_range": null,
"effects": [],
"markers": [],
"enabled": true,
"children": [],
"kind": "Audio"
},
{
"OTIO_SCHEMA": "Track.1",
"metadata": {},
"name": "",
"source_range": null,
"effects": [],
"markers": [],
"enabled": true,
"children": [
{
"OTIO_SCHEMA": "Clip.2",
"metadata": {},
"name": "",
"source_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 865.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 5091.0
}
},
"effects": [],
"markers": [],
"enabled": true,
"media_references": {
"DEFAULT_MEDIA": {
"OTIO_SCHEMA": "ExternalReference.1",
"metadata": {},
"name": "",
"available_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 32023.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 0.0
}
},
"available_image_bounds": null,
"target_url": "Videos/sat_report_template_ptBR.mp4"
}
},
"active_media_reference_key": "DEFAULT_MEDIA"
},
{
"OTIO_SCHEMA": "Clip.2",
"metadata": {},
"name": "",
"source_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 1709.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 47261.0
}
},
"effects": [],
"markers": [],
"enabled": true,
"media_references": {
"DEFAULT_MEDIA": {
"OTIO_SCHEMA": "ExternalReference.1",
"metadata": {},
"name": "",
"available_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 119575.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 0.0
}
},
"available_image_bounds": null,
"target_url": "Videos/2023-01-25 Career Path Journey - Panel Discussion (Recording).mp4"
}
},
"active_media_reference_key": "DEFAULT_MEDIA"
}
],
"kind": "Audio"
},
{
"OTIO_SCHEMA": "Track.1",
"metadata": {},
"name": "",
"source_range": null,
"effects": [],
"markers": [],
"enabled": true,
"children": [],
"kind": "Audio"
},
{
"OTIO_SCHEMA": "Track.1",
"metadata": {},
"name": "",
"source_range": null,
"effects": [],
"markers": [],
"enabled": true,
"children": [],
"kind": "Video"
},
{
"OTIO_SCHEMA": "Track.1",
"metadata": {},
"name": "",
"source_range": null,
"effects": [],
"markers": [],
"enabled": true,
"children": [
{
"OTIO_SCHEMA": "Clip.2",
"metadata": {},
"name": "",
"source_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 865.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 5091.0
}
},
"effects": [],
"markers": [],
"enabled": true,
"media_references": {
"DEFAULT_MEDIA": {
"OTIO_SCHEMA": "ExternalReference.1",
"metadata": {},
"name": "",
"available_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 32023.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 0.0
}
},
"available_image_bounds": null,
"target_url": "Videos/sat_report_template_ptBR.mp4"
}
},
"active_media_reference_key": "DEFAULT_MEDIA"
},
{
"OTIO_SCHEMA": "Clip.2",
"metadata": {},
"name": "",
"source_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 1709.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 47261.0
}
},
"effects": [],
"markers": [],
"enabled": true,
"media_references": {
"DEFAULT_MEDIA": {
"OTIO_SCHEMA": "ExternalReference.1",
"metadata": {},
"name": "",
"available_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 119575.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 0.0
}
},
"available_image_bounds": null,
"target_url": "Videos/2023-01-25 Career Path Journey - Panel Discussion (Recording).mp4"
}
},
"active_media_reference_key": "DEFAULT_MEDIA"
}
],
"kind": "Video"
},
{
"OTIO_SCHEMA": "Track.1",
"metadata": {},
"name": "",
"source_range": null,
"effects": [],
"markers": [],
"enabled": true,
"children": [],
"kind": "Video"
},
{
"OTIO_SCHEMA": "Track.1",
"metadata": {},
"name": "",
"source_range": null,
"effects": [],
"markers": [],
"enabled": true,
"children": [
{
"OTIO_SCHEMA": "Gap.1",
"metadata": {},
"name": "",
"source_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 865.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 0.0
}
},
"effects": [],
"markers": [],
"enabled": true
},
{
"OTIO_SCHEMA": "Clip.2",
"metadata": {},
"name": "",
"source_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 1000.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 5091.0
}
},
"effects": [],
"markers": [],
"enabled": true,
"media_references": {
"DEFAULT_MEDIA": {
"OTIO_SCHEMA": "ExternalReference.1",
"metadata": {},
"name": "",
"available_range": {
"OTIO_SCHEMA": "TimeRange.1",
"duration": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 32023.0
},
"start_time": {
"OTIO_SCHEMA": "RationalTime.1",
"rate": 30.0,
"value": 0.0
}
},
"available_image_bounds": null,
"target_url": "Videos/sat_report_template_ptBR.mp4"
}
},
"active_media_reference_key": "DEFAULT_MEDIA"
}
],
"kind": "Video"
}
]
}
}
When trying to execute otioview, I'm facing the issue below. I'll check this in a sequence
(otio) [wpinheir@ironman test_otio]$ otioview otio_export.otio
Traceback (most recent call last):
File "/home/wpinheir/.venv/otio/bin/otioview", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/wpinheir/.venv/otio/lib64/python3.11/site-packages/opentimelineview/console.py", line 292, in main
window = Main(
^^^^^
File "/home/wpinheir/.venv/otio/lib64/python3.11/site-packages/opentimelineview/console.py", line 153, in __init__
self._create_navigation_menu(navigation_menu)
File "/home/wpinheir/.venv/otio/lib64/python3.11/site-packages/opentimelineview/console.py", line 222, in _create_navigation_menu
navigation_menu.triggered[[QAction]].connect(__callback)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
IndexError: Signature "triggered()" not found for signal: "triggered". Available candidates: "triggered(QAction*)"
When looking at the provided otio file, I can't see that any effects are exported from kdenlive. Perhaps they (kdenlive developers) didn't add support for translating the effect you used to/from otio. Please note that there's not that many effects defined in OTIO yet neither. But perhaps a transform like you describe can be achieved by using bounds
Others may correct me here, but I'm afraid this is something that you'll need to bring up with the kdenlive developers as the otio integration is maintained by them.
Here's the pull request removing kdenlive related files from OTIO. In the thread you'll see some developers you can reach out to.
Yeah, if there were effects you'd see them in the effects list and I believe there would have been an indicator in the timeline a well.
Try reaching out to the kdenlive people and see if they have any suggestions on what effects you may use to achieve your goal.
Hello @apetrynet
Perfect. Thank you again for your help. I believe we can archive this issue!
Have an amazing day ahead! Waldirio
Incorrect Functionality and General Questions
Creating a basic example, adding 2 tracks/2 videos, overlapping them, and adding an effect on the first one, just to make a picture in picture, for example using the effect transform. This works fine in kdenlive. However, when exporting it via opentimelineIO and importing it back, we can see the videos in the correct place/position/time/track, but the effect it's not there.
To Reproduce
gcc -v
, and paste the results hereExpected Behavior
Be able to import the project with all the effects already in place.
Screenshots
Let me know if you need it, I can create a small video to preset the issue, if necessary.