mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
change x264 from 10bit to 8bit
This commit is contained in:
parent
c69933d68b
commit
129244aafa
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,9 @@ mkdir -p ${ff_release_dir}
|
||||||
ff_yasm_bin=${ff_release_dir}/bin/yasm
|
ff_yasm_bin=${ff_release_dir}/bin/yasm
|
||||||
if [[ -f ${ff_yasm_bin} ]]; then
|
if [[ -f ${ff_yasm_bin} ]]; then
|
||||||
echo "yasm is ok"
|
echo "yasm is ok"
|
||||||
|
# add yasm to path, for x264 to use yasm directly.
|
||||||
|
# ffmpeg can specifies the yasm path when configure it.
|
||||||
|
PATH=${PATH}:${ff_release_dir}/bin
|
||||||
else
|
else
|
||||||
echo "build yasm-1.2.0"
|
echo "build yasm-1.2.0"
|
||||||
cd $ff_current_dir &&
|
cd $ff_current_dir &&
|
||||||
|
@ -56,7 +59,7 @@ else
|
||||||
echo "build x264"
|
echo "build x264"
|
||||||
cd $ff_current_dir &&
|
cd $ff_current_dir &&
|
||||||
rm -rf x264-snapshot-20131129-2245-stable && unzip -q ${ff_src_dir}/x264-snapshot-20131129-2245-stable.zip &&
|
rm -rf x264-snapshot-20131129-2245-stable && unzip -q ${ff_src_dir}/x264-snapshot-20131129-2245-stable.zip &&
|
||||||
cd x264-snapshot-20131129-2245-stable && ./configure --prefix=${ff_release_dir} --bit-depth=10 --enable-static && make && make install
|
cd x264-snapshot-20131129-2245-stable && ./configure --prefix=${ff_release_dir} --bit-depth=8 --enable-static && make && make install
|
||||||
ret=$?; if [[ 0 -ne ${ret} ]]; then echo "build x264 failed"; exit 1; fi
|
ret=$?; if [[ 0 -ne ${ret} ]]; then echo "build x264 failed"; exit 1; fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue