Open main menu

FFMPEG An Intermediate Guide/Flags Flags

< FFMPEG An Intermediate Guide

This should help define the flags command in FFMPEG.

The flag command is used to by calling "-flag", followed by a single space and then all flags with a plus "+" or minus "-" sign preceding each indicating active or inactive flag respectively.

Contents

mv4Edit

Affects: Encoding, Video

use four motion vector by macroblock (mpeg4)

obmcEdit

Affects: Encoding, Video

use overlapped block motion compensation (h263+)

qpelEdit

Affects: Encoding, Video

use 1/4 pel motion compensation

loopEdit

Affects: Encoding, Video

use loop filter

gmcEdit

Affects: Encoding, Video

use gmc

mv0Edit

Affects: Encoding, Video

always try a mb with mv=<0,0>

partEdit

Affects: Encoding, Video

use data partitioning

grayEdit

Affects: Encoding, Decoding, Video

only decode/encode grayscale

psnrEdit

Affects: Encoding, Video

error[?] variables will be set during encoding

naqEdit

Affects: Encoding, Video

normalize adaptive quantization

low_delayEdit

Affects: Encoding, Video

force low delay

altEdit

Affects: Encoding, Video

enable alternate scantable (mpeg2/mpeg4)

global_headerEdit

Affects: Encoding, Video, Audio

place global headers in extradata instead of every keyframe

bitexactEdit

Affects: Encoding, Decoding, Video, Audio, S (not sure but assuming subtitles)

EDVAS use only bitexact stuff (except (i)dct)

aicEdit

Affects: Encoding, Video

h263 advanced intra coding / mpeg4 ac prediction

umvEdit

Affects: Encoding, Video

use unlimited motion vectors

umv is no longer a flag option

cbpEdit

Affects: Encoding, Video

use rate distortion optimization for cbp

qprdEdit

Affects: Encoding, Video

use rate distortion optimization for qp selection

aivEdit

Affects: Encoding, Video

h263 alternative inter vlc

sliceEdit

Affects: Encoding, Video

slice is no longer a flag option

ilmeEdit

Affects: Encoding, Video Codecs/Containers: MPEG 2 and MPEG 4. Interlaced fotage

Force InterLaced Motion Estimation, this is only necessary if you are working with interlaced video. It will force FFMPEG to maintain Quality with interlace footage. If you wish to deinterlace your footage please use '-deinterlace' option, but this will cause a quality lose in the video. Rule of thumb is anything intended is for television is interlace, any other delivery format is most likely progressive.

ildctEdit

Affects: Encoding, Video

Use when encoding Interlaced footage to ensure that FFMPEG doesn't field merge your DCT. Only affects Interlaced footage.

scan_offsetEdit

Affects: Encoding, Video

will reserve space for svcd scan offset user data

cgopEdit

Affects: Encoding, Video

closed gop

ProblemsEdit

trellEdit

Trell is no longer a flag option, please use -trellis instead.