Converting Video to a Transparent FormatUpdated 5 days ago
This article explains how to convert MOV/MP4 files (for example, videos with a green/blue/black background or footage) into transparent video files suitable for FMX.
The workflow includes two parts:
After Effects – remove the background and export a video with an alpha channel.
FFmpeg – compress the transparent file to reduce size while keeping quality.
1. Create the Transparent Video in After Effects
Step 1: Open and Import
Launch Adobe After Effects.
Import your video into the Project panel.
Step 2: Create a Composition
Drag the video onto the New Composition button to create a comp with matching settings (typically 1080×1920 for vertical videos).
Step 3: Apply Keying to Remove the Background
Open Effects & Presets.
Go to Keying → Linear Color Key.
Drag the effect onto your video layer.
In Effect Controls, use the Eyedropper next to Key Color and click the black background.
Adjust Matching Tolerance until the background is fully removed and clean.
Step 4: Export With Transparency
Go to Composition → Add to Render Queue.
In the Render Queue, click Output Module (Lossless).
Set Format to QuickTime.
Under Video Output → Channels, choose RGB + Alpha.
Select one of the transparency-supported codecs:
Animation
Apple ProRes 4444
Render the file.
This exported MOV now contains transparency and is ready for compression.
2. Install FFmpeg (Windows)
Option A: Recommended — Official Static Build
Under Windows Builds, choose a reliable provider (e.g., gyan.dev).
Download ffmpeg-release-essentials.zip.
Extract it to a folder such as
C:\FFmpeg.Inside the
binfolder, you'll findffmpeg.exe.
Option B: Adding FFmpeg to PATH (Optional)
To run FFmpeg from any folder:
Open System Properties → Environment Variables.
Edit Path and add:
C:\FFmpeg\binRestart CMD.
Otherwise, place your video files inside the bin folder and run commands there.
3. Compress the Transparent Video With FFmpeg
Since FMX workflows standardize at 1080×1920, we keep the original resolution. No resizing is applied.
Step 1: Prepare
Copy your exported transparent .mov into the FFmpeg bin folder.
Step 2: Run CMD
Open Command Prompt:
1cd C:\FFmpeg\bin2
Step 3: Run the Conversion Command
Replace input.mov with your file name:
1ffmpeg -i input.mov -c:v png -pix_fmt rgba output_transparent.mov2
Command Explanation
-c:v png
Uses PNG video encoding, which preserves transparency while reducing file size significantly compared to uncompressed exports.-pix_fmt rgba
Ensures the output contains an alpha channel.No scale filter
The output remains at 1080×1920, which is recommended for FMX.
Final Notes
FMX supports transparent MOV files encoded in PNG or ProRes 4444.
If transparency is missing, verify:
After Effects export uses RGB + Alpha.
FFmpeg output uses
-pix_fmt rgba.
PNG is preferred for FMX because it balances quality, file size, and compatibility.