Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
2nd December 2008, 16:49 | #1 | Link |
Registered User
Join Date: Apr 2008
Posts: 2
|
How to compile libx264.dll for Avidemux?
Hi, everyone. Does anyone know how to compile libx264.dll for Avidemux?
- My System Windows XP Prof SP3 - So here is what I did so far
- Testing x264.exe Code:
$ x264.exe --version x264 0.65.x built on Dec 2 2008, gcc: 4.3.0 20080305 (alpha-testing) mingw-20080502 Overwriting the existing libx264.dll in the Avidemux folder and try to encode a video in x264 gives me the following result: Filter Init Failed - Looking forward for some advice. - snd303 |
2nd December 2008, 18:50 | #2 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,255
|
You must make sure that you use the same core version of libx264-xx.dll that Avidemux was compiled for!
Usually the x264 API is unchanged over several revisions, but once it is changed, Avidemux needs to be re-compiled with latest x264.h too! For example if a Avidemux shipped with libx264-65.dll, then it will only work with libx264 core version 65... BTW: You need to apply the alignment fix patch to make libx264-xx.dll work properly, otherwise it will crash when executing some of the SSE functions. And you need GCC 4.2.x or newer to make the alignment fix work. Also Avisynth input is useless for the x264 DLL. My build script looks like this: Code:
git clone git://git.videolan.org/x264.git echo echo -------------------------------------------------------------------------- echo cd x264 patch -p1 < ../avidemux.diff echo echo -------------------------------------------------------------------------- echo ./configure --enable-shared --extra-cflags="-march=pentium2" echo echo -------------------------------------------------------------------------- echo make fprofiled VIDS="../sample.avs ../sample2.avs" echo echo -------------------------------------------------------------------------- Code:
*** a/encoder/encoder.c Fri Sep 19 23:19:33 2008 --- b/encoder/encoder.c Sat Sep 20 03:38:48 2008 *************** static int x264_slices_write( x264_t *h *** 1328,1329 **** --- 1341,1343 ---- ****************************************************************************/ + __attribute__((force_align_arg_pointer)) int x264_encoder_encode( x264_t *h, Last but not least, latest libx264-65.dll for Avidemux r4494 can be found here: http://forum.doom9.org/showthread.ph...26#post1218226
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 2nd December 2008 at 20:08. |
3rd December 2008, 01:50 | #3 | Link | |
Registered User
Join Date: Apr 2008
Posts: 2
|
THX a lot LoRd_MuldeR. I always seeing you around since I’m using Avidemux. My libx264.dll works fine with your latest Avidemux build.
It’s like you said Quote:
__________________
Last edited by snd303; 3rd December 2008 at 03:14. |
|
3rd December 2008, 02:03 | #4 | Link |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,255
|
BTW: It's Gruntster's Avidemux build that I mirror on my site. He also came up with the alignment fix patch
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
Tags |
avidemux, compile, libx264.dll, mingw, msys |
Thread Tools | Search this Thread |
Display Modes | |
|
|