GithubHelp home page GithubHelp logo

bansicloud / temporalis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from positlabs/temporalis

0.0 1.0 0.0 40.55 MB

Slit-scan webcam with canvas

Home Page: https://temporalis.app

HTML 5.44% CSS 25.76% TypeScript 68.80%

temporalis's Introduction

Temporalis

Slit-scan webcam with canvas

https://temporalis.app

temporalis

Does stuff like this with your webcam:

Note: This is an experiment. It won't work everywhere. Chrome / desktop will be your best option, but it also works nicely on Android.

Controls

slices slider determines the number of slices used in the time-stack. More slices means they are smaller, and take longer to push out of the stack.

mode button determines how the frames are sliced: vertically or horizontally.

capture button will take a snapshot when tapped, or record a video when held down (although recording is dependent on browser support)

Webapp

You can install this app on your phone or desktop. It should prompt you to install on your second visit, but you can manually install by selecing "add to homescreen" (mobile) or clicking the install icon in the address bar (desktop).

History

http://www.flong.com/texts/lists/slit_scan/


(quoting reddit user emilhoff)

It's a technique called "chronotopic anamorphosis." First used by Zbigniev Rybczynski, it made use of the raster scanning in analog video. The video was shot normally, but then the scan lines would be "staggered" in time.

It's particularly effective with rotating motion, because the shadows and other depth cues are preserved in each scan line, giving the strong illusion of the effect actually taking place in the real space. Here's Rybczynski's "The Fourth Dimension" showcasing the effect:

https://vimeo.com/186508316 > http://www.dailymotion.com/video/xjbiop_zbigniew-rybczynski-the-fourth-dimention_shortfilms

It can be done today digitally, of course. In fact, it's an unintended effect of most digital cameras when shooting video of fast motion. Here's Gavin Free with a very good explanation of the effect of shutter speeds: https://www.youtube.com/watch?v=CmjeCchGRQo

He explains the effect at 4:03, but the whole video is well worth watching.

Post-processing

Because the effect becomes slow when using a high number of slices, you might want to speed it up in post for a more enjoyable viewing experience.

Split the original into frames. -r specifies the frame rate. e.g. if the original is 30fps, and we use -r 2, this would be the equivalent of speeding up by a factor of 15.

ffmpeg -i temporalis.mov -r 2 tmp/%04d.png

Encode the output video, using the frames we created with the previous command.

ffmpeg -i tmp/%04d.png out.mp4

temporalis's People

Contributors

felixturner avatar positlabs avatar

Watchers

 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.