🎥 Make videos programmatically with React
add videos
Jonny Burger8cd71f080e55
diff --git a/packages/docs/blog/2021-04-15-remotion-2-0.md b/packages/docs/blog/2021-04-15-remotion-2-0.mdindex 4f8d17ccbb..72c1ebe377 100644--- a/packages/docs/blog/2021-04-15-remotion-2-0.md+++ b/packages/docs/blog/2021-04-15-remotion-2-0.md@@ -35,6 +35,12 @@ You can now also completely omit the video from the output and only emit an audi## `@remotion/media-utils` package+<div>+ <video width="100%" height="100%" controls playsinline autoplay="true" muted loop>+ <source src="/img/mediautils.mp4" type="video/mp4" />+ </video>+</div>+This is a new helper package which includes functions useful for dealing with audio. Besides audio visualization, you can also for example measure the duration of an audio or video source, which is really useful for making a composition duration dynamic. The functions included are [`getAudioData()`](/docs/get-audio-data), [`getAudioDuration()`](/docs/get-audio-duration), [`getVideoMetadata()`](/docs/get-video-metadata), [`getWaveformPortion()`](/docs/get-waveform-portion), [`visualizeAudio()`](/docs/visualize-audio) and [`useAudioData()`](/docs/use-audio-data).All of them except the last one are completely independent from the ideas of Remotion, so they might be a great fit for your other non-Remotion projects as well! This package is MIT-licensed, so you everybody can use it without obtaining a company license.@@ -54,6 +60,12 @@ By default the **rich timeline** feature is disabled, but will be enabled by def## ESBuild loader+<div>+ <video width="100%" height="100%" controls playsinline autoplay="true" muted loop>+ <source src="/img/esbuild.mp4" type="video/mp4" />+ </video>+</div>+The traditional transpilation of Javascript and Typescript using `babel-loader` has been replaced by the faster `esbuild-loader` by default.This will speed up bundling by a lot - hopefully you won't notice any other differences! If you for some reason need to go back to the previous behavior, you may override the Webpack config - [we are releasing a helper that makes it easy](/docs/legacy-babel).@@ -80,12 +92,24 @@ Learn more about the [`--frames`](/docs/config#setframerange) CLI option.## `@remotion/gif` component+<div>+ <video width="100%" height="100%" controls playsinline autoplay="true" muted loop>+ <source src="/img/gif.mp4" type="video/mp4" />+ </video>+</div>+A new GIF component released in the `@remotion/gif` package is now available. The `<Gif />` component allows to load a local or remote GIF and synchronizes it with Remotions `useCurrentFrame()`. For that it parses the GIF using WebAssembly - basically it's really cool tech! Thanks a lot to [@jeetiss](https://github.com/jeetiss) for contributing this new component.[Learn more about the GIF component here](/docs/gif).## Resizable editor panels+<div>+ <video width="100%" height="100%" controls playsinline autoplay="true" muted loop>+ <source src="/img/resizeable.mp4" type="video/mp4" />+ </video>+</div>+In the editor, you can now resize the timeline as well as the left sidebar. Thanks a lot to [Arthur Denner](https://github.com/arthurdenner) for this awesome contribution!## interpolate()@@ -98,6 +122,12 @@ const opacity = interpolate(frame, [0, 10, durationInFrames - 10, durationInFram## 170+ tests added+<div>+ <video width="100%" height="100%" controls playsinline autoplay="true" muted loop>+ <source src="/img/tests.mp4" type="video/mp4" />+ </video>+</div>+While not strictly a new feature, this is definitely worth mentioning.[Calvin Falter](https://github.com/calvin-f), [Jonas Brunner](https://github.com/j0nezz) and [Tobias Boner](https://github.com/dydent) took Remotion as their project for their university seminar and contributed over 100 tests, strengthening the code and ironing out edge cases.diff --git a/packages/docs/static/img/esbuild.mp4 b/packages/docs/static/img/esbuild.mp4new file mode 100644index 0000000000..684518e54cBinary files /dev/null and b/packages/docs/static/img/esbuild.mp4 differdiff --git a/packages/docs/static/img/gif.mp4 b/packages/docs/static/img/gif.mp4new file mode 100644index 0000000000..0296f2e53bBinary files /dev/null and b/packages/docs/static/img/gif.mp4 differdiff --git a/packages/docs/static/img/mediautils.mp4 b/packages/docs/static/img/mediautils.mp4new file mode 100644index 0000000000..a428c5fe9dBinary files /dev/null and b/packages/docs/static/img/mediautils.mp4 differdiff --git a/packages/docs/static/img/resizeable.mp4 b/packages/docs/static/img/resizeable.mp4new file mode 100644index 0000000000..f3bf2f5d91Binary files /dev/null and b/packages/docs/static/img/resizeable.mp4 differdiff --git a/packages/docs/static/img/tests.mp4 b/packages/docs/static/img/tests.mp4new file mode 100644index 0000000000..d1cd1bedf8Binary files /dev/null and b/packages/docs/static/img/tests.mp4 differ