CompaToon
Trace: • Export Harmony • Assembly Animate • Assembly Harmony • FFmpeg parameters

FFmpeg parameters

Several tasks use FFmpeg: Rough cut, Convert Video, MovFromImaSeq, Make Movie Animate…
Their FFmpeg Params field accepts the options below.

H264: the image height must be even. FFmpeg gives no warning and rendering fails. Add -vf scale=iw:-2 to prevent it.

Output formats

Need Parameters
H264 readable by QuickTime -c:v libx264 -pix_fmt yuv420p
H264 4:2:2 (not readable by QuickTime) -c:v libx264 -pix_fmt yuv422p
H264 4:4:4 (not readable by QuickTime) -c:v libx264
ProRes 4444 (ap4h) -c:v prores
ProRes 422 standard (apcn), lighter -c:v prores -pix_fmt yuv422p10le
Rough cut (recommended) -c:v libx264 -pix_fmt yuv420p -crf 22 -c:a aac -ac 2 -ar 48000
Good-quality 720p -s:v 1280×720 -c:v libx264 -c:a copy -pix_fmt yuv420p -preset slow -tune animation -crf 18

Tips

Need Parameters
Force an even height (H264) -vf scale=iw:-2
Optimise for animation -tune animation
Resize keeping the ratio -vf “scale=1920:-2”
Double the size -vf “scale=2*in_w:2*in_h”
Even out the audio (skips, offsets) -ar 48000 -ac 2

Operations

Need Parameters Output Name
Movie → image sequence -r 25/1 %a_%04d.png
First frame → PNG -ss 0 -vframes 1 -q:v 1 %a.png
Extract the first frame -frames:v 1
Extract the last frame -vf reverse -update 1 -frames:v 1

Remove identical frames (still, black or white shots)

Keeps the first frame and every frame that changes:

-vf "select='if(eq(n,0),1,gte(scene,0.00001))',setpts=N/FRAME_RATE/TB"

Burn in a text (tag)

-vf drawtext="fontfile=/Windows/Fonts/ariblk.ttf:text={TEXT}: fontcolor=gray: fontsize=48: x=(w-text_w-60): y=(h-text_h-60)" -codec:v dnxhd -b:v 185M -codec:a copy

Official documentation

  • ffmpeg.org – general options
  • ffmpeg.org – filters
Previous Next

Site Tools

  • Media Manager
  • Sitemap

Page Tools

  • Export to PDF
  • Fold/unfold all
  • Back to top

User Tools

  • Log In
en/compatoon/manuals/toonbox/v2/reference/ffmpeg.txt · Last modified: 2026/12/02 12:52 by twinstef
CompaToon

Table of Contents

Table of Contents

  • FFmpeg parameters
    • Output formats
    • Tips
    • Operations
    • Official documentation

Translations of this page:
  • fr
  • en

ToonBox

  • Documentation home

Getting started

  • Installation
  • Jobs and Tasks
  • The interface
  • First Job
  • Configure the software
  • Videos

I want to…

  • Create the scenes
  • Prepare the backgrounds
  • Export for compositing
  • Generate movies
  • Make a rough cut
  • Modify scenes
  • Tracker (Kitsu / ShotGrid)
  • Manage files

Reference

  • All tasks
  • % Variables
  • HyperCrop
  • Regular expressions
  • BDL format
  • Matching Table
  • Libraries
  • Action table
  • FFmpeg
  • Glossary

Help

  • Known issues
  • FAQ
  • What's new
  • Production cases

Other tools

  • ToonBox AE Plugin
  • ToonBrowser
  • ToonExpo