under Cygwin and looking for how to add x264 codec to it.
If you are new to ffmpeg build under cygwin, you might want to check this.
Now, you need to do this :
1. Install git for cygwin
2. $ git clone git://git.videolan.org/x264.git
Go inside the x264 folder and
remove these from the file "configure" :
"-mno-cygwin" (source)
./configure
./make
In my case it complained that nasm is missing, so I
downloaded and installed it for cygwin.
It will generate x264.h and libx264.a, which you have
to copy to /usr/include/ and /user/lib/ respectively.
Then inside the ffmpeg source folder :
./configure --disable-static --enable-shared --enable-memalign-hack --enable-libx264 --enable-gpl
then
./make
and that should be it.
PS : Earlier I downloaded the x264 source code from here :
As it turned out, the version that is here and the version
that was expected by ffmpeg source code was different,
since after building x264 when I tried to build ffmpeg, I got these errors :
libavcodec/libx264.c: In function `X264_init':
libavcodec/libx264.c:151: error: structure has no member named `i_rc_method'
After which I tried to fetch some older versions from the SVN repository,
but for some reason it asked my username and password :
svn merge -rHEAD:280 x264.h
Authentication realm: df754926-b1dd-0310-bc7b-ec298dee348c
password for 'LENOVO':
It was then that I switched to the git repository of VLC.
No comments:
Post a Comment