--- motion-20061130-051001/ffmpeg.c 2006-11-30 04:10:03.000000000 +0000 +++ motion-20061130-051001-SWpatch/ffmpeg.c 2006-12-14 15:10:20.000000000 +0000 @@ -272,6 +272,8 @@ c->bit_rate = bps; c->width = width; c->height = height; + c->qmin = 2; /* Ensure a good quality encode */ + c->qmax = 4; /* Ensure a good quality encode */ #if LIBAVCODEC_BUILD >= 4754 /* frame rate = 1/time_base, so we set 1/rate, not rate/1 */ c->time_base.num = 1;