Git Product home page Git Product logo

walkie-talkie's Introduction

Walkie Talkie

This template is an extension of the Mapbox "scrollytelling" template and is meant for data journalists and digital storytellers of any kind.

Prerequisites

Please familiarize yourself with Mapbox's template documentation here.

To Run

Making a Walkie Talkie

To build your own walkie talkie, content-wise you will need:

  • an interview video (mp4)
  • GPS route recording (gpx)
  • written description blocks to present (google doc)
  • (Optional, recommended) An Mapbox account, and some map layers to furhter the storytelling

Steps

Step 1: prepare the scrollytelling presentation content

1a. Create Copy JSON

1b. optionally, create your own visuals to further the storytelling (recommended)

  • Use map position helper to generate location visualizing parameters, e.g. location.center (lon and lat).
  • Follow guidance to create your own "style" on Mapbox on either given data, your created data, or your uploaded data (dataset or tileset), e.g. [.onChapterEnter] layer: park-slope opacity: 1

1c. Prepare config and execute

  • Make sure that the configs at the end of the Google Doc is correct. Video duration in seconds (please find out how long it is), the number of drive slides, title, byline, mapbox styles, access tokens, etc.
  • Fill in id and filepath parameters in doc.json(id: the Google Doc document ID between "d/" and "/edit" in the link, filepath: path for your destination copy content; and make sure the doc is shared publicly)
  • Run npm run doc to execute fetch-doc.js which will pull Google Doc content into your copy filepath

Step 2: generate driving routes and interview video screenshots along the drive

2a. Prepare Video Content

  • Add .mp4 video file to data/ and dist/ folders (note: only mp4 will work. If you have another format, use ffmpeg to convert)
  • Make sure image file path is correct

2b. Prepare GPS Route Content

  • Make GPX file using Open GPX Tracker (Apple, Android)
  • Add GPX file to data/ folder

2c. Create Image Flipbook Content and Routes JSON

  • After video and GPs data are ready, run node make-clips.js
  • This will create routes.json for the walking point/line and image clips in the imgs folder for the flipbook

Step 3: Final checks and run

3a. Update path names in index.js

  • Make sure that the copy path (ex. import { chapters, config } from copy.json) and video path (ex. vid.src = ./IMG_1234.mp4) match your data

3b. Run project npm run dev

walkie-talkie's People

Contributors

dingaaling avatar chenggong03 avatar imandel avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

far-lab

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.