diff options
author | corey <corey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-17 23:47:10 +0000 |
---|---|---|
committer | corey <corey@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-17 23:47:10 +0000 |
commit | fac2fee9fe724e7b639310113fe6161654b44a67 (patch) | |
tree | 3ecf228fc2a2947d044b2792fa3dea776da27670 | |
parent | c0e553be1e00d03e7881d958068c5aaab79715f6 (diff) | |
download | mpv-fac2fee9fe724e7b639310113fe6161654b44a67.tar.bz2 mpv-fac2fee9fe724e7b639310113fe6161654b44a67.tar.xz |
Support libavcodec vrc_strategy=1 (XviD ratecontrol).
As a side effect, this also makes -lavcopts vcodec=xvid work.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17887 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | DOCS/man/en/mplayer.1 | 13 | ||||
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | libmpcodecs/ve_lavc.c | 2 |
3 files changed, 18 insertions, 2 deletions
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1 index bae291bb2a..8b08e6340a 100644 --- a/DOCS/man/en/mplayer.1 +++ b/DOCS/man/en/mplayer.1 @@ -7088,7 +7088,18 @@ currently useless . .TP .B vrc_strategy -Dummy, reserved for future use. +Ratecontrol method. +Note that some of the ratecontrol-affecting options will have no effect +if vrc_strategy is not set to 0. +.PD 0 +.RSs +.IPs 0 +Use internal lavc ratecontrol (default). +.IPs 1 +Use XviD ratecontrol (experimental; requires MEncoder to be compiled +with XviD support). +.RE +.PD 1 . .TP .B vb_qfactor=<-31.0\-31.0> @@ -6348,6 +6348,7 @@ cat > $TMPC << EOF int main(void) { xvid_init(0, 0, 0, 0); return 0; } EOF _ld_xvid="$_ld_xvid -lxvidcore" +_xvid4=no if test "$_xvid" != no && cc_check $_inc_xvid $_ld_xvid $_ld_lm ; then _xvid=yes _def_xvid3='#define HAVE_XVID3 1' @@ -6360,8 +6361,10 @@ int main(void) { xvid_global(0, 0, 0, 0); return 0; } EOF if test "$_xvid" != no && cc_check $_inc_xvid $_ld_xvid $_ld_lm ; then _xvid=yes + _xvid4=yes _def_xvid3='#undef HAVE_XVID3' _def_xvid4='#define HAVE_XVID4 1' + _def_lavc_xvid='#define CONFIG_XVID 1' _codecmodules="xvid $_codecmodules" else _xvid=no @@ -7384,6 +7387,7 @@ AMR_NB_FIXED=$_amr_nb_fixed AMR_WB=$_amr_wb `echo $_libavcodecs | tr '[a-z] ' '[A-Z]\n' | sed 's/^/CONFIG_/;s/$/=yes/'` CONFIG_FAAC=$_faac +CONFIG_XVID=$_xvid4 CONFIG_GPL=yes CONFIG_MUXERS=yes @@ -7750,6 +7754,7 @@ $_def_amr_wb /* Use specific codecs from libavcodec */ `echo $_libavcodecs | tr '[a-z] ' '[A-Z]\n' | sed 's/^/#define CONFIG_/;s/$/ 1/'` $_def_lavc_faac +$_def_lavc_xvid /* Use codec libs included in mplayer CVS / source dist: */ $_def_mp3lib diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index f4674280e0..efc8d7b582 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -74,7 +74,7 @@ static float lavc_param_vi_qoffset = 0.0; static int lavc_param_vmax_b_frames = 0; static int lavc_param_keyint = -1; static int lavc_param_vpass = 0; -static int lavc_param_vrc_strategy = 2; +static int lavc_param_vrc_strategy = 0; static int lavc_param_vb_strategy = 0; static int lavc_param_luma_elim_threshold = 0; static int lavc_param_chroma_elim_threshold = 0; |