Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

Merge remote-tracking branch 'origin/main' into fix-445

Brandon Thomasa8e38c4e07e2
diff --cc crates/engine/src/commands.rs
index f18e41ee6,70cdeb65a..28dd24a19
--- a/crates/engine/src/commands.rs
+++ b/crates/engine/src/commands.rs
@@@ -367,10 -363,9 +367,10 @@@ pub(crate) fn default_seq_settings_for(
st.width = v.width;
st.height = v.height;
st.frame_rate = v.frame_rate;
+ st.par = media.pixel_aspect();
st.preset = format!("{}x{} {}", v.width, v.height, v.frame_rate.label());
}
- if let Some(a) = &info.audio {
+ if let Some(a) = info.audio() {
st.sample_rate = a.sample_rate.max(8000);
}
st
diff --cc crates/engine/src/proxies.rs
index b4da00bee,de5bdf576..d602102f1
--- a/crates/engine/src/proxies.rs
+++ b/crates/engine/src/proxies.rs
@@@ -103,11 -103,9 +103,11 @@@ pub fn transcode
if let Some(v) = &info.video {
st.width = v.width;
st.height = v.height;
+ // pixels in = pixels out: the sequence has the clip's pixel aspect, so nothing is stretched
+ st.par = clip.pixel_aspect();
}
st.frame_rate = rate;
- st.sample_rate = info.audio.as_ref().map_or(48_000, |a| a.sample_rate.max(8000));
+ st.sample_rate = info.audio().map_or(48_000, |a| a.sample_rate.max(8000));
let mut p = Project::new("transcode");
let mut c = clip.clone();
c.offline = false;