View Single Post
Old 16th September 2015, 12:32   #9  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,316
x264

After the long road, we finaly reach the final destination.

Before building, don't forget to git pull to get up to date version, and fecth&rebase if necessary.

In "C:\x264_Prg\x264" (or any name you put your x264 git cloned files) create a file named Build_x264.sh.

Put the following inside :
Code:
_dir="/local-x264"
[[ "$1" = "32" ]] && _dir="${_dir}_x86"
[[ "$1" = "64" ]] && _dir="${_dir}_x64"
[[ "$2" = "posix" ]] && _dir="${_dir}/posix"
[[ "$2" = "win32" ]] && _dir="${_dir}/Win32threads"
[[ "$3" = "original" ]] && _dir="${_dir}/Original"
[[ "$3" = "tmod" ]] && _dir="${_dir}/t_mod"
[[ "$3" = "jpsdr" ]] && _dir="${_dir}/jpsdr"
_cf=""
_ld="-static"
_extra="--disable-opencl --enable-static --enable-strip"
[[ "$3" = "jpsdr" ]] && _cf="${_cf} -march=haswell -mavx -mavx2 -mtune=haswell"
[[ "$1" = "64" ]] && _extra="${_extra} --host=x86_64-w64-mingw32"
[[ "$2" = "posix" ]] && _extra="${_extra} --disable-win32thread"
[[ "$4" = "10" ]] && _extra="${_extra} --bit-depth=10"
[[ "$3" = "tmod" ]] && _extra="${_extra} --enable-nonfree"
[[ "$3" = "jpsdr" ]] && _extra="${_extra} --enable-nonfree"
PKG_CONFIG_PATH="${_dir}/lib/pkgconfig" \
./configure --extra-cflags="${_cf}" --extra-ldflags="${_ld}" ${_extra}
make
You can change the make by :
Code:
make fprofiled VIDS="[your video path file]"
if you want.

In the mingw shell, change directory for the one you have x264 in :
Code:
cd x264
(this if you've name the subdirectory x264).
And then, launch the building script with the following command :
Code:
./Build_x264.sh param1 param2 param3 param4
Parameters param1 to param3 are the same than for ffmpeg.
param4 : 8 or 10 : You will set the bit depth you want to create.

Now, if you've for exemple compiled everything with the following parameters : 32 win32 tmod, when using the following command on the t_mod version :
Code:
./Build_x264.sh 32 win32 tmod 8
you should have :
Code:
platform:      X86
byte order:    little-endian
system:        WINDOWS
cli:           yes
libx264:       internal
shared:        no
static:        yes
asm:           yes
interlaced:    yes
avs:           avisynth
lavf:          yes
ffms:          yes
avi output:    yes
audio:         yes (raw, lavc)
mp4:           lsmash
gpl:           yes
nonfree:       yes
thread:        win32
opencl:        no
filters:       resize crop select_every hqdn3d pad vflip subtitles yadif
debug:         no
gprof:         no
strip:         yes
LTO:           no
PIC:           no
bit depth:     8
chroma format: all
This ends the first part.

Last edited by jpsdr; 18th January 2016 at 16:45.
jpsdr is offline   Reply With Quote