Actions21
Social Media Preset
AI-generatedSummary
Apply pre-configured FFmpeg encoding settings for a target social media platform to input video, configuring resolution, bitrate, frame rate, and optional duration limits.
Inputs
- binaryPropertyName — Name of the binary property containing the input file. Default: 'data'
- socialMediaPreset (required) — Pre-configured encoding settings for the target platform. Default: 'youtube_1080p' Options: YouTube 1080p, YouTube 720p, YouTube Shorts, Instagram Feed, Instagram Story, Instagram Reels, TikTok, Twitter / X
- outputBinaryPropertyName — Name of the binary property to store the output file. Default: 'data'. Hidden when operation is 'metadata'.
- additionalOptions.timeout — Maximum execution time in seconds. Default: 300
- additionalOptions.enableLogging — Whether to log FFmpeg output to console. Default: false
- additionalOptions.encodingPreset — Encoding speed preset for x264/x265. Faster presets produce larger files but process much quicker in WebAssembly. Default: 'ultrafast'. Options: Ultra Fast, Super Fast, Very Fast, Faster, Fast, Medium (FFmpeg default, slowest)
Output shape
Returns processed video as binary data in the property specified by outputBinaryPropertyName, with file name output_{index}_{timestamp}.mp4 and mime type video/mp4. JSON metadata includes ffmpeg operation, inputFilename, outputFilename, and file size.
Transient FFmpeg.wasm execution; temp files allocated and cleaned up; execution duration bounded by additionalOptions.timeout or default 300s.