


bi3l, I had quite a bit of trouble with your ebuilds (mostly for lack of experience in dealing with them) but eventually got them working.bi3l wrote:I've made custom ebuilds for mplayer and x264. You can find them here.
Thanks.bi3l wrote:I've recently made some new ebuilds and patches for mplayer-1.0pre6. They are available here. You can do what you want with them. Just don't forget me when your tutorial will be finished and translated in english. I'll be glad to have a look on it and give some feedback.
the new versions of x264 break the buildbi3l wrote:I've made custom ebuilds for mplayer and x264. You can find them here.
Code: Select all
diff -Nuar /usr/tmp/portage/mplayer-1.0_pre7/work/MPlayer-1.0pre7/configure /root/MPlayer-1.0pre7/configure
--- configure 2005-06-16 18:40:26.000000000 -0500
+++ configure 2005-06-16 18:33:45.000000000 -0500
@@ -1821,7 +1821,7 @@
_inc_libdts=-I`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -I,g'`
;;
--with-x264libdir=*)
- _ld_x264=-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'`
+ _ld_x264="-L`echo $ac_option | cut -d '=' -f 2 | sed 's,:, -L,g'` -lm -lx264"
;;
--with-x264incdir=*)
_inc_x264=-I`echo $ac_option | cut -d '=' -f 2 |sed 's,:, -I,g'`
diff -Nuar /usr/tmp/portage/mplayer-1.0_pre7/work/MPlayer-1.0pre7/libmpcodecs/ve_x264.c /root/MPlayer-1.0pre7/libmpcodecs/ve_x264.c
--- libmpcodecs/ve_x264.c 2005-04-13 14:10:29.000000000 -0500
+++ libmpcodecs/ve_x264.c 2005-06-16 17:23:56.000000000 -0500
@@ -75,6 +75,7 @@
static int p4x4mv = 0;
static int p8x8mv = 1;
static int b8x8mv = 1;
+static int b_transform_8x8 = 0;
static int direct_pred = X264_DIRECT_PRED_TEMPORAL;
static int weight_b = 0;
static int chroma_me = 1;
@@ -122,6 +123,7 @@
{"no8x8mv", &p8x8mv, CONF_TYPE_FLAG, 0, 1, 0, NULL},
{"b8x8mv", &b8x8mv, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"nob8x8mv", &b8x8mv, CONF_TYPE_FLAG, 0, 1, 0, NULL},
+ {"b8x8dct",&b_transform_8x8, CONF_TYPE_FLAG, 0, 0, 0, NULL},
{"direct_pred", &direct_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
{"weight_b", &weight_b, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"noweight_b", &weight_b, CONF_TYPE_FLAG, 0, 1, 0, NULL},
@@ -185,6 +187,7 @@
mod->param.rc.f_qblur = qblur;
mod->param.rc.f_complexity_blur = complexity_blur;
mod->param.analyse.i_subpel_refine = subq;
+ mod->param.analyse.b_transform_8x8 = b_transform_8x8;
mod->param.rc.psz_stat_out = passtmpfile;
mod->param.rc.psz_stat_in = passtmpfile;
if((pass & 2) && bitrate <= 0)
@@ -216,12 +216,12 @@
rc_buffer_size = bitrate;
mod->param.rc.b_cbr = 1;
mod->param.rc.i_bitrate = bitrate;
- mod->param.rc.i_rc_buffer_size = rc_buffer_size;
+ mod->param.rc.i_vbv_buffer_size = rc_buffer_size;
if(rc_init_buffer > 1)
- mod->param.rc.i_rc_init_buffer = rc_init_buffer;
+ mod->param.rc.f_vbv_buffer_init = rc_init_buffer;
else
- mod->param.rc.i_rc_init_buffer = rc_buffer_size * rc_init_buffer;
- mod->param.rc.i_rc_sens = rc_sens;
+ mod->param.rc.f_vbv_buffer_init = rc_buffer_size * rc_init_buffer;
+ mod->param.rc.f_rate_tolerance = rc_sens;
}
mod->param.rc.f_ip_factor = ip_factor;
mod->param.rc.f_pb_factor = pb_factor;
