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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
branches: [ main ]
# A v1.2.3 tag from scripts/release.sh publishes that version, see the publish job
tags: [ "v*" ]
# Include stacked feature PRs so their visual changes are checked before retargeting.
pull_request:
branches: [ main ]
# GitHub evicts caches that were not used for 7 days, rebuild them before that
# happens so the first PR after a quiet week does not rebuild Skia and FFmpeg.
schedule:
Expand Down
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ members = [
"cargo-fframes",
# Examples
"examples/captions",
"examples/captions-showcase",
"examples/podcast",
"examples/podcast/editor/editor-bridge",
"examples/audio-announce",
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,14 @@ A small example of Highlight, Karaoke, Reveal and Word modes sharing one JSON tr
<img alt="Caption presets and custom word highlights" src="examples/_previews/captions.png" width="640" />
</a>

#### [captions-showcase](examples/captions-showcase)

Words in Orbit: a cinematic Moon speech with JSON-directed typography, handwritten accents, folding word planes, and liquid metal, fire, irradiance and nebula shaders. Run the standalone typography with `cargo run --release -p captions-showcase-example -- --shader --captions-only render`. Footage and audio stay outside Git; use `--media-dir /path/to/prepared-media` for the full film. CI checks six typography frames without downloading footage.

<a href="https://files.catbox.moe/5ypqpg.mp4">
<img alt="Words in Orbit: Moon caption shader showcase" src="examples/_previews/captions-showcase.png" width="640" />
</a>

#### [audio-announce](examples/audio-announce)

An automated workflow to create audio visualisation with automated subtitles.
Expand Down
Binary file added e2e/snapshots/captions-showcase/1.4s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/snapshots/captions-showcase/13.3s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/snapshots/captions-showcase/19s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/snapshots/captions-showcase/2.3s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/snapshots/captions-showcase/4.2s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e2e/snapshots/captions-showcase/6.3s.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/_previews/captions-showcase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions examples/captions-showcase/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
media/*.mp4
media/*.wav
*.mp4
26 changes: 26 additions & 0 deletions examples/captions-showcase/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "captions-showcase-example"
version = "1.3.0"
edition = "2024"
publish = false

[dependencies]
fframes = { workspace = true, features = ["cli", "captions", "compile-time-svgtree"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"

[features]
default = ["skia"]
skia = ["dep:fframes_skia_renderer"]

[target.'cfg(target_os = "macos")'.dependencies]
fframes_skia_renderer = { workspace = true, optional = true, features = ["cli", "metal"] }

[target.'cfg(not(any(target_os = "macos", target_arch = "wasm32")))'.dependencies]
fframes_skia_renderer = { workspace = true, optional = true, features = ["cli", "vulkan"] }

[target.'cfg(not(any(windows, target_arch = "wasm32")))'.dependencies]
fframes = { workspace = true, features = ["h264", "libav-agree-gpl", "build-portable"] }

[lints]
workspace = true
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading