Got the movie working in the gallery
This commit is contained in:
1 parent
8861858f0d
commit
782820261e
15 files changed
+1291
-111
No files matched your search
@@ -131,6 +131,23 @@ cargo run --release -p resolved-cli -- render \
|
||||
`scripts/serve-gallery.py` serves the result as a web page on port 8000 of
|
||||
every interface, each scene captioned from its file.
|
||||
|
||||
`crates/resolved-showcase` makes a 30-second movie at lighting L1: an inspector
|
||||
holding station behind a Landsat 8 model 705 km up, which astrokit propagates
|
||||
with J2. Time runs fast over the daylit Earth, slows as the Moon rises over the
|
||||
limb ahead, and slows almost to real time as the spacecraft passes into Earth's
|
||||
shadow. The camera drifts on a small natural relative orbit around its station,
|
||||
and adjusts its exposure frame by frame as a video camera does (up to one
|
||||
frame's time), through dawn and dusk. `--out movie.mp4` encodes it with ffmpeg,
|
||||
rendering each 1920 x 1080 frame in about 4 ms on the RTX 3060. `--serve
|
||||
0.0.0.0:8010` renders it live, in step with the clock, and streams it as MJPEG
|
||||
at 60 frames per second (`--fps`; it keeps up to 120, rendering each frame in
|
||||
under 5 ms) to the gallery page's Movie tab, which also plays and offers the
|
||||
recorded file (`make-gallery.sh` writes `gallery/movie.mp4`):
|
||||
|
||||
```sh
|
||||
cargo run --release -p resolved-showcase -- --serve 0.0.0.0:8010
|
||||
```
|
||||
|
||||
- `--out` writes raw DN as a 16-bit PNG, shifted up to fill 16 bits as
|
||||
cameras usually store them: a 12-bit DN is the stored value divided by 16.
|
||||
It is linear, so it looks dark next to the preview.
|
||||
|
||||
Reference in new issue
Block a user