Log in

View Full Version : How I can add patch to x264??


PiPPoNe92
23rd August 2009, 17:39
Is there a guide to add patch .diff to x264.exe?? How I do? Thanks

rack04
23rd August 2009, 17:42
Is there a guide to add patch .diff to x264.exe?? How I do? Thanks

Are you asking how to create a patch or how to apply a patch? I'll assume you are asking how to apply a patch.

patch -p1 < patch.diff

LoRd_MuldeR
23rd August 2009, 17:43
You don't apply patches to an executable! You apply the patches to the x264 source code (http://git.videolan.org/gitweb.cgi?p=x264.git;a=tree). And you do that before you build (http://forum.doom9.org/showthread.php?t=148615) the binary from the sources.

So unless you want to build x264.exe from the source codes yourself, you don't need to mess with .diff files ;)

TheImperial2004
23rd August 2009, 17:56
Is patching adds .diff lines to the source , or is it replace some of the source's lines ?

Guest
23rd August 2009, 17:58
It can add, delete, or replace lines.

If the source code has diverged since the patch was created, it may be necessary to do some manual editing. So you have to know what you are doing.

rack04
23rd August 2009, 17:59
You don't apply patches to an executable! You apply the patches to the x264 source code (http://git.videolan.org/gitweb.cgi?p=x264.git;a=tree). And you do that before you build (http://forum.doom9.org/showthread.php?t=148615) the binary from the sources.

So unless you want to build x264.exe from the source codes yourself, you don't need to mess with .diff files ;)

Sorry, I took that bit of information for granted. :)

PiPPoNe92
23rd August 2009, 18:00
You don't apply patches to an executable! You apply the patches to the x264 source code. And you do that before you build the binary from the sources.

a guide with IMAGES?

Guest
23rd August 2009, 18:03
Since you ask about this you are not a programmer. Since you are not a programmer, you are opening a can of worms that you are ill-prepared to deal with.

There are existing resources that explain how to build x264. Look for them.

Here's just one:

http://forum.doom9.org/showthread.php?t=148615

LoRd_MuldeR
23rd August 2009, 18:12
PiPPoNe92, once you have set up the required build environment on your local machine and you managed to make simple "vanilla" (unpatched) build of x264.exe from the GIT, you can move on and try to apply some patches. But this is definitely not something you can do in a few minutes. It requires a lot of try and failure. Especially if you are not a programmer and not familiar with the building process ;)

So please follow the instructions in the thread that was linked two times already in this thread...

PiPPoNe92
23rd August 2009, 18:13
I know but there isn't images..

LoRd_MuldeR
23rd August 2009, 18:17
I know but there isn't images..

...because images of command prompts are pretty boring :D

http://img44.imageshack.us/img44/4044/clipboard01kmh.th.png (http://img44.imageshack.us/img44/4044/clipboard01kmh.png)

Really, you can't learn this from a few images. If you want to do this seriously, you will have to learn how to use the required command-line tools from the console!

Reading through various guides and manpages is unavoidable. Either accept that or forget about the idea ;)

PiPPoNe92
23rd August 2009, 18:21
okokok