Skip to content

VideoWriter_fourcc

videoiofunctionOpenCV 5.0.0
import { VideoWriter_fourcc } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSc1, c2, c3, c4
FUNCTIONVideoWriter_fourcc
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Concatenates 4 chars to a fourcc code

VideoWriter_fourcc(c1: number, c2: number, c3: number, c4: number): number;
c1

c1 argument (number).

c2

c2 argument (number).

c3

c3 argument (number).

c4

c4 argument (number).

Returns

a fourcc code

This static method constructs the fourcc code of the codec to be used in the constructor VideoWriter::VideoWriter or VideoWriter::open.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.