Skip to content

Commit

Permalink
wip: debug map example
Browse files Browse the repository at this point in the history
  • Loading branch information
jaanli committed Apr 13, 2024
1 parent 4212d28 commit 06170e7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# New York Real Estate

[!New York Real Estate](./new_york_real_estate_map_demo.gif)

This is an [Observable Framework](https://observablehq.com/framework) project. To start the local preview server, run:

```
Expand Down Expand Up @@ -58,4 +60,18 @@ This project uses [dbt](https://www.getdbt.com/) to process New York City real e

```bash
dbt init data_processing
```

## Making a GIF

To make a GIF of your project, use Quicktime Player on Mac to record the screen, then save the `.mov` file somewhere and run:

```bash
# trim
ffmpeg -ss 00:00:02 -to 00:00:08 -i recording3.mov -c copy trimmed_recording.mov
# speed up
ffmpeg -i trimmed_recording.mov -filter:v "setpts=PTS/5,fps=24" -an sped.mov
# make gif
ffmpeg -i sped.mov -vf "fps=20,scale=1080:-1:flags=lanczos,palettegen=stats_mode=diff" -y palette.png
ffmpeg -i sped.mov -i palette.png -filter_complex "fps=20,scale=1080:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle" -y high_quality.gif
```
Binary file added new_york_real_estate_map_demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06170e7

Please sign in to comment.