正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -17,6 +17,9 @@ mkdir -p ${ff_release_dir} | @@ -17,6 +17,9 @@ mkdir -p ${ff_release_dir} | ||
| 17 | ff_yasm_bin=${ff_release_dir}/bin/yasm | 17 | ff_yasm_bin=${ff_release_dir}/bin/yasm |
| 18 | if [[ -f ${ff_yasm_bin} ]]; then | 18 | if [[ -f ${ff_yasm_bin} ]]; then |
| 19 | echo "yasm is ok" | 19 | echo "yasm is ok" |
| 20 | + # add yasm to path, for x264 to use yasm directly. | ||
| 21 | + # ffmpeg can specifies the yasm path when configure it. | ||
| 22 | + PATH=${PATH}:${ff_release_dir}/bin | ||
| 20 | else | 23 | else |
| 21 | echo "build yasm-1.2.0" | 24 | echo "build yasm-1.2.0" |
| 22 | cd $ff_current_dir && | 25 | cd $ff_current_dir && |
| @@ -56,7 +59,7 @@ else | @@ -56,7 +59,7 @@ else | ||
| 56 | echo "build x264" | 59 | echo "build x264" |
| 57 | cd $ff_current_dir && | 60 | cd $ff_current_dir && |
| 58 | rm -rf x264-snapshot-20131129-2245-stable && unzip -q ${ff_src_dir}/x264-snapshot-20131129-2245-stable.zip && | 61 | rm -rf x264-snapshot-20131129-2245-stable && unzip -q ${ff_src_dir}/x264-snapshot-20131129-2245-stable.zip && |
| 59 | - cd x264-snapshot-20131129-2245-stable && ./configure --prefix=${ff_release_dir} --bit-depth=10 --enable-static && make && make install | 62 | + cd x264-snapshot-20131129-2245-stable && ./configure --prefix=${ff_release_dir} --bit-depth=8 --enable-static && make && make install |
| 60 | ret=$?; if [[ 0 -ne ${ret} ]]; then echo "build x264 failed"; exit 1; fi | 63 | ret=$?; if [[ 0 -ne ${ret} ]]; then echo "build x264 failed"; exit 1; fi |
| 61 | fi | 64 | fi |
| 62 | 65 |
-
请 注册 或 登录 后发表评论