We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bea55f commit 9aa8853Copy full SHA for 9aa8853
examples/simple_edit.py
@@ -157,7 +157,7 @@ async def simple_edit(
157
# The media timeline started at zero when the ingest started, so `ts_offset` indicates what must be
158
# added to the media time to get the Flow time.
159
# So we can calculate media time at the start of the segment
160
- seg_offset = Timestamp.from_str(segment["ts_offset"])
+ seg_offset = Timestamp.from_str(segment.get("ts_offset", "0:0"))
161
media_time = seg_tr.start - seg_offset
162
163
# Now we want to know what to add to that media time to get the new start time
0 commit comments