- Home
- Skills
- Workflow Automation
- ffmpeg Preset Finder
Works with the AI Agents you already use
ffmpeg Preset Finder
Generate precise ffmpeg commands for YouTube, TikTok, and web video optimization with proper scaling and audio.
Free
ffmpeg Preset Finder
Example session with this skill installed
I need to turn a landscape video into a TikTok. I want to pad the edges so nothing gets cut off, and make sure the audio is normalized.
- Read your context and instructions
- Compiled the ffmpeg preset finder
I have generated the ffmpeg command to convert your landscape video to a 9:16 TikTok format using padding. This ensures the full frame is visible with black bars on the top and bottom.
TikTok Vertical (Padded) Command
ffmpeg -i input.mp4 \
-vf "scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920:(ow-iw)/2:(oh-ih)/2,fps=30" \
-c:v libx264 -profile:v high -pix_fmt yuv420p -crf 18 \
-af "loudnorm=I=-16:TP=-1.5:LRA=11" \
-c:a aac -ar 48000 -ac 2 -b:a 192k \
-movflags +faststart tiktok_output.mp4
Target Specification
| Property | Target Value | Flag Logic |
|---|---|---|
| Resolution | 1080x1920 | scale and pad filters maintain 9:16 aspect ratio. |
| Video Codec | H.264 (High) | libx264 with yuv420p for maximum compatibility. |
| Frame Rate | 30 fps | Standardized via fps=30 filter. |
| Audio | AAC 48kHz | Normalized to -16 LUFS via loudnorm. |
| Optimization | Faststart | +faststart allows video to play before fully downloaded. |
Next steps
- Run the command in your terminal; ensure you have
ffmpeginstalled. - Verify the output file with
ffprobe -v error -show_entries stream=width,height,r_frame_rate -of default=nw=1 tiktok_output.mp4. - Check the audio levels in your media player before uploading.
Connects securely to your tools. The creator never sees your data.
About this skill
Handling ffmpeg flags by memory leads to broken uploads and corrupted aspect ratios. This skill generates precise, copy-pasteable commands for major social platforms and web targets. It eliminates the guesswork of converting landscape footage to vertical formats or meeting specific bitrate requirements for YouTube and TikTok.
What it does
- Platform targeting generates commands optimized for YouTube, Shorts, TikTok, Reels, or generic web MP4s.
- Orientation management handles landscape-to-portrait conversions using padding or cropping logic.
- Audio normalization includes optional loudness passes to ensure consistent volume levels.
- Spec verification provides
ffprobecommands to validate the output against target requirements. - Flag explanation breaks down every complex filter and codec setting for transparency.
How it works
- Context gathering identifies the target platform, source orientation, and desired fit (pad or crop).
- Preset selection executes a script to retrieve the optimal resolution, bitrate, and codec flags.
- Command generation outputs a full
ffmpegcommand withlibx264andaacdefaults. - Validation check provides an
ffprobesnippet to verify the codec, frame rate, and pixel format.
Frameworks & tools
Uses the ffmpeg CLI, ffprobe, and a Python-based preset selector.
Why this beats prompting it yourself
Generic LLMs often hallucinate deprecated flags or incompatible filter chains that cause encoding errors. This skill uses a verified library of platform specs to ensure the command actually runs and produces a valid file on the first try.
Use cases
- Convert landscape b-roll into a padded 9:16 video for Instagram Reels.
- Prepare high-quality MP4s with
+faststartfor web playback. - Fix audio levels and sample rates for TikTok upload compliance.
- Scale and re-encode 4K footage to 1080p for standard YouTube uploads.
Known limitations
Does not support AI-based upscaling or caption generation. It will not automatically run the command to prevent accidental CPU spikes or file overwrites.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 6 days ago
- Free with an Agensi account
Requires