(ffmpeg-utils)2.7. Syntax | Color

doc

Color

Official documentation says:

It can be the name of a color as defined below (case insensitive match) or a [0x|#]RRGGBB[AA] sequence, possibly followed by @ and a string representing the alpha component.

The alpha component may be a string composed by 0x followed by an hexadecimal number or a decimal number between 0.0 and 1.0, which represents the opacity value (0x00 or 0.0 means completely transparent, 0xff or 1.0 completely opaque). If the alpha component is not specified then 0xff is assumed.

The string random will result in a random color.

#! /bin/sh
# specifying color with "0xRRGGBB"
ffmpeg -i video.mkv -vf "
    color=0xFF0000:size=150x150
        ,loop=-1:size=2[m];
    [0:v][m]overlay=x=100:y=100
" -f matroska - | ffplay -
#! /bin/sh
# specifying color with "#RRGGBB"
ffmpeg -i video.mkv -vf "
    color=#FF0000:size=150x150
        ,loop=-1:size=2[m];
    [0:v][m]overlay=x=100:y=100
" -f matroska - | ffplay -
#! /bin/sh
# specifying color with "0xRRGGBBAA"
ffmpeg -i video.mkv -vf "
    color=0xFF00007F:size=150x150
        ,loop=-1:size=2[m];
    [0:v][m]overlay=x=100:y=100
" -f matroska - | ffplay -
#! /bin/sh
# specifying color with "0xRRGGBB@alpha"
ffmpeg -i video.mkv -vf "
    color=0xFF0000@0.3:size=150x150
        ,loop=-1:size=2[m];
    [0:v][m]overlay=x=100:y=100
" -f matroska - | ffplay -
#! /bin/sh
# specifying color with named color followed by "@alpha"
ffmpeg -i video.mkv -vf "
    color=red@0.5:size=150x150
        ,loop=-1:size=2[m];
    [0:v][m]overlay=x=100:y=100
" -f matroska - | ffplay -

named colors

AliceBlue

0xF0F8FF

../_images/namedcolor_AliceBlue.png

AntiqueWhite

0xFAEBD7

../_images/namedcolor_AntiqueWhite.png

Aqua

0x00FFFF

../_images/namedcolor_Aqua.png

Aquamarine

0x7FFFD4

../_images/namedcolor_Aquamarine.png

Azure

0xF0FFFF

../_images/namedcolor_Azure.png

Beige

0xF5F5DC

../_images/namedcolor_Beige.png

Bisque

0xFFE4C4

../_images/namedcolor_Bisque.png

Black

0x000000

../_images/namedcolor_Black.png

BlanchedAlmond

0xFFEBCD

../_images/namedcolor_BlanchedAlmond.png

Blue

0x0000FF

../_images/namedcolor_Blue.png

BlueViolet

0x8A2BE2

../_images/namedcolor_BlueViolet.png

Brown

0xA52A2A

../_images/namedcolor_Brown.png

BurlyWood

0xDEB887

../_images/namedcolor_BurlyWood.png

CadetBlue

0x5F9EA0

../_images/namedcolor_CadetBlue.png

Chartreuse

0x7FFF00

../_images/namedcolor_Chartreuse.png

Chocolate

0xD2691E

../_images/namedcolor_Chocolate.png

Coral

0xFF7F50

../_images/namedcolor_Coral.png

CornflowerBlue

0x6495ED

../_images/namedcolor_CornflowerBlue.png

Cornsilk

0xFFF8DC

../_images/namedcolor_Cornsilk.png

Crimson

0xDC143C

../_images/namedcolor_Crimson.png

Cyan

0x00FFFF

../_images/namedcolor_Cyan.png

DarkBlue

0x00008B

../_images/namedcolor_DarkBlue.png

DarkCyan

0x008B8B

../_images/namedcolor_DarkCyan.png

DarkGoldenRod

0xB8860B

../_images/namedcolor_DarkGoldenRod.png

DarkGray

0xA9A9A9

../_images/namedcolor_DarkGray.png

DarkGreen

0x006400

../_images/namedcolor_DarkGreen.png

DarkKhaki

0xBDB76B

../_images/namedcolor_DarkKhaki.png

DarkMagenta

0x8B008B

../_images/namedcolor_DarkMagenta.png

DarkOliveGreen

0x556B2F

../_images/namedcolor_DarkOliveGreen.png

Darkorange

0xFF8C00

../_images/namedcolor_Darkorange.png

DarkOrchid

0x9932CC

../_images/namedcolor_DarkOrchid.png

DarkRed

0x8B0000

../_images/namedcolor_DarkRed.png

DarkSalmon

0xE9967A

../_images/namedcolor_DarkSalmon.png

DarkSeaGreen

0x8FBC8F

../_images/namedcolor_DarkSeaGreen.png

DarkSlateBlue

0x483D8B

../_images/namedcolor_DarkSlateBlue.png

DarkSlateGray

0x2F4F4F

../_images/namedcolor_DarkSlateGray.png

DarkTurquoise

0x00CED1

../_images/namedcolor_DarkTurquoise.png

DarkViolet

0x9400D3

../_images/namedcolor_DarkViolet.png

DeepPink

0xFF1493

../_images/namedcolor_DeepPink.png

DeepSkyBlue

0x00BFFF

../_images/namedcolor_DeepSkyBlue.png

DimGray

0x696969

../_images/namedcolor_DimGray.png

DodgerBlue

0x1E90FF

../_images/namedcolor_DodgerBlue.png

FireBrick

0xB22222

../_images/namedcolor_FireBrick.png

FloralWhite

0xFFFAF0

../_images/namedcolor_FloralWhite.png

ForestGreen

0x228B22

../_images/namedcolor_ForestGreen.png

Fuchsia

0xFF00FF

../_images/namedcolor_Fuchsia.png

Gainsboro

0xDCDCDC

../_images/namedcolor_Gainsboro.png

GhostWhite

0xF8F8FF

../_images/namedcolor_GhostWhite.png

Gold

0xFFD700

../_images/namedcolor_Gold.png

GoldenRod

0xDAA520

../_images/namedcolor_GoldenRod.png

Gray

0x808080

../_images/namedcolor_Gray.png

Green

0x008000

../_images/namedcolor_Green.png

GreenYellow

0xADFF2F

../_images/namedcolor_GreenYellow.png

HoneyDew

0xF0FFF0

../_images/namedcolor_HoneyDew.png

HotPink

0xFF69B4

../_images/namedcolor_HotPink.png

IndianRed

0xCD5C5C

../_images/namedcolor_IndianRed.png

Indigo

0x4B0082

../_images/namedcolor_Indigo.png

Ivory

0xFFFFF0

../_images/namedcolor_Ivory.png

Khaki

0xF0E68C

../_images/namedcolor_Khaki.png

Lavender

0xE6E6FA

../_images/namedcolor_Lavender.png

LavenderBlush

0xFFF0F5

../_images/namedcolor_LavenderBlush.png

LawnGreen

0x7CFC00

../_images/namedcolor_LawnGreen.png

LemonChiffon

0xFFFACD

../_images/namedcolor_LemonChiffon.png

LightBlue

0xADD8E6

../_images/namedcolor_LightBlue.png

LightCoral

0xF08080

../_images/namedcolor_LightCoral.png

LightCyan

0xE0FFFF

../_images/namedcolor_LightCyan.png

LightGoldenRodYellow

0xFAFAD2

../_images/namedcolor_LightGoldenRodYellow.png

LightGreen

0x90EE90

../_images/namedcolor_LightGreen.png

LightGrey

0xD3D3D3

../_images/namedcolor_LightGrey.png

LightPink

0xFFB6C1

../_images/namedcolor_LightPink.png

LightSalmon

0xFFA07A

../_images/namedcolor_LightSalmon.png

LightSeaGreen

0x20B2AA

../_images/namedcolor_LightSeaGreen.png

LightSkyBlue

0x87CEFA

../_images/namedcolor_LightSkyBlue.png

LightSlateGray

0x778899

../_images/namedcolor_LightSlateGray.png

LightSteelBlue

0xB0C4DE

../_images/namedcolor_LightSteelBlue.png

LightYellow

0xFFFFE0

../_images/namedcolor_LightYellow.png

Lime

0x00FF00

../_images/namedcolor_Lime.png

LimeGreen

0x32CD32

../_images/namedcolor_LimeGreen.png

Linen

0xFAF0E6

../_images/namedcolor_Linen.png

Magenta

0xFF00FF

../_images/namedcolor_Magenta.png

Maroon

0x800000

../_images/namedcolor_Maroon.png

MediumAquaMarine

0x66CDAA

../_images/namedcolor_MediumAquaMarine.png

MediumBlue

0x0000CD

../_images/namedcolor_MediumBlue.png

MediumOrchid

0xBA55D3

../_images/namedcolor_MediumOrchid.png

MediumPurple

0x9370D8

../_images/namedcolor_MediumPurple.png

MediumSeaGreen

0x3CB371

../_images/namedcolor_MediumSeaGreen.png

MediumSlateBlue

0x7B68EE

../_images/namedcolor_MediumSlateBlue.png

MediumSpringGreen

0x00FA9A

../_images/namedcolor_MediumSpringGreen.png

MediumTurquoise

0x48D1CC

../_images/namedcolor_MediumTurquoise.png

MediumVioletRed

0xC71585

../_images/namedcolor_MediumVioletRed.png

MidnightBlue

0x191970

../_images/namedcolor_MidnightBlue.png

MintCream

0xF5FFFA

../_images/namedcolor_MintCream.png

MistyRose

0xFFE4E1

../_images/namedcolor_MistyRose.png

Moccasin

0xFFE4B5

../_images/namedcolor_Moccasin.png

NavajoWhite

0xFFDEAD

../_images/namedcolor_NavajoWhite.png

Navy

0x000080

../_images/namedcolor_Navy.png

OldLace

0xFDF5E6

../_images/namedcolor_OldLace.png

Olive

0x808000

../_images/namedcolor_Olive.png

OliveDrab

0x6B8E23

../_images/namedcolor_OliveDrab.png

Orange

0xFFA500

../_images/namedcolor_Orange.png

OrangeRed

0xFF4500

../_images/namedcolor_OrangeRed.png

Orchid

0xDA70D6

../_images/namedcolor_Orchid.png

PaleGoldenRod

0xEEE8AA

../_images/namedcolor_PaleGoldenRod.png

PaleGreen

0x98FB98

../_images/namedcolor_PaleGreen.png

PaleTurquoise

0xAFEEEE

../_images/namedcolor_PaleTurquoise.png

PaleVioletRed

0xD87093

../_images/namedcolor_PaleVioletRed.png

PapayaWhip

0xFFEFD5

../_images/namedcolor_PapayaWhip.png

PeachPuff

0xFFDAB9

../_images/namedcolor_PeachPuff.png

Peru

0xCD853F

../_images/namedcolor_Peru.png

Pink

0xFFC0CB

../_images/namedcolor_Pink.png

Plum

0xDDA0DD

../_images/namedcolor_Plum.png

PowderBlue

0xB0E0E6

../_images/namedcolor_PowderBlue.png

Purple

0x800080

../_images/namedcolor_Purple.png

Red

0xFF0000

../_images/namedcolor_Red.png

RosyBrown

0xBC8F8F

../_images/namedcolor_RosyBrown.png

RoyalBlue

0x4169E1

../_images/namedcolor_RoyalBlue.png

SaddleBrown

0x8B4513

../_images/namedcolor_SaddleBrown.png

Salmon

0xFA8072

../_images/namedcolor_Salmon.png

SandyBrown

0xF4A460

../_images/namedcolor_SandyBrown.png

SeaGreen

0x2E8B57

../_images/namedcolor_SeaGreen.png

SeaShell

0xFFF5EE

../_images/namedcolor_SeaShell.png

Sienna

0xA0522D

../_images/namedcolor_Sienna.png

Silver

0xC0C0C0

../_images/namedcolor_Silver.png

SkyBlue

0x87CEEB

../_images/namedcolor_SkyBlue.png

SlateBlue

0x6A5ACD

../_images/namedcolor_SlateBlue.png

SlateGray

0x708090

../_images/namedcolor_SlateGray.png

Snow

0xFFFAFA

../_images/namedcolor_Snow.png

SpringGreen

0x00FF7F

../_images/namedcolor_SpringGreen.png

SteelBlue

0x4682B4

../_images/namedcolor_SteelBlue.png

Tan

0xD2B48C

../_images/namedcolor_Tan.png

Teal

0x008080

../_images/namedcolor_Teal.png

Thistle

0xD8BFD8

../_images/namedcolor_Thistle.png

Tomato

0xFF6347

../_images/namedcolor_Tomato.png

Turquoise

0x40E0D0

../_images/namedcolor_Turquoise.png

Violet

0xEE82EE

../_images/namedcolor_Violet.png

Wheat

0xF5DEB3

../_images/namedcolor_Wheat.png

White

0xFFFFFF

../_images/namedcolor_White.png

WhiteSmoke

0xF5F5F5

../_images/namedcolor_WhiteSmoke.png

Yellow

0xFFFF00

../_images/namedcolor_Yellow.png

YellowGreen

0x9ACD32

../_images/namedcolor_YellowGreen.png