Skip to content

Commit aaf60e0

Browse files
authored
Upgraded ffmpeg to n7.0.2 and deleted built-in third-party. (#6)
2 parents 86bc3b1 + 91ceadd commit aaf60e0

File tree

7,492 files changed

+38
-1809556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,492 files changed

+38
-1809556
lines changed

.gitmodules

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
[submodule "third_party/ffmpeg"]
3+
path = third_party/ffmpeg
4+
url = https://github.com/FFmpeg/FFmpeg.git
5+
branch = release/7.0

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.1)
1+
cmake_minimum_required(VERSION 3.5)
22
project(ffavc)
33

44
# Options for building ffavc

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,31 @@
33
ffavc is a video decoder built on ffmpeg which allows libpag to use ffmpeg as its software decoder
44
for h264 decoding.
55

6+
## Dependency management
7+
8+
Go to the root directory of ffavc project, use the following command to pull the third-party library:
9+
10+
```
11+
git submodule update --init
12+
```
13+
614
## Build ffmpeg
715

816
First, make sure you have built the ffmpeg vendor libraries.
917

1018
### Windows platform
1119

12-
1.Install Visual Studio 2019.
20+
1. Install Visual Studio 2019.
1321

14-
2.Install [<font color=blue>mysy2</font>](https://www.msys2.org/)
22+
2. Install [<font color=blue>mysy2</font>](https://www.msys2.org/)
1523

16-
3.Install some dependencies
24+
3. Install some dependencies
1725

1826
```
1927
pacman -S make gcc diffutils mingw-w64-{i686,x86_64}-pkg-config mingw-w64-i686-nasm mingw-w64-i686-yasm
2028
```
2129

22-
4.Rename msys64/usr/bin/link.exe to msys64/usr/bin/link.bak, to avoid conflict with MSVC's link.exe
30+
4. Rename msys64/usr/bin/link.exe to msys64/usr/bin/link.bak, to avoid conflict with MSVC's link.exe
2331

2432
5. Run "VS2019 x86 Native Tools Command Prompt" (Run "VS2019 x86_x64 Native Tools Command Prompt"
2533
for 64-bit.)

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ android {
66
buildToolsVersion '33.0.2'
77
defaultConfig {
88
applicationId "org.libpag.pagviewer"
9-
minSdkVersion 19
9+
minSdkVersion 21
1010
targetSdkVersion 33
1111
versionCode 1
1212
versionName "1.0"

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
kotlinVersion = '1.6.21'
55
supportLibVersion = '28.0.0'
66
junitVersion="4.12"
7-
agpVersion = '8.0.0'
7+
agpVersion = '8.3.1'
88
appcompatVersion = '1.4.2' // after this version, compileSdkVersion must large than 31
99
}
1010
repositories {

android/ffavc/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ android {
88
defaultConfig {
99
minSdkVersion 21
1010
targetSdkVersion 33
11-
versionCode 1
12-
versionName "1.0"
1311

1412
externalNativeBuild {
1513
cmake {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Wed Dec 06 23:21:17 CST 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

build_ffmpeg.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ if [[ $(uname) == 'Darwin' ]]; then
3838
rm -rf $OUT_DIR/ios
3939
make_dir $OUT_DIR/include
4040
cp -r $SOURCE_DIR/out/ios/include/. $OUT_DIR/include
41-
make_dir $OUT_DIR/ios/arm
42-
cp -r $SOURCE_DIR/out/ios/armv7/lib/*.a $OUT_DIR/ios/arm
41+
# make_dir $OUT_DIR/ios/arm
42+
# cp -r $SOURCE_DIR/out/ios/armv7/lib/*.a $OUT_DIR/ios/arm
4343
make_dir $OUT_DIR/ios/arm64
4444
cp -r $SOURCE_DIR/out/ios/arm64/lib/*.a $OUT_DIR/ios/arm64
4545
make_dir $OUT_DIR/ios/x64
@@ -59,8 +59,10 @@ if [[ $(uname) == 'Darwin' ]]; then
5959
APPLE_DIR=$OUT_DIR/apple
6060
rm -rf $APPLE_DIR
6161
make_dir $APPLE_DIR/ios
62-
lipo -create $OUT_DIR/ios/arm64/libavcodec.a $OUT_DIR/ios/arm/libavcodec.a -o $APPLE_DIR/ios/libavcodec.a
63-
lipo -create $OUT_DIR/ios/arm64/libavutil.a $OUT_DIR/ios/arm/libavutil.a -o $APPLE_DIR/ios/libavutil.a
62+
# lipo -create $OUT_DIR/ios/arm64/libavcodec.a $OUT_DIR/ios/arm/libavcodec.a -o $APPLE_DIR/ios/libavcodec.a
63+
# lipo -create $OUT_DIR/ios/arm64/libavutil.a $OUT_DIR/ios/arm/libavutil.a -o $APPLE_DIR/ios/libavutil.a
64+
lipo -create $OUT_DIR/ios/arm64/libavcodec.a -o $APPLE_DIR/ios/libavcodec.a
65+
lipo -create $OUT_DIR/ios/arm64/libavutil.a -o $APPLE_DIR/ios/libavutil.a
6466
mkdir -p $APPLE_DIR/simulator
6567
lipo -create $OUT_DIR/ios/x64/libavcodec.a $OUT_DIR/ios/arm64-simulator/libavcodec.a -o $APPLE_DIR/simulator/libavcodec.a
6668
lipo -create $OUT_DIR/ios/x64/libavutil.a $OUT_DIR/ios/arm64-simulator/libavutil.a -o $APPLE_DIR/simulator/libavutil.a

ffavc.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PAG_ROOT = __dir__
22

33
Pod::Spec.new do |s|
44
s.name = 'ffavc'
5-
s.version = '1.0.0'
5+
s.version = '1.0.3'
66
s.ios.deployment_target = '9.0'
77
s.osx.deployment_target = '10.13'
88
s.summary = 'ffavc is a video decoder built on ffmpeg which allows libpag to use ffmpeg as its software decoder for h264 decoding.'

scripts/build_ffmpeg_android.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ build_arch
6262

6363
# build armv7
6464
ARCH="x86_64"
65-
CPU="x86_64"
65+
CPU="x86-64"
6666
CROSS_PREFIX=$TOOLCHAIN/bin/llvm-
6767
CC=$TOOLCHAIN/bin/x86_64-linux-android21-clang
6868
build_arch

0 commit comments

Comments
 (0)