Skip to content

Commit ba55d80

Browse files
Changbeom AhnChangbeom Ahn
Changbeom Ahn
authored and
Changbeom Ahn
committed
updated for FFmpeg 4.0.3
1 parent 321807a commit ba55d80

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

‎README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This is a shell script to build FFmpeg libraries for iOS and tvOS apps.
66

77
Tested with:
88

9-
* FFmpeg 3.4
10-
* Xcode 9
9+
* FFmpeg 4.0.3
10+
* Xcode 10.1
1111

1212
## Requirements
1313

@@ -36,7 +36,7 @@ Use build-ffmpeg-tvos.sh for tvOS.
3636

3737
## Download
3838

39-
You can download a binary for FFmpeg 3.4 release at https://downloads.sourceforge.net/project/ffmpeg-ios/ffmpeg-ios-master.tar.bz2
39+
You can download a binary for FFmpeg 4.0.3 release at https://downloads.sourceforge.net/project/ffmpeg-ios/ffmpeg-ios-master.tar.bz2
4040

4141
## External libraries
4242

@@ -45,7 +45,3 @@ You should link your app with
4545
* libz.dylib
4646
* libbz2.dylib
4747
* libiconv.dylib
48-
49-
## Influences
50-
51-
* https://github.com/bbcallen/ijkplayer/blob/fc70895c64cbbd20f32f1d81d2d48609ed13f597/ios/tools/do-compile-ffmpeg.sh#L7

‎build-ffmpeg.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/sh
22

33
# directories
4-
FF_VERSION="3.4"
4+
FF_VERSION="4.0.3"
5+
#FF_VERSION="snapshot-git"
56
if [[ $FFMPEG_VERSION != "" ]]; then
67
FF_VERSION=$FFMPEG_VERSION
78
fi
@@ -38,7 +39,7 @@ ARCHS="arm64 armv7 x86_64 i386"
3839
COMPILE="y"
3940
LIPO="y"
4041

41-
DEPLOYMENT_TARGET="6.0"
42+
DEPLOYMENT_TARGET="8.0"
4243

4344
if [ "$*" ]
4445
then
@@ -115,7 +116,8 @@ then
115116
then
116117
AS="gas-preprocessor.pl -arch aarch64 -- $CC"
117118
else
118-
AS="$CC"
119+
#AS="$CC"
120+
AS="gas-preprocessor.pl $CC"
119121
fi
120122

121123
CXXFLAGS="$CFLAGS"

0 commit comments

Comments
 (0)