Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Support/aaf/test_bridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ def test_path_repair_writes_copy_and_preserves_source(self):
self.assertEqual(changed, 1)
with aaf2.open(str(source), 'r') as container:
locator = next(iter(container.content.sourcemobs())).descriptor['Locator'].value[0]
self.assertEqual(locator_path(locator['URLString'].value), str(old.resolve()))
self.assertEqual(locator_path(locator['URLString'].value),
str(old.resolve()).replace('\\', '/'))
with aaf2.open(str(output), 'r') as container:
locator = next(iter(container.content.sourcemobs())).descriptor['Locator'].value[0]
self.assertEqual(locator_path(locator['URLString'].value),
str(replacement.resolve()))
str(replacement.resolve()).replace('\\', '/'))

def test_embedded_pcm_extracts_exact_samples_without_external_source(self):
with tempfile.TemporaryDirectory() as directory:
Expand Down Expand Up @@ -460,7 +461,7 @@ def test_linked_picture_preserves_fractional_edit_rate(self):
track = result['sequences'][0]['tracks'][0]
self.assertEqual(track['media_kind'], 'picture')
self.assertEqual(track['edit_rate'], {'numerator': 30000, 'denominator': 1001})
self.assertEqual(track['clips'], [{'path': str(media), 'start': 7,
self.assertEqual(track['clips'], [{'path': str(media).replace('\\', '/'), 'start': 7,
'source_in': 11, 'length': 101, 'channel': None}])
with self.assertRaises(ValueError):
read_timeline(path, audio_only=True)
Expand Down
2 changes: 2 additions & 0 deletions crates/align-cli/src/export_job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ impl ExportOptions {
no_fcpxml_multicam,
export_media,
unmatched,
apply_estimated_placements,
prevent_group_overlaps,
disable_unmatched,
label_synced,
Expand All @@ -68,6 +69,7 @@ impl ExportOptions {
result,
align_core::export_model::ExportAssemblyOptions {
unmatched: unmatched.core(),
apply_estimated_placements,
prevent_group_overlaps,
disable_unmatched,
label_synced,
Expand Down
6 changes: 6 additions & 0 deletions crates/align-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ struct ExportOptions {
/// Placement policy for clips without a synchronization match.
#[arg(long, value_enum, default_value_t = Unmatched::OrderTime)]
unmatched: Unmatched,
/// Explicitly apply unconfirmed same-device timestamp estimates to exports.
#[arg(long)]
apply_estimated_placements: bool,
/// Place independent synchronization groups without overlaps.
#[arg(long)]
prevent_group_overlaps: bool,
Expand Down Expand Up @@ -944,6 +947,7 @@ mod tests {
"--media-bins",
"--no-fcpxml-multicam",
"--export-media",
"--apply-estimated-placements",
"--label-synced",
"--label-unmatched",
"--synced-symbol",
Expand All @@ -969,6 +973,7 @@ mod tests {
no_fcpxml_timeline,
no_fcpxml_multicam,
export_media,
apply_estimated_placements,
label_synced,
label_unmatched,
assign,
Expand Down Expand Up @@ -1012,6 +1017,7 @@ mod tests {
assert!(!no_fcpxml_timeline);
assert!(no_fcpxml_multicam);
assert!(export_media);
assert!(apply_estimated_placements);
assert!(label_synced);
assert!(label_unmatched);
assert_eq!(assign.synced_symbol.as_deref(), Some("✓"));
Expand Down
1 change: 1 addition & 0 deletions crates/align-core/src/export/fcpxml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,7 @@ mod tests {
placements: vec![placement("cam"), placement("rec")],
}],
unmatched: Vec::new(),
estimated_placements: Vec::new(),
matches: Vec::new(),
temporal_policy: crate::model::TemporalPolicy::default(),
};
Expand Down
Loading