Skip to content

🎥 Make videos programmatically with React

remotion 3.3 blog post

Jonny Burger029920f63a0f
diff --git a/packages/docs/blog/2022-11-14-remotion-3-3.md b/packages/docs/blog/2022-11-14-remotion-3-3.md
new file mode 100644
index 0000000000..598b0f7d21
--- /dev/null
+++ b/packages/docs/blog/2022-11-14-remotion-3-3.md
@@ -0,0 +1,238 @@
+---
+slug: 3-3
+title: Remotion 3.3
+author: Jonny Burger
+author_title: Chief Hacker @ Remotion
+author_url: https://github.com/JonnyBurger
+author_image_url: https://avatars2.githubusercontent.com/u/1629785?s=460&u=12eb94da6070d00fc924761ce06e3a428d01b7e9&v=4
+image: TODO
+---
+
+## Basics
+
+### FFmpeg installation made easy
+
+Now, when you are rendering a video and don't have FFmpeg installed, Remotion will download a copy for you.
+Previously, installing FFmpeg required 7 steps on Windows and took several minutes when using Homebrew on macOS.
+
+When deploying Remotion on a server, you can now also let Remotion install FFmpeg for you using the [`ensureFfmpeg()`](/docs/renderer/ensure-ffmpeg) API or the [`npx remotion install ffmpeg`](/docs/cli/install) command. Learn more about [FFmpeg auto-install](/docs/ffmpeg) here.
+
+### `<Sequence>` makes `from` optional, accepts style and ref
+
+[`<Sequence from={0}>`](/docs/sequence) can now be shortened to [`<Sequence>`](/docs/sequence). Our ESLint plugin was updated to suggest this refactor automatically.
+
+You can now also `style` a sequence if you did not pass `layout="none"`.
+
+A `ref` can be attached to `<Sequence>` and [`<AbsoluteFill>`](/docs/absolute-fill).
+
+### Video and Audio support `loop` prop
+
+The [`<Video>`](/docs/video) and [`<Audio>`](/docs/audio) components now support the [`loop`](/docs/video#loop) property
+
+## Preview
+
+### New CLI output
+
+When starting the Remotion Preview, it now shows on which URL the preview is running. The Webpack output is now also cleaner.
+
+### Pinch to Zoom
+
+If your device supports multitouch, you can now pinch to zoom the composition. Alternatively, you can hold <kbd>Ctrl</kbd>/<kbd>Cmd</kbd> and use your scrollwheel to zoom.
+
+Using two fingers, you can move the canvas around and pressing <kbd>0</kbd> will reset the canvas. For the latter, there is also a button in the top-right corner that you can click.
+
+### Signal that Remotion Preview disconnected
+
+When quitting the Remotion Preview using `Ctrl+C`, for example to render a video, A new red popup will signalize that Fast Refresh will not work anymore.
+
+### Quick Switcher
+
+By pressing <kbd>Cmd+K</kbd>, you can trigger a new Quick Switcher. It has three functions:
+
+- Fuzzy-search a composition to jump to that composition.
+- Type `> ` followed by an item in the menu bar to trigger that action.
+- Type `? ` followed by a search term to query the docs.
+
+### Search the docs from the Remotion Preview
+
+Pressing <kbd>?</kbd> to reveal the keyboard shortcuts now has a secondary function: You can type in any term to search the Remotion documentation!
+
+### Shorter commands
+
+Previously, a Remotion CLI command looked like this:
+
+```bash
+npx remotion render src/index.tsx my-comp output.mp4
+```
+
+We now allow you to skip the output name, in this case the render would land in `out/my-comp.mp4` by default:
+
+```bash
+npx remotion render src/index.tsx my-comp
+```
+
+You can also omit the composition name and Remotion will ask which composition to render:
+
+```bash
+npx remotion render src/index.tsx
+```
+
+:::note
+Experimental: We might change the behavior to rendering all compositions in the future.
+:::
+
+Finally, you can also omit the entry point and Remotion will take an educated guess!
+
+```bash
+npx remotion render
+```
+
+If you deviate from the defaults of our templates, you can set an [entry point](/docs/config#setentrypoint) in your config file and leave it out from Remotion commands.
+
+### Auto-reload environment variables
+
+If you change values in your `.env` file, the Remotion Preview will reload and pick them up without having to restart.
+
+## Rendering
+
+### `--muted` render
+
+This new flag can be passed to a render to ignore the audio. If you know that your video has no audio, this can make your render faster.
+
+### `--enforce-audio-track`
+
+When no audio was detected in your video, the audio will now be dropped (except on Lambda). With this new flag, you can enforce that a silent audio track is added.
+
+### `--audio-bitrate` and `--video-bitrate`
+
+These flags allow you to set a target bitrate for audio or video. Those flags are not recommended though, use `--crf` instead.
+
+### `--height` and `--width` flags
+
+Using these flags, you can ignore the width and height you have defined for your output, and override it. The difference to `--scale` is that the viewport and therefore the layout may actually change.
+
+### Obtain slowest frames
+
+If you add `--log=verbose`, the slowest frames are shown in order, so you can optimize them. Slowest frames are also available for [`renderMedia()`](/docs/renderer/render-media) using the [`onSlowestFrames`](/docs/renderer/render-media#onslowestframes) callback.
+
+### Negative numbers when rendering a still
+
+When rendering a still, you may now pass a negative frame number to refer to frames from the back of the video. `-1` is the last frame of a video, `-2` the second last, and so on.
+
+### Override FFmpeg command
+
+The FFmpeg command that Remotion executes under the hood can [now be overriden reducer-style](/docs/config#overrideffmpegcommand).
+
+## Server-side rendering
+
+### Resuming renders if they crash
+
+If a render crashes due to being resource-intensive (see: [Target closed](/docs/target-closed)), Remotion will now retry each frame up to one time, to prevent long renders from failing on low-resource machines.
+
+### Getting the overall progress from `renderMedia()`
+
+Previously, only the separated progress for rendering and encoding was reported. There is a new field, simply named `progress`, in the [`onProgress`](/docs/renderer/render-media#onprogress) callback that you can use to display progress without calculating it yourself.
+
+### Easier function signature for bundle()
+
+Previously, [`bundle()`](/docs/bundle) accepted three arguments: `entryPoint`, `onProgress` and `options`.
+
+Since getting the progress was less important than some of the options, `bundle()` now accepts an object with options, progress callback and entryPoint altogether. The previous signature is still supported.
+
+## Player
+
+### `<Thumbnail>` component
+
+The new [`<Thumbnail>`](/docs/api/thumbnail) component is like the [`<Player>`](/docs/api/player), but for rendering a preview of a still. You can use it to display a specific frame of a video without having to render the component.
+
+### Player `frameupdate` event
+
+In addition to `timeupdate`, you can subscribe to `frameevent`, which fires whenever the current frame changes. You can use it for example to render a custom frame-accurate time display.
+
+### Player volume slider is responsive
+
+If the Player is displayed in a narrow container, the volume control now goes upwards instead of to the right, in order to save some space.
+
+### getScale() method
+
+Using the imperative `getScale()` method, you can now how big the displayed size is in comparison to the canvas width of the component.
+
+### `initiallyShowControls`
+
+On YouTube, the video always starts with controls shown and then they fade out after a few seconds. We have made this the default behavior in Remotion as well, because users would often not realize that the Player is interactive otherwise.
+
+### `in`/`out` ranges
+
+Using the `in` and `out` props, you can force the Remotion Player to only play a certain section of a video. The rest of the seek bar will be greyed out.
+
+### Customize Play button and fullscreen button
+
+Using [`renderPlayPauseButton`](/docs/player/player#renderplaypausebutton) and [`renderFullscreenButton`](/docs/player/player#renderfullscreenbutton), you can customize the appearance of the Player more granularly.
+
+### Start player from an offset
+
+You can define the initial frame on which your component gets mounted on. This will be the default position of the video, however, it will not clamp the playback range like the `inFrame` prop.
+
+## New `prefetch()` API
+
+In addition to the [`Preload APIs`](/docs/api/preload), [`prefetch()`](/docs/prefetch) presents another way of preloading an asset so it is ready to display when it is supposed to appear in the Remotion Player. See [`@remotion/preload` vs. `prefetch()`](/docs/player/player#renderfullscreenbutton) for a comparison.
+
+## Remix template
+
+The Remix template is our first SaaS template! It includes the Remotion Preview, the Player and Remotion Lambda out of the box to jumpstart you with everything you need to create your app that offers customized video generation.
+
+## New `@remotion/google-fonts` package
+
+It is now easy to import Google Fonts into Remotion! `@remotion/google-fonts` takes care of correct loading, and is fully type-safe!
+
+## New `@remotion/motion-blur` package
+
+This package contains two components: [`<Trail>`](/docs/motion-blur/trail) and [`<CameraMotionBlur>`](/docs/motion-blur/camera-motion-blur), assisting you with achieving awesome motion blur effects!
+
+## New `@remotion/noise` package
+
+This package offers easy, type-safe, pure functions for getting creative with noise. Check out [our playground](/docs/noise-visualization) to see what you can do with it!
+
+## New `@remotion/paths` package
+
+This package offers utilities for animating and manipulating SVG paths! With 9 pure, type-safe functions, we cover many common need while working with SVG paths.
+
+## Lambda improvements
+
+### Webhook support
+
+### Lift Lambda Payload limits
+
+Previously, the input props payload that is passed to a Lambda render could not be bigger than 256KB when serialized. Now, this limit is lifted, since if the payload is big, it will be stored to S3 instead being passed directly to the Lambda function.
+
+### Lambda artifact can be saved to another cloud
+
+### Deleting a render from Lambda
+
+The new [`deleteRender()`](/docs/lambda/delete-render) API will delete the output video from the S3 bucket, which you previously had to do through the console or with the AWS SDK.
+
+### Make `renderMediaOnLambda()` params optional
+
+The following options are now optional:
+
+- `imageFormat`: (defaulting to `jpeg`)
+- `privacy` (defaulting to `public`)
+- `maxRetries` (defaulting to 1)
+
+## Benchmark command
+
+The new `npx remotion benchmark` helps you compare different render configurations and find out which one is the fastest. Currently, you can compare different codecs, compositions and concurrency values. Each configuration is run multiple times in order increase confidence in the results.
+
+## API updates
+
+### `getGifDurationInSeconds()`
+
+### Lottie animation direction
+
+### Lottie embedded images
+
+## Notable bug fixes
+
+- Temp dir is cleaned up
+- Parallel encoding disabled when not having a lot of RAM
+- GIFs in strict mode fixed