FFmpeg.wasm icon

FFmpeg.wasm

Process audio and video files using FFmpeg.wasm

Rotate/Flip Video

AI-generated

Summary

Rotate a video by specified degrees and/or flip it horizontally or vertically.

Inputs

  • binaryPropertyName (required) — Name of the binary property containing the input video file to rotate/flip.

Output shape

binary

The processed video is stored in the binary property specified by outputBinaryPropertyName. The output includes the video data, a generated filename (outputName), and its mime type derived from rotateOutputFormat.

Examples

Example 1: Rotate 90° clockwise with default settings

Set rotation to 90, leave flipHorizontal and flipVertical at false. The video will be processed with the transpose=1 FFmpeg filter. Output defaults to mp4 format.

Example 2: Rotate 180° and flip both horizontally and vertically

Set rotation to 180, flipHorizontal to true, flipVertical to true. FFmpeg applies two transpose=1 calls plus hflip and vflip filters. Output format can be changed via rotateOutputFormat.

Links

Discussion