Skip to content

Commit

Permalink
compile h265 decoder on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Dec 8, 2024
1 parent 8d586bf commit 8b98c92
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions circle_scripts/deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ _OPUS_VERSION_="v1.5.2"
_VPX_VERSION_="v1.15.0"
_LIBSODIUM_VERSION_="1.0.20-RELEASE"
_X264_VERSION_="31e19f92f00c7003fa115047ce50978bc98c3a0d"
_X265_VERSION_="1d117bed4747758b51bd2c124d738527e30392cb"
_ANDROID_SDK_FILE_="sdk-tools-linux-4333796.zip"
_ANDROID_SDK_HASH_="92ffee5a1d98d856634e8b71132e8a95d96c83a63fde1099be3d86df3106def9"

Expand Down Expand Up @@ -393,12 +394,10 @@ if [ "$full""x" == "1x" ]; then
cd "$_BLD_";make install
# --- LIBAV ---



# --- X264 ---
# export CXXFLAGS=" -g -O3 $CF2 ";export CFLAGS=" -g -O3 $CF2 "
cd $_s_;git clone https://code.videolan.org/videolan/x264.git
cd $_s_/x264/; git checkout "$_X264_VERSION_" # 0a84d986e7020f8344f00752e3600b9769cc1e85 # stable
cd $_s_/x264/; git checkout "$_X264_VERSION_"
rm -Rf "$_BLD_"
mkdir -p "$_BLD_"
cd "$_BLD_";
Expand All @@ -411,8 +410,6 @@ if [ "$full""x" == "1x" ]; then
cd "$_BLD_";make install
# --- X264 ---



# --- OPUS ---
cd $_s_;git clone --depth=1 --branch="$_OPUS_VERSION_" https://github.com/xiph/opus.git
cd $_s_/opus/;autoreconf -fi
Expand Down Expand Up @@ -929,12 +926,24 @@ if [ "$full""x" == "1x" ]; then
cd "$_BLD_";make install
# --- LIBAV ---


# --- X265 ---
cd $_s_;git clone https://bitbucket.org/multicoreware/x265_git.git
cd $_s_/x265_git/; git checkout "$_X265_VERSION_"
rm -Rf "$_BLD_"
mkdir -p "$_BLD_"
cd "$_BLD_";
cmake $_s_/x265_git/source/ \
-DCMAKE_INSTALL_PREFIX="$_toolchain_"/"$AND_TOOLCHAIN_ARCH"/sysroot/usr \
-DCMAKE_C_FLAGS="--sysroot=${_toolchain_}/${AND_TOOLCHAIN_ARCH}/sysroot" \
-DENABLE_PIC=ON -DENABLE_ASSEMBLY=ON -DCMAKE_VERBOSE_MAKEFILE=ON
cd "$_BLD_";make V=1 -j $_CPUS_ || exit 1
cd "$_BLD_";make install
# --- X265 ---

# --- X264 ---
# export CXXFLAGS=" -g -O3 $CF2 ";export CFLAGS=" -g -O3 $CF2 "
cd $_s_;git clone https://code.videolan.org/videolan/x264.git
cd $_s_/x264/; git checkout "$_X264_VERSION_" # 0a84d986e7020f8344f00752e3600b9769cc1e85 # stable
cd $_s_/x264/; git checkout "$_X264_VERSION_"
rm -Rf "$_BLD_"
mkdir -p "$_BLD_"
cd "$_BLD_";
Expand Down Expand Up @@ -1526,7 +1535,7 @@ if [ "$full""x" == "1x" ]; then
# --- X264 ---
# export CXXFLAGS=" -g -O3 $CF2 ";export CFLAGS=" -g -O3 $CF2 "
cd $_s_;git clone https://code.videolan.org/videolan/x264.git
cd $_s_/x264/; git checkout "$_X264_VERSION_" # 0a84d986e7020f8344f00752e3600b9769cc1e85 # stable
cd $_s_/x264/; git checkout "$_X264_VERSION_"
rm -Rf "$_BLD_"
mkdir -p "$_BLD_"
cd "$_BLD_";
Expand Down Expand Up @@ -1959,7 +1968,7 @@ if [ "$full""x" == "1x" ]; then
# --- X264 ---
# export CXXFLAGS=" -g -O3 $CF2 ";export CFLAGS=" -g -O3 $CF2 "
cd $_s_;git clone https://code.videolan.org/videolan/x264.git
cd $_s_/x264/; git checkout "$_X264_VERSION_" # 0a84d986e7020f8344f00752e3600b9769cc1e85 # stable
cd $_s_/x264/; git checkout "$_X264_VERSION_"
rm -Rf "$_BLD_"
mkdir -p "$_BLD_"
cd "$_BLD_";
Expand Down

0 comments on commit 8b98c92

Please sign in to comment.