From 50320c5869b75b566bf485b5aef20f7509b9c5ec Mon Sep 17 00:00:00 2001 From: han_jin_fei Date: Fri, 21 Feb 2025 10:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81ffmpeg=20h264=20h265=20?= =?UTF-8?q?=E8=BD=AF=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: han_jin_fei --- build.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 24b5cec408..32b367b6da 100755 --- a/build.sh +++ b/build.sh @@ -42,7 +42,7 @@ function downlaod_thirdparty() { return 0 } -OHOS_SDK_NATIVE_PATH=/mnt/sdcard/workspace/sdk-linux-4.1.3.500/sdk/HarmonyOS-NEXT-DP1/base/native # 用户需配置自己SDK路径 +OHOS_SDK_NATIVE_PATH=/data/ohos/SDK/command-line-tools/sdk/default/openharmony/native # 用户需配置自己SDK路径 if [ ! -z $1 ] then OHOS_SDK_NATIVE_PATH=$1 @@ -54,8 +54,6 @@ then exit 1 fi -git submodule update --init --recursive ## git clone submodules - check_depot_tools if [ $? -ne 0 ] then @@ -73,7 +71,11 @@ fi arguments="target_cpu=\"arm64\" \ target_os=\"ohos\" \ ohos_sdk_native_root=\"$OHOS_SDK_NATIVE_PATH\" \ - is_clang=true" + is_clang=true \ + ffmpeg_branding=\"Chrome\" \ + rtc_use_h264=true \ + rtc_use_h265=true \ + is_component_ffmpeg=true" gn gen out/webrtc --args="$arguments" if [ $? -ne 0 ] @@ -82,7 +84,7 @@ then exit 1 fi -ninja -C out/webrtc -v -j32 > build.log +ninja -C out/webrtc -v -j8 > build.log if [ $? -ne 0 ] then echo "[ERROR] webrtc build failed! see the detailes in build.log file" -- Gitee