programmatic video rendering framework that is actually fast
feat(landing): refresh intro video for v1.0.3 (#166)
Dmitriy Kovalenko6454a6dc3ef3
diff --git a/examples/fframes-intro/src/facts.rs b/examples/fframes-intro/src/facts.rsindex 74d4ad36..47fec4f0 100644--- a/examples/fframes-intro/src/facts.rs+++ b/examples/fframes-intro/src/facts.rs@@ -2,6 +2,9 @@//! from real runs (see render-bench/vs-remotion and this project's CLI) and//! are refreshed before the final render.+/// Release shown on the opening and closing screens.+pub const RELEASE_LABEL: &str = concat!("v", env!("CARGO_PKG_VERSION"));+/// Lines of Rust in fframes plus its SVG renderer fork, svgr (`wc -l` over/// the git-tracked `.rs` files of both repositories).pub const LINES_OF_RUST: u64 = 89_372;@@ -15,7 +18,7 @@ pub const RENDER_SECONDS: f32 = 40.5;/// H.264, libx264 ultrafast crf 18 on both), median wall-clock seconds of/// the whole command. Remotion: 4.0.529, pre-bundled, concurrency 12 (its/// best). fframes: Skia on Metal, 2 GPU contexts.-pub const BENCH_REMOTION_S: f32 = if MOCK_BENCH { 50.4 } else { 7.40 };+pub const BENCH_REMOTION_S: f32 = 50.4;pub const BENCH_FFRAMES_S: f32 = 2.60;pub const BENCH_REMOTION_LABEL: &str = "REMOTION 4.0";pub const BENCH_FFRAMES_LABEL: &str = "FFRAMES · SKIA ON METAL";@@ -24,7 +27,3 @@ pub const BENCH_FFRAMES_LABEL: &str = "FFRAMES · SKIA ON METAL";pub const BENCH_MEDIUM_REMOTION_S: f32 = 9.41;pub const BENCH_MEDIUM_FFRAMES_S: f32 = 6.29;pub const BENCH_NOTE: &str = "M4 MAX · REMOTION 4.0.529, BEST CONCURRENCY, PRE-BUNDLED · X264 ULTRAFAST CRF 18 ON BOTH · MEDIANS";--/// Placeholder benchmark numbers while the realistic workloads are measured.-/// Never publish a render made with this on.-pub const MOCK_BENCH: bool = true;diff --git a/examples/fframes-intro/src/scenes/outro.rs b/examples/fframes-intro/src/scenes/outro.rsindex 60f8612d..b6bb0803 100644--- a/examples/fframes-intro/src/scenes/outro.rs+++ b/examples/fframes-intro/src/scenes/outro.rs@@ -76,10 +76,10 @@ impl Scene for OutroScene {let y = 760.0 + i as f32 * 78.0;fframes::svgr!(<g opacity={prog(lb, at, at + 0.1)} transform={format!("translate(0 {})", (1.0 - s) * 30.0)}>- <rect x="520" y={y - 44.0} width="880" height="62" fill="#0f0e0d" fill-opacity="0.9" stroke="#3d3a35" stroke-width="1.5" />- <text x="548" y={y} font-family={MONO} font-weight="600" font-size="26" fill={ORANGE}>"$"</text>- <text x="578" y={y} font-family={MONO} font-weight="500" font-size="26" fill={BONE}>{*cmd}</text>- <text x="1380" y={y} text-anchor="end" font-family={MONO} font-weight="500" font-size="15" letter-spacing="2" fill={GREY}>{*note}</text>+ <rect x="400" y={y - 44.0} width="1120" height="62" fill="#0f0e0d" fill-opacity="0.9" stroke="#3d3a35" stroke-width="1.5" />+ <text x="428" y={y} font-family={MONO} font-weight="600" font-size="26" fill={ORANGE}>"$"</text>+ <text x="458" y={y} font-family={MONO} font-weight="500" font-size="26" fill={BONE}>{*cmd}</text>+ <text x="1500" y={y} text-anchor="end" font-family={MONO} font-weight="500" font-size="15" letter-spacing="2" fill={GREY}>{*note}</text></g>)})@@ -94,7 +94,8 @@ impl Scene for OutroScene {<g transform={format!("translate(960 {y}) scale({word_s}) translate(-960 -{y})")} opacity={word_in.min(1.0)}><text x={x0} y={y} font-family={SERIF} font-style="italic" font-size={WORD_SIZE} fill={BONE}>"fframes"</text></g>- <text x="960" y="640" text-anchor="middle" font-family={MONO} font-weight="500" font-size="30" letter-spacing="2" fill={BONE} opacity={tag}>"video vibe coding framework that is actually fast"</text>+ <text x="1470" y="265" text-anchor="end" font-family={MONO} font-weight="500" font-size="28" letter-spacing="2" fill={GREY} opacity={tag}>{crate::facts::RELEASE_LABEL}</text>+ <text x="960" y="590" text-anchor="middle" font-family={MONO} font-weight="500" font-size="30" letter-spacing="2" fill={BONE} opacity={tag}>"video vibe coding framework that is actually fast"</text>{cmd_rows}<g opacity={url}><text x="960" y="990" text-anchor="middle" font-family={MONO} font-weight="600" font-size="26" letter-spacing="3" fill={ORANGE}>"GITHUB.COM/DMTRKOVALENKO/FFRAMES"</text>diff --git a/examples/fframes-intro/src/scenes/prompt.rs b/examples/fframes-intro/src/scenes/prompt.rsindex 6fd35c0a..6c35fb1c 100644--- a/examples/fframes-intro/src/scenes/prompt.rs+++ b/examples/fframes-intro/src/scenes/prompt.rs@@ -97,6 +97,7 @@ impl Scene for PromptScene {<image href={bg.href()} x="0" y="0" width="1920" height="1080" /><g transform={format!("translate(0 {lift})")}><text x="160" y="366" font-family={MONO} font-weight="500" font-size="22" letter-spacing="2" fill={GREY}>"CODEX · ~/dev/fframes"</text>+ <text x="1760" y="366" text-anchor="end" font-family={MONO} font-weight="500" font-size="28" letter-spacing="2" fill={GREY}>{crate::facts::RELEASE_LABEL}</text><rect x="140" y="400" width="1640" height="270" rx="18" fill="#0f0e0d" fill-opacity="0.85"stroke={if after > 0.0 { ORANGE } else { "#4a4640" }} stroke-width="2" /><text x="180" y="522" font-family={MONO} font-weight="600" font-size="64" fill={ORANGE}>"›"</text>diff --git a/landing/fframes-demo.av1.mp4 b/landing/fframes-demo.av1.mp4index 829d73d7..f2cedb59 100644Binary files a/landing/fframes-demo.av1.mp4 and b/landing/fframes-demo.av1.mp4 differdiff --git a/landing/fframes-demo.mp4 b/landing/fframes-demo.mp4index 4bcfc587..d3f41ede 100644Binary files a/landing/fframes-demo.mp4 and b/landing/fframes-demo.mp4 differ