# interpolini > Frame interpolation and motion blur for video. Source: https://z1xus.github.io/interpolini/ ## Motion blur interpolini adds motion blur to your videos by interpolating a clip to a high frame rate and blending it back down. See [Concepts](https://z1xus.github.io/interpolini/concepts.md) if you want to learn more. ## Download To use interpolini, download the build for your system and unzip it into any folder. - [Windows](https://github.com/Z1xus/interpolini/releases/latest/download/interpolini-windows-x86_64.zip) - [macOS (Apple Silicon)](https://github.com/Z1xus/interpolini/releases/latest/download/interpolini-macos-arm64.zip) - [macOS (Intel)](https://github.com/Z1xus/interpolini/releases/latest/download/interpolini-macos-x86_64.zip) - [Linux](https://github.com/Z1xus/interpolini/releases/latest/download/interpolini-linux-x86_64.zip) On Windows you can use the installer instead. It can add a [Send to](https://z1xus.github.io/interpolini/install.md) shortcut, so you can open a clip in interpolini or start a render without leaving Explorer. [Windows installer](https://github.com/Z1xus/interpolini/releases/latest/download/interpolini-windows-x86_64-setup.exe) These are the official builds from [GitHub](https://github.com/Z1xus/interpolini). If you're deciding whether to trust them, read [Trust](https://z1xus.github.io/interpolini/install.md). The only other place to get interpolini is the [Codeberg mirror](https://codeberg.org/Z1xus/interpolini). Don't download it from anywhere else. If you did, I'm in no way responsible, and you should treat that computer as compromised: reinstall the OS and change your passwords. As [Microsoft's first law of security](https://learn.microsoft.com/en-us/previous-versions/cc722487(v=technet.10)) puts it, "If a bad guy can persuade you to run his program on your computer, it's not your computer anymore." On Linux, you can also [add interpolini to the app menu](https://z1xus.github.io/interpolini/install.md). When a new version is out, an Update button appears under Render. You can turn this check off in Settings > General. --- # Get started > Render your first clip with interpolini. Source: https://z1xus.github.io/interpolini/get-started/ ## Add clips Drop clips into the window. Each clip appears on the timeline. To record clips, see [Recording](https://z1xus.github.io/interpolini/elsewhere.md). ## Check the settings The defaults [interpolate](https://z1xus.github.io/interpolini/interpolation-settings.md) to 960 fps and [blend](https://z1xus.github.io/interpolini/blending-settings.md) to 60 fps. To change a setting, open its section in the panel. Each section has its own page under Settings. ## Render Press [Render](https://z1xus.github.io/interpolini/render.md). interpolini saves the result next to the source clip as `name - interpolini.mp4`. --- # Concepts > How interpolation and blending make motion blur, and where artifacts come from. Source: https://z1xus.github.io/interpolini/concepts/ ## Interpolation Your video is a series of frames, usually 60 or more per second. Interpolation estimates the motion between two frames, which makes it possible to add more frames in between. For example, this clip was recorded at 240 fps. At 960 fps, three interpolated frames come between each pair of recorded frames. The more frames you record, the less the picture changes from one frame to the next, and the more accurate the frames in between are. ## Blending With that many frames, you can blend them. Blending averages nearby frames into one, which gives the [motion blur](https://en.wikipedia.org/wiki/Motion_blur_(media)) that a camera makes with a long shutter. At the defaults, each 60 fps output frame is the average of 17 interpolated frames, and [Intensity](https://z1xus.github.io/interpolini/blending-settings.md) sets how many frames blend. ## Artifacts The estimate is not always right. When an object moves fast or changes shape between two frames, interpolation can tear it apart or leave holes in it. These errors are called artifacts. Here, a 60 fps copy of a clip was interpolated to 240 fps, so you can compare the result with the frame that was recorded at the same moment. SVP tears the sword apart, and RIFE leaves small holes in it. ## Reducing artifacts The first thing to try is recording at a higher frame rate, since more recorded frames make the frames in between more accurate. The [rife](https://z1xus.github.io/interpolini/interpolation-settings.md) engine is usually more accurate than svp too, but it takes longer to render. With svp, [Speed](https://z1xus.github.io/interpolini/interpolation-settings.md) and [pre-interpolation](https://z1xus.github.io/interpolini/pre-interpolation-settings.md) also change how many artifacts you see. interpolini also has three [masking](https://z1xus.github.io/interpolini/masking-settings.md) methods that protect fixed parts of the picture, such as the HUD, from these artifacts: [peel](https://z1xus.github.io/interpolini/masking-settings.md), [still](https://z1xus.github.io/interpolini/masking-settings.md) and [image](https://z1xus.github.io/interpolini/masking-settings.md). --- # Timeline > How to arrange, trim and cut clips on the timeline. Source: https://z1xus.github.io/interpolini/timeline/ ## Tracks Video and audio clips sit on separate tracks. Add a track with +V or +A, and change its height with Alt and the mouse wheel. ## Track menu To open this menu, right-click a track name or press T. Remove track also removes the clips on the track. ## Add clips A file you drop on the timeline lands on the track and time where you drop it, and overwrites the clips it covers. A video with sound also adds one audio clip for each of its audio tracks. An image lasts 5 seconds. To swap the file of a clip, choose Replace in the clip menu. The clip keeps its place, its cuts and its settings. - **Video**: `mp4 mkv mov webm avi m4v ts flv` - **Audio**: `mp3 wav flac ogg opus m4a aac` - **Images**: `png jpg jpeg webp bmp` ## Select clips - Add or remove a clip: `Ctrl click` - Select a range: `Shift click` - Select an area: `Drag on empty space` - Select all: `Ctrl A` - Clear the selection: `Esc` ## Move clips Drag a clip to move it, even to another track. It stops at the next clip unless you hold Ctrl, which lets it overwrite the clips that it covers. Hold Alt to move the video and the audio of a file apart. - Move 1 frame: `Comma`, `Period` - Move 1 second: `Shift Comma`, `Shift Period` ## Snapping With snapping on, the edge of a clip sticks to the playhead, to the start of the timeline and to the edges of other clips. N turns it on or off, and Shift flips it for one drag. ## Trim Drag an edge of a clip, or move the playhead to where the clip should start or end and press I or O. X restores the full length. When two clips touch, the next clip follows the edge. Hold Alt to trim only one clip. ## Split Split cuts every clip under the playhead in two. Each part is a clip of its own, so it can have [its own settings](https://z1xus.github.io/interpolini/clip-settings.md). ## Remove and ripple delete Delete removes the selected clips and leaves a gap. Shift Delete is a ripple delete, which also closes the gap. If you use ripple delete more often, Ripple delete by default in Settings swaps the two keys. To close a gap later, right-click it and choose Ripple delete. Edit > Close gaps closes all of them at once. ## Clip speed Right-click a clip to change its speed, from 0.13x to 8x. With interpolation on, a slowed clip becomes smooth slow motion, because interpolation adds the frames that it lacks. For an audio clip, Gain in the same menu changes the volume, from -24 dB to +24 dB. ## Fades and crossfades Drag a top corner of a clip to fade it in or out, for up to 5 seconds. To choose the curve of a fade, right-click near that edge of the clip. To set a crossfade, right-click between two clips that touch. ## Zoom and scroll - Zoom at the pointer: `Ctrl wheel` - Zoom at the playhead: `Ctrl +`, `Ctrl -` - Scroll: `Shift wheel` - Fit all clips: `\` ## Keyboard - Play or pause: `Space`, `K` - Step 1 frame: `Left`, `Right` - Back or forward 1 second: `J`, `L`, `Shift Left`, `Shift Right` - Step to a keyframe: `Alt Left`, `Alt Right` - Go to start or end: `Home`, `End` - Volume: `Up`, `Down` - Mute: `M` - Next or previous clip: `]`, `[` - Set start or end: `I`, `O` - Split: `S`, `Ctrl K`, `Ctrl B` - Remove clip: `Delete`, `Backspace` - Ripple delete: `Shift Delete` - Restore full length: `X` - Close the gap: `G` - Undo: `Ctrl Z` - Redo: `Ctrl Shift Z`, `Ctrl Y` Step to a keyframe only works in [Lossless cut](https://z1xus.github.io/interpolini/render.md). To see all hotkeys, choose Help > Shortcuts. --- # Preview > How to compare the result with the original, zoom and transform clips. Source: https://z1xus.github.io/interpolini/preview/ ## Views The tabs above the preview switch between the original clip and the result with your settings, or show both at once, split by a line that you drag or side by side. ## Hold to compare Hold the backtick key (`) to see the original, and release it to go back to your view. ## Zoom and pan Scroll over the preview to zoom. Drag to move the picture. Press the zoom button to fit the picture, or double-click the picture to return to the Default preview zoom from Settings. ## Playback resolution Playback resolution sets the size of the preview. Playback never stops to wait for frames. When your settings are too slow to play in real time, Auto lowers the size, and Full, 1/2 and 1/4 keep their size and show fewer frames. interpolini keeps the frames that it has processed, so a part that has played is not processed again. While the preview is paused it also prepares the frames after the playhead, and a line on the ruler of the timeline marks the parts that are ready. Preview cache in Settings turns this off, and Preview memory sets how much memory the preview can use. Turn off Preview in the right-click menu of the picture to hide the preview. ## Save frame Save frame, or Ctrl Shift E, saves the picture in the preview as a PNG file next to the source clip. ## Transform Press Transform to show the transform box of the selected clip. The box moves, scales and crops the clip on the canvas. Double-click the box to reset it. ## Move Drag the box to move the clip. The arrow keys move it by 1 pixel, and by 10 with Shift. ## Scale Drag a corner to scale the clip around its center. The plus and minus keys scale it by 5 percent. ## Crop Drag the handle on an edge to crop that side. ## Stretch Shift drag the handle on an edge to stretch the clip on that axis instead of cropping it. --- # Clip settings > How to use different settings for each clip, and how to share your config. Source: https://z1xus.github.io/interpolini/clip-settings/ ## All clips Settings for decides which clips your changes reach. By default that is all clips, so a change in the panel goes to every clip on the timeline. ## This clip To give a clip its own settings, select it and set Settings for to this clip. Your changes then go only to that clip, or to every selected clip when you select several. ## Configs A new clip takes its settings from the `interpolini.ini` in its folder. When the folder has no such file, it takes the settings on screen, which start from Default preset in Settings > General. To load another config for the selected clip, choose it in the Config list. ## Share To share your config, open Share and press Copy, which puts the settings of the panel on the clipboard as a short code. A LUT file is not part of the code. You can also send the config file itself, which is the `.ini` file next to the app, or in the folder of the clip when the clip has its own `interpolini.ini`. To use a code from someone else, paste it under Use a code and press Apply. Like any other change, it goes to the clips that [Settings for](https://z1xus.github.io/interpolini/clip-settings.md) is set to. --- # Projects > How to save, open and recover projects. Source: https://z1xus.github.io/interpolini/projects/ ## Turn on project files Project files are off by default. To use them, turn on Project files in Settings > Projects. ## Save Save, or Ctrl S, writes the project to a `.lini` file with the timeline, the settings of each clip and the view. It holds the paths of the source clips, not the clips themselves, so if you move them, choose Locate missing files in the File menu. ## Open New project is Ctrl N and Open project is Ctrl O. You can also drop a `.lini` file on the window. If you have unsaved changes, interpolini asks to save them first. Turn off Ask to save in Settings to skip this. ## Recent projects Open recent lists the last 8 projects. With Reopen last project on in Settings, interpolini opens the latest project at start. ## Autosave Autosave writes a recovery copy when the project has unsaved changes, and the project file stays as you saved it. ## Recover If interpolini closes with unsaved changes, for example after a crash, it offers to recover them at the next start. ## Project settings Project settings sets the Resolution, Frame rate and Background of the project. New clips can fit the canvas, fill it or keep their size. --- # Render > How to render the timeline to a file. Source: https://z1xus.github.io/interpolini/render/ ## Render Render makes one file from the whole timeline. The file goes next to the first video clip as `name - interpolini.mp4`, or to the [Render folder](https://z1xus.github.io/interpolini/render.md). ## Export each clip separately With File > Export each clip separately on, Render makes one file for each video clip, named after that clip. These files have no fades and no images. ## Lossless cut Lossless cut at the top of the panel copies each clip to its own file with no new encode. Cuts go to the nearest keyframe. Not kept lists what a copy loses, such as fades or speed. ## Render folder Render folder in Settings > General sets where files go. The default is the folder of the source clip. --- # Dedup > How dedup replaces the repeated frames of a recording. Source: https://z1xus.github.io/interpolini/dedup-settings/ ## Dedup section **`dedup.enabled`** (default: `yes`, range: `yes, no`) When a game draws fewer frames than the recording rate, the recording repeats frames, resulting in a picture that stops and then jumps. Dedup replaces each repeated frame with an interpolated one. In this example the game draws 60 fps in a 240 fps recording, so 3 of every 4 frames are repeats. With dedup off the blur shows a separate copy of the wall edge, and with dedup on it is smooth. The header shows the share of repeated frames in the clip. ## Repeats replaced **`dedup.repeats`** (default: `100%`, range: `0 to 100%`) Sets how many of the repeated frames dedup replaces, starting with the ones that differ least from the frame before. At 50%, the copy of the wall edge is fainter. --- # Pre-interpolation > How RIFE raises the frame rate before the svp engine. Source: https://z1xus.github.io/interpolini/pre-interpolation-settings/ ## Pre-interpolation section **`pre-interpolation.enabled`** (default: `no`, range: `yes, no`) RIFE raises the frame rate first, and the svp engine interpolates the result from closer frames. The render is slower. The previews interpolate a 60 fps copy of the clip to 240 fps. Pick recorded to compare with the real 240 fps frame. Here, svp alone loses the sword, and pre-interpolation keeps it. ## Frame rate **`pre-interpolation.fps`** (default: `2x`, range: `2 to 100000, or 1x to 1000x`) Sets the frame rate that RIFE makes. Enter a rate in fps, or a multiple of the clip rate such as 2x or 2.5x. A higher rate gives svp closer frames, but the render is slower. When it matches the [interpolation frame rate](https://z1xus.github.io/interpolini/interpolation-settings.md), RIFE makes all the frames. ## Backend **`rife.backend`** (default: `vulkan`, range: `vulkan, tensorrt`) Sets how RIFE runs on the GPU. The vulkan backend works on any GPU with Vulkan. The tensorrt backend needs an NVIDIA GPU and the [TensorRT component](https://z1xus.github.io/interpolini/components.md). The frames of the two backends are almost identical, as the difference shows. ## Model **`rife.model`** (default: `rife-v4.6`, range: `rife-v4.6, rife-v4.15-lite, rife-v4.22-lite, rife-v4.25, rife-v4.25-lite, rife-v4.26`) Sets the RIFE model. The list shows the installed models, and Get more models opens [Components](https://z1xus.github.io/interpolini/components.md). These examples run RIFE alone at 4x. Each model breaks the sword edge in its own way, and here rife-v4.15-lite blurs the right edge. No model is best for every clip, so compare them on yours. --- # Interpolation > The interpolation engines and their settings. Source: https://z1xus.github.io/interpolini/interpolation-settings/ ## Interpolation section **`interpolation.enabled`** (default: `yes`, range: `yes, no`) With interpolation off, [blending](https://z1xus.github.io/interpolini/concepts.md) averages the recorded frames. Except for Frame rate, the previews on this page interpolate a 60 fps copy of the clip to 240 fps. Pick recorded to compare with the real 240 fps frame. ## Engine **`interpolation.engine`** (default: `svp`, range: `svp, rife`) Sets how interpolini finds the motion between two frames. The svp engine follows the motion of small blocks of pixels. The rife engine uses a neural network. Here, svp breaks up the sword edge, and rife keeps it closer to the recorded frame, but neither engine wins on every clip. Which one to use depends on your footage and on the look you like. The svp engine can also run after [pre-interpolation](https://z1xus.github.io/interpolini/pre-interpolation-settings.md). ## Frame rate **`interpolation.fps`** (default: `960`, range: `2 to 100000, or 1x to 1000x`) Sets the frame rate of the interpolated frames, in fps or as a multiple such as 4x. A multiple applies to the clip rate, or to the [pre-interpolation](https://z1xus.github.io/interpolini/pre-interpolation-settings.md) rate when that is on. [Blending](https://z1xus.github.io/interpolini/concepts.md) takes its frames from this stream, so a higher rate gives a smoother blur. With blending off, this is the output frame rate. The preview blends each rate to 60 fps. At 120, the wall edge shows 3 separate copies. At 960, it is the average of 17 frames. ## Speed **`interpolation.speed`** (default: `faster`, range: `medium, fast, faster, fastest`) Sets how closely svp searches for motion. Smaller blocks can follow smaller shapes, but the result depends on the clip. Here, fast keeps the sword best and fastest breaks it apart. - **medium**: 8 px blocks, with refinement - **fast**: 16 px blocks, with refinement - **faster**: 16 px blocks, no refinement - **fastest**: 32 px blocks, no refinement ## Tuning **`interpolation.tuning`** (default: `film`, range: `weak, smooth, film, animation`) Sets what svp expects from the clip. - **weak**: a more thorough search for motion - **smooth, film**: the standard search, with the same result - **animation**: 32 px blocks for flat drawn pictures. Warps edges in a game. ## Look **`interpolation.algorithm`** (default: `13`, range: `2, 13, 23`) Sets the SVP algorithm for the interpolated frames. The panel names the values sharp (2), standard (13) and smooth (23). Here, sharp keeps the sword whole with a blue fringe, and standard leaves holes in it. Smooth gives the same frames as standard in this clip. Which look is right is a matter of taste. ## Half-size analysis **`interpolation.half size`** (default: `yes`, range: `yes, no`) Makes svp search for motion on a picture of half the size. The result depends on the clip. Here, no erases most of the sword. It only works when the width and height of the clip are divisible by 4. ## Backend and Model The rife engine has the same [Backend](https://z1xus.github.io/interpolini/pre-interpolation-settings.md) and [Model](https://z1xus.github.io/interpolini/pre-interpolation-settings.md) settings as pre-interpolation, so a change in one place applies to both. --- # Masking > How masking keeps the HUD and other fixed parts from warping. Source: https://z1xus.github.io/interpolini/masking-settings/ ## Masking section **`mask.enabled`** (default: `yes`, range: `yes, no`) Masking keeps fixed parts of the picture, such as the HUD, from warping. The examples on this page use a 60 fps copy of the clip, where the errors are larger. Most show one interpolated frame without blending. ## Method **`mask.method`** (default: `peel`, range: `peel, still, image`) - **peel**: removes the HUD before interpolation and restores it after, also when the HUD is transparent - **still**: fades pixels that do not change between frames instead of warping them - **image**: keeps the original frame in the parts that a mask picture marks With masking off, the chat smears when the camera turns. Peel keeps it sharp. Still leaves faint copies of some letters. Image keeps the original frame in a box over the chat, so the wall in the box does not move with the scene. ## Peel limit **`mask.peel limit`** (default: `6`, range: `1 to 20`) Peel counts a pixel as HUD when it does not follow the motion of the scene. A higher limit marks fewer pixels as HUD. At 20, parts of the chat do not count as HUD and smear. ## Still limit **`mask.limit`** (default: `4.5`, range: `0 to 20`) A pixel counts as still when it changes by no more than this value between two frames, on a scale of 0 to 255. Raising it marks more pixels as still. This example blends. At 20, the moving grass counts as still and gets no motion blur. ## Edge **`mask.edge`** (default: `5`, range: `0 to 20`) Edge and Tolerance mark detail that stays the same between two frames as still, such as text. Edge is the lowest strength of that detail, on a scale of 0 to 255. Lowering it lets weaker detail count. At 0, the texture of the moving wall counts as still and shows as grain. Tolerance is 100 in this comparison. ## Tolerance **`mask.tolerance`** (default: `30%`, range: `0 to 100%`) Sets how much a detail may change between two frames and still count as still, as a percent of its strength. Raising it marks more pixels as still. At 100, the texture of the moving wall counts as still and shows as grain. Edge is 0 in this comparison. ## Mask gallery **`mask.image`** (default: `none`, range: `a mask name`) A mask is a PNG file in the `masks` folder next to the app, and black in it keeps the original frame. Click a mask to use it, or hover over one to see it on the preview. To add a mask, press + to draw one on the clip or import an image, or drop PNG, JPG, WebP or BMP files on the section. ## Soft edge **`mask.soft edge`** (default: `0`, range: `0 to 100`) Blurs the mask out from its edge, so the original frame fades into the interpolated frame. The value is in pixels at 1080p. At 0, the wall in the box ends at the top edge of the box. At 100, it fades out above the box. ## Mask editor To open the editor in the Masking section, choose Draw on the clip or Edit, or double-click a mask. Paint the parts of the preview that keep the original frame. ## Mask editor keys - Erase: `Right drag`, `Alt drag` - Paint or erase: `X`, `E` - Brush, box, ellipse: `B`, `R`, `O` - Brush size: `[`, `]` - Straight line: `Shift click` - Square or circle: `Shift drag` - Invert: `Ctrl I` - Zoom, move the view: `Wheel`, `Middle drag` - Cancel: `Esc` --- # Blending > How blending turns the interpolated frames into motion blur. Source: https://z1xus.github.io/interpolini/blending-settings/ ## Blending section **`blending.enabled`** (default: `yes`, range: `yes, no`) The graph shows how many frames blend and the weight of each frame. Blending only works when its Frame rate is lower than the rate of the incoming frames. With the defaults, those are the 960 fps from interpolation. ## Frame rate **`blending.fps`** (default: `60`, range: `1 to 1000`) Sets the output frame rate. A lower rate blends more [interpolated](https://z1xus.github.io/interpolini/concepts.md) frames into each output frame, so the blur is longer. From 960 fps, each output frame blends 17 frames at 60 fps and 33 frames at 30 fps. ## Intensity **`blending.intensity`** (default: `1`, range: `0 to 4`) Scales how many frames blend into each output frame. At 1 the blend covers the time of one output frame. At 2 the blur is twice as long, and at 0 there is no blur. How much blur looks good is up to you. ## Gamma **`blending.gamma`** (default: `1`, range: `1 to 10`) Sets how brightness blends. At 1 the blend is a plain average, and a bright spot fades into the dark around it. Raising it gives bright pixels more weight, so the spot leaves a bright streak. ## Weighting **`blending.weighting`** (default: `equal`, range: `equal, gaussian, gaussian_sym, pyramid, ascending, descending, vegas, custom`) Sets how much each blended frame counts. The graph in the [Blending section](https://z1xus.github.io/interpolini/blending-settings.md) shows the weights from the first frame to the last. No weighting is correct, so pick the blur you like. - **equal**: every frame counts the same - **pyramid**: the middle frame counts most - **gaussian_sym**: the middle frame counts most, in a bell curve - **ascending**: later frames count more - **gaussian**: later frames count more, in a bell curve - **descending**: earlier frames count more - **vegas**: equal, but the two end frames count half when the count is even - **custom**: a list of weights, such as [1, 2, 5] --- # Color > How to change the colors of the result. Source: https://z1xus.github.io/interpolini/color-settings/ ## Color section **`color.enabled`** (default: `no`, range: `yes, no`) interpolini changes the colors after [blending](https://z1xus.github.io/interpolini/concepts.md) and before [upscaling](https://z1xus.github.io/interpolini/upscale-settings.md). ## Brightness **`color.brightness`** (default: `1`, range: `0 to 2`) Multiplies the brightness of each pixel. 1 changes nothing. A bright area clips to white and loses its detail. ## Contrast **`color.contrast`** (default: `1`, range: `0 to 2`) Moves the brightness of each pixel away from mid gray. 1 changes nothing. A lower value flattens the picture. ## Saturation **`color.saturation`** (default: `1`, range: `0 to 2`) Scales the strength of the colors. 1 changes nothing, and 0 makes the picture gray. ## Hue **`color.hue`** (default: `0 degrees`, range: `-180 to 180 degrees`) Turns every color around the color wheel. 0 changes nothing, and 180 gives the opposite colors. ## LUT **`color.lut`** (default: `none`, range: `a .cube file`) Applies a 3D LUT from a `.cube` file after the four settings above. The example LUT tints shadows blue and highlights warm. --- # Upscale > How to scale the result to a higher resolution. Source: https://z1xus.github.io/interpolini/upscale-settings/ ## Upscale section **`upscale.enabled`** (default: `no`, range: `yes, no`) interpolini scales each frame after [color](https://z1xus.github.io/interpolini/color-settings.md) and before it encodes the frame. Upscaling adds no detail. It is mostly used for [YouTube](https://z1xus.github.io/interpolini/elsewhere.md), where a higher resolution gets a higher bitrate and looks less compressed. ## Resolution **`upscale.resolution`** (default: `2160p`, range: `1080p, 1440p, 2160p`) Sets the short side of the output. A 1920x1080 clip becomes 2560x1440 at 1440p and 3840x2160 at 2160p. interpolini never scales down, so a clip with a short side at or above this value stays as it is. ## Method **`upscale.method`** (default: `nearest`, range: `nearest, bilinear, bicubic, lanczos`) Sets how the new pixels are drawn. The example enlarges a small part of a 2160p frame, the sword edge and the crosshair, so each pixel shows. - **nearest**: copies the closest pixel. Edges stay hard, and from 1080p to 2160p each pixel becomes a 2x2 block. - **bilinear**: mixes the 4 closest pixels. The result is soft. - **bicubic**: mixes 16 pixels and keeps more sharpness - **lanczos**: the sharpest of the four. It can draw a light halo along strong edges. In this example, bicubic and lanczos look almost the same. --- # Output > How interpolini encodes the result. Source: https://z1xus.github.io/interpolini/output-settings/ ## Output section interpolini encodes the frames after [upscaling](https://z1xus.github.io/interpolini/upscale-settings.md). The header shows the estimated size of the file. ## Codec **`output.codec`** (default: `h264`, range: `h264, hevc, av1`) Sets the video format. - **h264**: plays on almost every device - **hevc**: usually a smaller file at the same quality, but fewer players and sites take it - **av1**: usually the smallest file and the slowest encode. Hardware encoding needs a newer GPU. [More about codecs, quality and presets](https://z1xus.github.io/interpolini/elsewhere.md). ## Encoder **`output.encoder`** (default: `auto`, range: `auto, hardware, software`) Sets which encoder makes the video. - **auto**: the hardware encoders of the computer first, then a software encoder - **hardware**: only hardware encoders. The render fails when none opens. - **software**: libx264, libx265 or libsvtav1 The hardware encoders are NVENC, AMF, QSV, VAAPI, Vulkan and VideoToolbox. Hardware encoders are usually faster. Software encoders usually make a smaller file at the same quality. ## Target **`output.target`** (default: `quality`, range: `quality, size`) - **quality**: keeps the quality the same and lets the file size change. The panel shows [Quality](https://z1xus.github.io/interpolini/output-settings.md). - **size**: keeps the file size near a limit and lets the quality change. The panel shows [Size](https://z1xus.github.io/interpolini/output-settings.md). ## Quality **`output.quality`** (default: `20`, range: `0 to 51`) Sets the quality when the target is quality. A lower number gives better quality and a larger file. These examples use the software encoder. At 30, the grass loses detail. At 40, blocks replace the blurred sword. The same number gives other results in other encoders. ## Size **`output.size`** (default: `10 MB`, range: `1 to 100000 MB`) Sets the size of the file in MB when the target is size. ## Effort **`output.effort`** (default: `fast`, range: `fastest, fast, balanced, best`) Sets how much time the encoder spends on each frame. A higher effort usually makes a smaller file at the same quality and renders slower. A preset in [Options](https://z1xus.github.io/interpolini/output-settings.md) replaces the effort. ## Audio tracks **`output.audio`** (default: `mix`, range: `separate, mix`) Sets what happens to the audio tracks of a clip, for example game, voice and music. The mix option mixes all tracks into one, and the separate option keeps each track as it is. ## Options **`output.options`** (default: `empty`, range: `text`) Passes options to the encoder. Write each as a name and a value, for example `-preset p7 -cq 18`. The names are the FFmpeg names of the encoder. The options replace the settings that interpolini makes. `-c:v` with an encoder name, for example `-c:v hevc_nvenc`, makes interpolini use that encoder and skip the others. ## Container **`output.container`** (default: `mp4`, range: `mp4, mkv, mov`) Sets the file type of the result. - **mp4**: plays almost everywhere - **mov**: the usual choice for editing programs - **mkv**: holds almost any stream. Plays in most desktop players, but in fewer browsers and phones. --- # Install > How to verify a download and add interpolini to Explorer or the Linux app menu. Source: https://z1xus.github.io/interpolini/install/ ## Trust interpolini is [open source](https://github.com/Z1xus/interpolini), and every release is built from source in [GitHub Actions](https://docs.github.com/en/actions/get-started/understand-github-actions), where [everyone can see the build](https://github.com/Z1xus/interpolini/actions/workflows/release.yml). Releases are [immutable](https://docs.github.com/en/code-security/concepts/supply-chain-security/immutable-releases), so nobody can change the files of a release after it is out. GitHub also attests each release, which lets you [verify](https://docs.github.com/en/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/verify-release-integrity) that your download is the file from the release. ## Send to on Windows The Windows installer has a Send to option. It adds `interpolini` and `interpolini GUI` to the Send to menu of Explorer. Right-click a clip and choose interpolini to render it with the [CLI](https://z1xus.github.io/interpolini/cli.md), or interpolini GUI to open it in the window. ## App menu on Linux The portable build does not add itself to the app menu. To add it yourself, download the icon first. ```shell mkdir -p ~/.local/share/icons/hicolor/scalable/apps curl -fsSLo ~/.local/share/icons/hicolor/scalable/apps/interpolini.svg https://raw.githubusercontent.com/Z1xus/interpolini/main/assets/interpolini.svg ``` Then save this as `~/.local/share/applications/interpolini.desktop` and point the Exec line at the folder where you unzipped interpolini. Keep the file name, because the taskbar needs it to show the icon. ```ini [Desktop Entry] Type=Application Name=Interpolini Exec=/path/to/interpolini/interpolini Icon=interpolini Categories=AudioVideo;Video; StartupWMClass=interpolini ``` --- # Components > How to install RIFE models and TensorRT, and choose the FFmpeg libraries. Source: https://z1xus.github.io/interpolini/components/ ## Open Components Choose File > Settings and open Components. ## RIFE models Each RIFE model is a separate download. Removing a model also deletes its TensorRT engine. ## TensorRT TensorRT needs an NVIDIA GPU with driver 525.60 or newer on Linux, or 527.41 or newer on Windows. Install (3.1 GB) downloads the NVIDIA libraries. Set Backend to tensorrt in the Interpolation section. The first run with each model takes longer, because interpolini builds a TensorRT engine for it. ## FFmpeg Source sets which FFmpeg libraries interpolini uses: the bundled ones that come with the app, the system ones on Linux, or custom ones from a folder that you pick with Choose folder. The libraries must have the same version as the bundled ones. Restart applies the change. [More about FFmpeg](https://z1xus.github.io/interpolini/elsewhere.md). --- # CLI and config > How to render with interpolini-cli and write config files. Source: https://z1xus.github.io/interpolini/cli/ ## Usage `interpolini-cli` renders clips without the window. It is in the same folder as the app. It saves each result where [Render](https://z1xus.github.io/interpolini/get-started.md) does. ```shell interpolini-cli clip.mp4 interpolini-cli first.mp4 second.mp4 ``` - `-c, --config `: Load a named config or an ini file - `-s, --set `: Change one setting - `--from `: Start of the part to render - `--to `: End of the part to render - `--mute `: Leave out an audio track - `-1, --join`: Put all clips into one file - `-g, --global`: Skip the configs in the folders of the clips - `-j, --json`: Print events as JSON lines - `-h, --help`: Show the usage - `-V, --version`: Show the version The CLI reads the same [config files](https://z1xus.github.io/interpolini/cli.md) and the same settings as the window. ## Settings To change one setting for this run, pass `-s section.key=value`. Repeat it for more settings. The names are the same as in the config file, and a key with a space needs quotes. ```shell interpolini-cli -s blending.fps=120 -s output.codec=hevc clip.mp4 interpolini-cli -s "mask.peel limit=10" -s mask.enabled=no clip.mp4 ``` ## Part of a clip To render a part of the clip, pass `--from` and `--to` in seconds. To leave out an audio track, pass `--mute` with its number, for example `--mute 2` for the second track. To put all clips into one file in the order you give them, pass `--join`. ```shell interpolini-cli --from 10 --to 25 clip.mp4 interpolini-cli --mute 2 clip.mp4 interpolini-cli --join first.mp4 second.mp4 ``` ## Batch and scripts interpolini renders the clips one after the other, and each clip takes its own config. ```shell interpolini-cli -c fast *.mp4 interpolini-cli --global *.mp4 interpolini-cli --json clip.mp4 ``` With `--json`, the CLI prints one JSON line for each event: start, info, warning, preparing, progress, done and failed. ```json {"event":"start","clip":"clip.mp4"} {"event":"progress","frame":120,"frames":1800,"fps":96.5} {"event":"done","clip":"clip.mp4","output":"clip - interpolini.mp4","seconds":18.7} ``` The exit code is 0 when all clips are done, 1 when a clip failed, 2 for wrong arguments and 130 when you stop the render. ## Wrap the CLI To use `interpolini-cli` from a script or another app, run it with `--json` and read the events from stdout. Take the path of the result from the `done` event, because interpolini never overwrites a file and adds a number to the name when it is taken. Pass the arguments as a list and not as one shell string, and give each clip as a full path. Always pass at least one clip, because without one the CLI opens a [file dialog](https://z1xus.github.io/interpolini/cli.md) and waits. Pass `-c` with the path of your own ini file as well, so the settings don't depend on an `interpolini.ini` next to the clip or the app. If what you're running is public, please don't pass arbitrary or user-controlled strings in `-s` or the config: [output.options](https://z1xus.github.io/interpolini/output-settings.md) goes to the encoder as it is, and `color.lut` makes interpolini read a file. Clips from other people are a risk of their own, because FFmpeg decodes them inside the process. For those, run the CLI in a sandbox or a container with a time limit and without network access, which it never needs. To stop a render, send one interrupt, which is Ctrl C, or SIGTERM on Linux and macOS. interpolini closes the file at the next frame, so it is shorter but still plays, and exits with code 130. A second interrupt quits at once and deletes the unfinished file. Don't kill the process, because that leaves a broken file behind. ## File picker Start `interpolini-cli` without a clip to choose clips in a file dialog. ## interpolini.ini interpolini reads its settings from a text file named `interpolini.ini`. A setting that is missing from the file uses its default. ```ini ; a line that starts with ; or # is a comment [interpolation] engine: rife fps: 480 [rife] backend: tensorrt model: rife-v4.25 [blending] fps: 60 weighting: equal [output] codec: hevc quality: 18 ``` To save the settings of the panel to this file, press Save in the Config row. New creates a named config. ## Lookup order For each clip, interpolini uses the first config it finds: 1. `interpolini.ini` in the folder of the clip 2. `interpolini.ini` in the folder of the app 3. the built-in defaults With `--config name`, it looks for `interpolini.name.ini` instead. --- # Elsewhere > Other tools and guides for recording, sharing and encoding. Source: https://z1xus.github.io/interpolini/elsewhere/ ## Recording [OBS](https://obsproject.com/) is the usual choice for recording, because you can tune almost everything about how it captures and encodes your game. On Linux there's also [GPU Screen Recorder](https://git.dec05eba.com/gpu-screen-recorder/about/), which works like ShadowPlay and can save the last few minutes you played. > [If you're interested in recording, ctt.cx has good guides on it.](https://ctt.cx/video/obs/) ## Sharing > [ctt.cx lists file hosts that do not compress your video.](https://ctt.cx/misc/filesharing/) ## YouTube > [Read the upload settings that YouTube recommends.](https://support.google.com/youtube/answer/1722171) ## FFmpeg > [Get other FFmpeg builds at ffmpeg.org.](https://ffmpeg.org/) > [The FFmpeg wiki explains codecs, quality and presets.](https://trac.ffmpeg.org/wiki/Encode/H.264) --- # Credits > Who made interpolini and what it is built on. Source: https://z1xus.github.io/interpolini/credits/ ## Author interpolini is made by [z1xus](https://z1x.us/). ## Thanks None of this would have been possible without the projects and people below, so thank you, all of you! [Smoothie](https://github.com/couleur-tweak-tips/smoothie-rs) is where interpolini comes from. It grew out of an attempt to run Smoothie in a browser, and it still does the same job today, so a huge thanks to Couleur and everyone who worked on it. [ctt.cx](https://ctt.cx/) is the original place to learn all of this, with guides on recording, codecs, file sharing and Smoothie itself, which is why these docs keep linking to it. [blur](https://blur.sh/) by f0e is another great way to add motion blur, and its [recommended settings](https://github.com/f0e/blur#recommended-settings-for-gameplay-footage) are worth a read even if you use interpolini. And thank you [Omnipathic](https://www.youtube.com/@omnipathic) for the clips you see all over these docs! ## Built on interpolini is built on a lot of other people's work: [RIFE](https://github.com/hzwer/ECCV2022-RIFE) by hzwer and its [ncnn port](https://github.com/TNTwise/rife-ncnn-vulkan) by nihui and TNTwise, [SVPflow](https://www.svp-team.com/wiki/Plugins:_SVPflow) by the SVP team, the original behind [open-svpflow](https://github.com/Z1xus/open-svpflow), [FFmpeg](https://ffmpeg.org/) for decoding and encoding, and [Slint](https://slint.dev/) for the window. Thank you to everyone in the community around these projects too. interpolini wouldn't be here without you.