summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorJuanjo <pulento@users.sourceforge.net>2002-04-09 17:16:09 +0000
committerJuanjo <pulento@users.sourceforge.net>2002-04-09 17:16:09 +0000
commit29da453b32e8905cf6d5bf13f9d14343872088ad (patch)
treeb041f3e6d7662f84b1a12536e8afdae01b361744 /ffmpeg.c
parente0d2714adc4985198a4c9fadf76508cfe7c131d0 (diff)
- New switch to activate 4MV in ffmpeg.
Originally committed as revision 394 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 2c18cd852d..d5cdb57d7b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -85,6 +85,7 @@ static float video_qcomp = 0.5;
static int video_disable = 0;
static int video_codec_id = CODEC_ID_NONE;
static int same_quality = 0;
+static int use_4mv = 0;
static int do_deinterlace = 0;
static int gop_size = 12;
@@ -1762,6 +1763,10 @@ void opt_output_file(const char *filename)
video_enc->quality = video_qscale;
}
+ if (use_4mv) {
+ video_enc->flags |= CODEC_FLAG_HQ;
+ video_enc->flags |= CODEC_FLAG_4MV;
+ }
video_enc->qmin= video_qmin;
video_enc->qmax= video_qmax;
video_enc->max_qdiff= video_qdiff;
@@ -2110,6 +2115,7 @@ const OptionDef options[] = {
{ "vcodec", HAS_ARG | OPT_EXPERT, {(void*)opt_video_codec}, "force video codec", "codec" },
{ "me", HAS_ARG | OPT_EXPERT, {(void*)opt_motion_estimation}, "set motion estimation method",
"method" },
+ { "4mv", OPT_BOOL | OPT_EXPERT, {(void*)&use_4mv}, "use four motion vector by macroblock (only MPEG-4)" },
{ "sameq", OPT_BOOL, {(void*)&same_quality},
"use same video quality as source (implies VBR)" },
/* audio options */