pub struct TimelineExporter;Expand description
Converts a Timeline to standard interchange formats.
Implementations§
Source§impl TimelineExporter
impl TimelineExporter
Sourcepub fn to_edl(timeline: &Timeline) -> String
pub fn to_edl(timeline: &Timeline) -> String
Export timeline as a CMX-3600 EDL string.
Each video clip on each video track becomes one edit event. Audio clips
produce events with track code A. Clips without an assigned source
path use the reel name AX (the CMX-3600 convention for “any source”).
Timecodes are derived from the timeline’s timebase (assumed to be 1/1000, i.e. milliseconds) and converted to the frame rate declared on the timeline.
Sourcepub fn to_xml(timeline: &Timeline) -> String
pub fn to_xml(timeline: &Timeline) -> String
Export timeline as a simple FCP XML skeleton.
The generated XML is compatible with Final Cut Pro 7 and can serve as a starting point for import into DaVinci Resolve, Premiere Pro (via the “Import FCP XML” workflow), and other NLEs.
The skeleton includes:
- A
<sequence>element with frame-rate and duration attributes. - A
<media>element containing<video>and<audio>spine tracks. - One
<clipitem>per clip with source in/out and timeline in/out.
Auto Trait Implementations§
impl Freeze for TimelineExporter
impl RefUnwindSafe for TimelineExporter
impl Send for TimelineExporter
impl Sync for TimelineExporter
impl Unpin for TimelineExporter
impl UnsafeUnpin for TimelineExporter
impl UnwindSafe for TimelineExporter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more