🎥 Make videos programmatically with React
docs
Jonny Burger8b2a46425da3
diff --git a/packages/docs/docs/renderer/get-can-extract-frames-fast.md b/packages/docs/docs/renderer/get-can-extract-frames-fast.mdindex 9f843e393a..12cdf2cb51 100644--- a/packages/docs/docs/renderer/get-can-extract-frames-fast.md+++ b/packages/docs/docs/renderer/get-can-extract-frames-fast.md@@ -1,6 +1,6 @@---title: getCanExtractFramesFast()-id: can-extract-frames-fast+id: get-can-extract-frames-fast---_Available since v3.3.2 - Part of the `@remotion/renderer` package._@@ -32,6 +32,14 @@ When `canExtractFramesFast` is `false`, you should check the `shouldReencode` flVideos with a VP8 codec don't support fast frame extraction at all, and therefore `shouldReencode` can be false even if `canExtractFramesFast` is false.+## Reencoding a video++You can re-encode a video using FFmpeg:++```sh+ffmpeg -i inputvideo.mp4 outputvideo.mp4+```+## ArgumentsAn object containing one or more of the following options:diff --git a/packages/docs/docs/slow-method-to-extract-frame.md b/packages/docs/docs/slow-method-to-extract-frame.mdindex 099a9ae954..0d72fe283a 100644--- a/packages/docs/docs/slow-method-to-extract-frame.md+++ b/packages/docs/docs/slow-method-to-extract-frame.md@@ -18,6 +18,10 @@ While it is not an error itself, it warns that the render must do an expensive o- If it's a VP8 video in a WebM container and the selected image format is PNG, we cannot accurately extract the frame using FFMPEG and need to resort to the slow method.- **Recommendation**: Prefer the VP9 codec instead, or switch the image format to JPEG (in which you will lose transparency however)+## Checking whether a video has this issue++You can use the [getCanExtractFramesFast()](/docs/renderer/get-can-extract-frames-fast)+## See also- [`<OffthreadVideo>`](/docs/offthreadvideo)diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 6784640f99..ba7b143080 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -108,7 +108,7 @@ module.exports = {"renderer/make-cancel-signal","renderer/ensure-ffmpeg","renderer/ensure-ffprobe",- "renderer/can-extract-frames-fast",+ "renderer/get-can-extract-frames-fast",],},{