Fireship · @fireship

This video was made with code. But how?

Uploaded March 4, 2022 · Length 8:42

This video was made with code. But how?

Summary

create custom data-driven videos with javascript and remotion, no editing tools needed

  • remotion video creation
  • javascript video editing
  • data driven video
  • no code video editing
  • react video animation

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    today's video is made different i threw

  2. 0:02

    away all my fancy editing tools like

  3. 0:03

    adobe premiere and after effects and

  4. 0:05

    instead did all the editing with

  5. 0:07

    javascript code thanks to a tool called

  6. 0:09

    remotion which allows you to create

  7. 0:11

    video content programmatically with

  8. 0:13

    react when you think about it a video is

  9. 0:15

    just a function of images over time

  10. 0:17

    every second we might render 60 still

  11. 0:19

    images or frames each one changing

  12. 0:21

    slightly to create an animation react is

  13. 0:24

    a great tool for describing uis that

  14. 0:26

    change over time so why not use it to

  15. 0:27

    describe video content as well that's

  16. 0:29

    the idea behind remotion which opens the

  17. 0:31

    door for web developers to storify their

  18. 0:34

    data for example you might use a weather

  19. 0:36

    api to fetch the local weather forecast

  20. 0:38

    then use remotion to animate a video out

  21. 0:40

    of that data if it's raining show some

  22. 0:42

    raindrops if it's cloudy make some

  23. 0:44

    clouds float by and if there's a tornado

  24. 0:46

    show the entire town being destroyed by

  25. 0:48

    the end of this tutorial you'll know how

  26. 0:49

    to create your own custom data driven

  27. 0:51

    videos from scratch using nothing but

  28. 0:53

    javascript and remotion if you're new

  29. 0:55

    here like and subscribe and check out

  30. 0:56

    the full source code on github before we

  31. 0:58

    jump into the code for this project i

  32. 1:00

    want to give a huge shout out to william

  33. 1:02

    candione he put together the code for

  34. 1:03

    this video and has an awesome youtube

  35. 1:05

    channel that you should definitely be

  36. 1:06

    subscribed to and respect to johnny

  37. 1:08

    burger the creator of remotion this

  38. 1:10

    tutorial is unlike anything else out

  39. 1:12

    there and by the end of it you'll be

  40. 1:13

    able to add video editor to your resume

  41. 1:15

    and you might be surprised at how easy

  42. 1:16

    it really is to create videos with react

  43. 1:18

    once you understand the fundamentals of

  44. 1:20

    video animation if you go to github and

  45. 1:22

    clone the project it'll pull up a

  46. 1:24

    browser window that allows you to scrub

  47. 1:26

    through the entire timeline of the intro

  48. 1:27

    that you just watched and you can modify

  49. 1:29

    it using html css and javascript what

  50. 1:32

    i'm going to show you in this video is

  51. 1:33

    how to recreate the weather scene from

  52. 1:35

    scratch to follow along and create your

  53. 1:37

    own video right now run npm init video

  54. 1:40

    from the terminal to initialize remotion

  55. 1:42

    it provides a variety of different

  56. 1:43

    templates to start with my goal is to

  57. 1:45

    show you the basic step by step so i'm

  58. 1:46

    going to choose a blank typescript

  59. 1:48

    template the first place we'll go is the

  60. 1:50

    video.tsx file which contains a remotion

  61. 1:53

    video component think of this component

  62. 1:55

    as your entire video now a video is made

  63. 1:58

    up of one or more compositions remotion