🎥 Make videos programmatically with React
explain setEveryNthFrame() and setLoop()
Jonny Burgerdeb1d1ac5f0a
diff --git a/packages/docs/docs/config.md b/packages/docs/docs/config.mdindex 8f06e7b098..9f125143dd 100644--- a/packages/docs/docs/config.md+++ b/packages/docs/docs/config.md@@ -318,6 +318,32 @@ Config.Rendering.setEveryNthFrame(2);The [command line flag](/docs/cli/render#--every-nth-frame) `--every-nth-frame` will take precedence over this option.+### setEveryNthFrame()++This option may only be set when rendering GIFs. It determines how many frames are rendered, while the other ones gets skipped in order to lower the FPS of the GIF.++For example, if the `fps` is 30, and `everyNthFrame` is 2, the FPS of the GIF is `15`.++```ts twoslash+import { Config } from "remotion";+// ---cut---+Config.Rendering.setEveryNthFrame(2);+```++The [command line flag](/docs/cli/render#--every-nth-frame) `--every-nth-frame` will take precedence over this option.++### setLoop()++This option may only be set when rendering GIFs. If it is set, it will limit the amount of times a GIF will loop. If set to `0`, the GIF will play once, if set to `1`, it will play twice. If set to `null` or not set at all, it will play forever.++```ts twoslash+import { Config } from "remotion";+// ---cut---+Config.Rendering.setLoop(2);+```++The [command line flag](/docs/cli/render#--loop) `--loop` will take precedence over this option.+## Output### setOverwriteOutput()