GithubHelp home page GithubHelp logo

ubermichael / apa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sfu-dhil/apa

0.0 1.0 0.0 1.64 MB

Mock up of a video remixer thing

HTML 65.64% Shell 0.25% Ruby 2.76% PHP 1.41% CSS 6.90% JavaScript 23.04%

apa's Introduction

Video Slap Chop

Requirements

  • jq (brew install jq should do)
  • csv2json (npm install -g csv2json)
  • sponge (brew install moreutils)
  • PHP
  • Yarn and friends
  1. Start with a CSV file like foo.csv
Video,Section,Title,Start,End,URL,Description,Image
"Imprint II, Camera A",,Colour Bars,00:00:00,00:00:29,https://example.com/foo.mp4,,
,,The Audience,00:00:30,00:02:24,,,
,,Forgotten Memories,00:02:24,00:09:00,,,
,,The Stranger,00:09:01,00:11:56,,,
  1. Convert it to JSON

csvtojson $csv | jq '.' | sponge $json

  1. Download the video

curl https://example.com/foo.mp4 -o foo.mp4

  1. Extract clip preview images

./screens foo.json foo.mp4

  1. Reprocess the JSON file to include the clip images.

php ./preprocess.php foo.json public/screenshot | js '.' | sponge foo.json

apa's People

Contributors

ubermichael avatar dependabot[bot] avatar

Watchers

James Cloos avatar

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.