[Slackbuilds-users] Avidemux compilation failed because of newer x264
Heinz Wiesinger
pprkut at liwjatan.at
Fri Nov 21 12:24:39 UTC 2008
Aleksandar Kukic wrote:
> I had Avidemux installed, but it was built against older version of x264
> (also only required dependencies were used). Last night I had to upgrade
> x264 because of some software not available at SlackBuilds - I've compiled
> yasm and new x264 (using SlackBuilds of course). Avidemux then failed to
> run, so I guess I had to recompile it against new upgraded x264.
> Compilation process stopped at this error:
That is a known issue. I've already told the avidemux maintainer about it and
he's currently in the process of updating the script. I think there will be
an update soon :)
In the meantime you can use the attached patch. I took it from gentoo and
avidemux compiles with it.
Grs,
Heinz
-------------- next part --------------
diff -ur avidemux_2.4.3.orig/avidemux/ADM_codecs/ADM_x264.cpp avidemux_2.4.3/avidemux/ADM_codecs/ADM_x264.cpp
--- avidemux_2.4.3.orig/avidemux/ADM_codecs/ADM_x264.cpp 2008-10-09 01:45:06.048940024 -0700
+++ avidemux_2.4.3/avidemux/ADM_codecs/ADM_x264.cpp 2008-10-09 01:49:07.606940126 -0700
@@ -109,8 +109,14 @@
MKPARAM(i_bframe,MaxBFrame);
MKPARAM(i_bframe_bias,Bias);
MKPARAM( b_bframe_pyramid,BasReference );
+#if X264_BUILD < 65
MKPARAM(analyse. b_bidir_me,BidirME );
+#endif
+#if X264_BUILD >= 63
+ MKPARAM( i_bframe_adaptive, Adaptative);
+#else
MKPARAM( b_bframe_adaptive, Adaptative);
+#endif
MKPARAM( analyse.b_weighted_bipred, Weighted);
MKPARAM( b_cabac , CABAC);
MKPARAM( analyse.i_trellis, Trellis);
@@ -118,12 +124,16 @@
#define MIN_RDO 6
if(zparam->PartitionDecision+1>=MIN_RDO)
{
- int rank,parity;
- rank=((zparam->PartitionDecision+1-MIN_RDO)>>1)+MIN_RDO;
- parity=(zparam->PartitionDecision+1-MIN_RDO)&1;
+#if X264_BUILD >= 65
+ param.analyse.i_subpel_refine = zparam->PartitionDecision + 1;
+#else
+ int rank,parity;
+ rank=((zparam->PartitionDecision+1-MIN_RDO)>>1)+MIN_RDO;
+ parity=(zparam->PartitionDecision+1-MIN_RDO)&1;
- param.analyse.i_subpel_refine=rank;
- param.analyse.b_bframe_rdo=parity;
+ param.analyse.i_subpel_refine=rank;
+ param.analyse.b_bframe_rdo=parity;
+#endif
}
MKPARAM(analyse.b_chroma_me,ChromaME);
MKPARAM(b_deblocking_filter,DeblockingFilter);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20081121/8d8136bd/attachment.sig>
More information about the SlackBuilds-users
mailing list