Compare commits

...

13 Commits

Author SHA1 Message Date
fa95547dba Upgrade to FFmpeg 7.0 2024-05-18 00:00:50 +03:00
Taner Sener
e78b7956c7 apply a workaround for libpng on xcode 13.4.1 2024-04-21 15:33:44 +01:00
Taner Sener
3b054eb824
Merge pull request #967 from arthenica/fix-github-actions
fix rubberband x86-64 builds on xcode 15.x
2024-04-20 09:16:59 +01:00
Taner Sener
8d0563e052 upgrade to newer apple platform runners 2024-04-19 23:02:43 +01:00
Taner Sener
13d46b15b3 update deprecated github actions 2024-04-18 22:58:27 +01:00
Taner Sener
9d2d4b1073 fix rubberband x86-64 builds on xcode 15.x 2024-04-18 22:37:10 +01:00
Taner Sener
80d6af6949
Merge pull request #842 from arthenica/github-actions-fix
fix periodic android github actions
2023-09-19 08:46:17 +01:00
Taner Sener
a64f2f3827 fix periodic android github actions 2023-09-19 08:44:26 +01:00
Taner Sener
3c13ab0b03
Merge pull request #841 from arthenica/development-react-native
merge react-native v6.0.2 to main
2023-09-19 08:27:02 +01:00
Taner Sener
0713eabbbe
Merge pull request #840 from arthenica/development-flutter
merge flutter v6.0.3 to main
2023-09-19 08:25:32 +01:00
Sue N. Cooper
c3bc5fb685 update release table 2023-09-19 01:53:00 +03:00
Sue N. Cooper
1639f564a3 release react-native v6.0.2 2023-09-19 01:22:06 +03:00
Sue N. Cooper
cd1e99c5d9 release flutter v6.0.3 2023-09-19 00:23:16 +03:00
31 changed files with 272 additions and 252 deletions

View File

@ -35,7 +35,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: set up adopt jdk 17
uses: actions/setup-java@v3
with:
@ -66,7 +66,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: set up adopt jdk 17
uses: actions/setup-java@v3
with:
@ -97,7 +97,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: set up adopt jdk 17
uses: actions/setup-java@v3
with:
@ -126,7 +126,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: set up adopt jdk 17
uses: actions/setup-java@v3
with:
@ -155,7 +155,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: set up adopt jdk 17
uses: actions/setup-java@v3
with:

View File

@ -27,63 +27,63 @@ on:
- 'ios.sh'
jobs:
build-main-on-macos-monterey:
name: ios main on monterey
build-main-on-macos-sonoma:
name: ios main on sonoma
runs-on: macos-14
strategy:
matrix:
xcode: [ '14.3.1', '15.3' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./ios.sh --xcframework --enable-ios-audiotoolbox --enable-ios-avfoundation --enable-ios-bzip2 --enable-ios-libiconv --enable-ios-videotoolbox --enable-ios-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-main-on-macos-ventura:
name: ios main on ventura
runs-on: macos-13
strategy:
matrix:
xcode: [ '14.3.1', '15.2' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./ios.sh --xcframework --enable-ios-audiotoolbox --enable-ios-avfoundation --enable-ios-bzip2 --enable-ios-libiconv --enable-ios-videotoolbox --enable-ios-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-lts-on-macos-monterey:
name: ios lts on monterey
runs-on: macos-12
strategy:
matrix:
xcode: [ '13.4.1', '14.0.1' ]
xcode: [ '13.4.1', '14.2' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./ios.sh --xcframework --enable-ios-audiotoolbox --enable-ios-avfoundation --enable-ios-bzip2 --enable-ios-libiconv --enable-ios-videotoolbox --enable-ios-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-main-on-macos-bigsur:
name: ios main on big sur
runs-on: macos-11
strategy:
matrix:
xcode: [ '12.5.1', '13.2.1' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./ios.sh --xcframework --enable-ios-audiotoolbox --enable-ios-avfoundation --enable-ios-bzip2 --enable-ios-libiconv --enable-ios-videotoolbox --enable-ios-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-lts-on-macos-bigsur:
name: ios lts on big sur
runs-on: macos-11
strategy:
matrix:
xcode: [ '11.7', '12.4' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode

View File

@ -30,7 +30,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: prerequisites
run: sudo apt-get install clang llvm lld libclang-14-dev libstdc++6 nasm autoconf automake libtool pkg-config curl git doxygen rapidjson-dev
- name: run the build script
@ -48,7 +48,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: prerequisites
run: sudo apt-get install clang llvm lld libclang-14-dev libstdc++6 nasm autoconf automake libtool pkg-config curl git doxygen rapidjson-dev
- name: run the build script
@ -66,7 +66,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: prerequisites
run: sudo apt-get install clang llvm lld libclang-11-dev libstdc++6 nasm autoconf automake libtool pkg-config curl git doxygen rapidjson-dev
- name: run the build script
@ -84,7 +84,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: prerequisites
run: sudo apt-get install clang llvm lld libclang-11-dev libstdc++6 nasm autoconf automake libtool pkg-config curl git doxygen rapidjson-dev
- name: run the build script

View File

@ -27,63 +27,63 @@ on:
- 'macos.sh'
jobs:
build-main-on-macos-monterey:
name: macos main on monterey
build-main-on-macos-sonoma:
name: macos main on sonoma
runs-on: macos-14
strategy:
matrix:
xcode: [ '14.3.1', '15.3' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./macos.sh --xcframework --enable-macos-audiotoolbox --enable-macos-avfoundation --enable-macos-bzip2 --enable-macos-coreimage --enable-macos-libiconv --enable-macos-opencl --enable-macos-opengl --enable-macos-videotoolbox --enable-macos-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-main-on-macos-ventura:
name: macos main on ventura
runs-on: macos-13
strategy:
matrix:
xcode: [ '14.3.1', '15.2' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./macos.sh --xcframework --enable-macos-audiotoolbox --enable-macos-avfoundation --enable-macos-bzip2 --enable-macos-coreimage --enable-macos-libiconv --enable-macos-opencl --enable-macos-opengl --enable-macos-videotoolbox --enable-macos-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-lts-on-macos-monterey:
name: macos lts on monterey
runs-on: macos-12
strategy:
matrix:
xcode: [ '13.4.1', '14.0.1' ]
xcode: [ '13.4.1', '14.2' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./macos.sh --xcframework --enable-macos-audiotoolbox --enable-macos-avfoundation --enable-macos-bzip2 --enable-macos-coreimage --enable-macos-libiconv --enable-macos-opencl --enable-macos-opengl --enable-macos-videotoolbox --enable-macos-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-main-on-macos-bigsur:
name: macos main on big sur
runs-on: macos-11
strategy:
matrix:
xcode: [ '12.5.1', '13.2.1' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./macos.sh --xcframework --enable-macos-audiotoolbox --enable-macos-avfoundation --enable-macos-bzip2 --enable-macos-coreimage --enable-macos-libiconv --enable-macos-opencl --enable-macos-opengl --enable-macos-videotoolbox --enable-macos-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-lts-on-macos-bigsur:
name: macos lts on big sur
runs-on: macos-11
strategy:
matrix:
xcode: [ '11.7', '12.4' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode

View File

@ -16,7 +16,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branches }}
- name: set up adopt jdk 17
@ -26,6 +26,8 @@ jobs:
java-version: '17'
- name: prerequisites
run: sudo apt-get install autoconf automake libtool pkg-config curl git doxygen nasm cmake gcc gperf texinfo yasm bison autogen wget autopoint meson ninja-build ragel groff gtk-doc-tools libtasn1-bin
- name: prerequisites 2
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
- name: upgrade meson
run: pip install meson --upgrade
- name: set up android ndk
@ -52,7 +54,7 @@ jobs:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branches }}
- name: set up adopt jdk 17
@ -62,6 +64,8 @@ jobs:
java-version: '17'
- name: prerequisites
run: sudo apt-get install autoconf automake libtool pkg-config curl git doxygen nasm cmake gcc gperf texinfo yasm bison autogen wget autopoint meson ninja-build ragel groff gtk-doc-tools libtasn1-bin
- name: prerequisites 2
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
- name: upgrade meson
run: pip install meson --upgrade
- name: set up android ndk

View File

@ -5,18 +5,18 @@ on:
- cron: '0 1 * * 0'
jobs:
build-ios-main-on-macos-ventura:
name: ios main on ventura
runs-on: macos-13
build-ios-main-on-macos-sonoma:
name: ios main on sonoma
runs-on: macos-14
strategy:
matrix:
xcode: [ '14.3.1' ]
xcode: [ '14.3.1', '15.3' ]
branches: [ 'main', 'development' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branches }}
- name: prerequisites
@ -36,13 +36,13 @@ jobs:
runs-on: macos-12
strategy:
matrix:
xcode: [ '14.2' ]
xcode: [ '13.4.1' ]
branches: [ 'main', 'development' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branches }}
- name: prerequisites
@ -57,18 +57,18 @@ jobs:
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-macos-main-on-macos-ventura:
name: macos main on ventura
runs-on: macos-13
build-macos-main-on-macos-sonoma:
name: macos main on sonoma
runs-on: macos-14
strategy:
matrix:
xcode: [ '14.3.1' ]
xcode: [ '14.3.1', '15.3' ]
branches: [ 'main', 'development' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branches }}
- name: prerequisites
@ -88,13 +88,13 @@ jobs:
runs-on: macos-12
strategy:
matrix:
xcode: [ '14.2' ]
xcode: [ '13.4.1' ]
branches: [ 'main', 'development' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branches }}
- name: prerequisites
@ -109,18 +109,18 @@ jobs:
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-tvos-main-on-macos-ventura:
name: tvos main on ventura
runs-on: macos-13
build-tvos-main-on-macos-sonoma:
name: tvos main on sonoma
runs-on: macos-14
strategy:
matrix:
xcode: [ '14.3.1' ]
xcode: [ '14.3.1', '15.3' ]
branches: [ 'main', 'development' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branches }}
- name: prerequisites
@ -140,13 +140,13 @@ jobs:
runs-on: macos-12
strategy:
matrix:
xcode: [ '14.2' ]
xcode: [ '13.4.1' ]
branches: [ 'main', 'development' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branches }}
- name: prerequisites

View File

@ -27,63 +27,63 @@ on:
- 'tvos.sh'
jobs:
build-main-on-macos-monterey:
name: tvos main on monterey
build-main-on-macos-sonoma:
name: tvos main on sonoma
runs-on: macos-14
strategy:
matrix:
xcode: [ '14.3.1', '15.3' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./tvos.sh --xcframework --enable-tvos-bzip2 --enable-tvos-audiotoolbox --enable-tvos-libiconv --enable-tvos-videotoolbox --enable-tvos-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-main-on-macos-ventura:
name: tvos main on ventura
runs-on: macos-13
strategy:
matrix:
xcode: [ '14.3.1', '15.2' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./tvos.sh --xcframework --enable-tvos-bzip2 --enable-tvos-audiotoolbox --enable-tvos-libiconv --enable-tvos-videotoolbox --enable-tvos-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-lts-on-macos-monterey:
name: tvos lts on monterey
runs-on: macos-12
strategy:
matrix:
xcode: [ '13.4.1', '14.0.1' ]
xcode: [ '13.4.1', '14.2' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./tvos.sh --xcframework --enable-tvos-bzip2 --enable-tvos-audiotoolbox --enable-tvos-libiconv --enable-tvos-videotoolbox --enable-tvos-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-main-on-macos-bigsur:
name: tvos main on big sur
runs-on: macos-11
strategy:
matrix:
xcode: [ '12.5.1', '13.2.1' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode
run: echo "export DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer" > ~/.xcode.for.ffmpeg.kit.sh
- name: run the build script
run: ./tvos.sh --xcframework --enable-tvos-bzip2 --enable-tvos-audiotoolbox --enable-tvos-libiconv --enable-tvos-videotoolbox --enable-tvos-zlib
- name: print build logs
if: ${{ always() }}
run: cat build.log
- name: print ffbuild logs
if: ${{ failure() }}
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
build-lts-on-macos-bigsur:
name: tvos lts on big sur
runs-on: macos-11
strategy:
matrix:
xcode: [ '11.7', '12.4' ]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: prerequisites
run: brew install autoconf automake libtool pkg-config curl git cmake nasm
- name: set up xcode

View File

@ -126,6 +126,8 @@ the exact version number of `FFmpeg` is obtained using the `git describe --tags`
| Platforms | FFmpegKit Version | FFmpeg Version | Release Date |
|:----------------:|:---------------------------------------------------------------------------------:|:--------------:|:------------:|
| Flutter | [6.0.3](https://github.com/arthenica/ffmpeg-kit/releases/tag/flutter.v6.0.3) | 6.0 | Sep 19, 2023 |
| React Native | [6.0.2](https://github.com/arthenica/ffmpeg-kit/releases/tag/react.native.v6.0.2) | 6.0 | Sep 19, 2023 |
| Flutter | [6.0.2](https://github.com/arthenica/ffmpeg-kit/releases/tag/flutter.v6.0.2) | 6.0 | Sep 03, 2023 |
| React Native | [6.0.1](https://github.com/arthenica/ffmpeg-kit/releases/tag/react.native.v6.0.1) | 6.0 | Sep 03, 2023 |
| Flutter | [6.0.1](https://github.com/arthenica/ffmpeg-kit/releases/tag/flutter.v6.0.1) | 6.0 | Sep 03, 2023 |

View File

@ -20,6 +20,7 @@
#include <pthread.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include "config.h"
#include "libavcodec/jni.h"

View File

@ -114,6 +114,8 @@ the exact version number of `FFmpeg` is obtained using the `git describe --tags`
| Platforms | FFmpegKit Version | FFmpeg Version | Release Date |
|:----------------:|:-----------------------------------------------------------------------------------:|:--------------:|:------------:|
| Flutter | [6.0.3](https://github.com/arthenica/ffmpeg-kit/releases/tag/flutter.v6.0.3) | 6.0 | Sep 19, 2023 |
| React Native | [6.0.2](https://github.com/arthenica/ffmpeg-kit/releases/tag/react.native.v6.0.2) | 6.0 | Sep 19, 2023 |
| Flutter | [6.0.2](https://github.com/arthenica/ffmpeg-kit/releases/tag/flutter.v6.0.2) | 6.0 | Sep 03, 2023 |
| React Native | [6.0.1](https://github.com/arthenica/ffmpeg-kit/releases/tag/react.native.v6.0.1) | 6.0 | Sep 03, 2023 |
| Flutter | [6.0.1](https://github.com/arthenica/ffmpeg-kit/releases/tag/flutter.v6.0.1) | 6.0 | Sep 03, 2023 |

View File

@ -1,3 +1,11 @@
## 6.0.3
- Bug fix release based on native v6.0
- Fixes issue 825
## 6.0.3-LTS
- Bug fix release based on native v6.0.LTS
- Fixes issue 825
## 6.0.2
- Bug fix release based on native v6.0
- Fixes version information in podspec and gradle files

View File

@ -35,7 +35,7 @@ Add `ffmpeg_kit_flutter` as a dependency in your `pubspec.yaml file`.
```yaml
dependencies:
ffmpeg_kit_flutter: 6.0.2
ffmpeg_kit_flutter: 6.0.3
```
#### 2.1 Packages
@ -58,7 +58,7 @@ using the following dependency format.
```yaml
dependencies:
ffmpeg_kit_flutter_<package name>: 6.0.2
ffmpeg_kit_flutter_<package name>: 6.0.3
```
Note that hyphens in the package name must be replaced with underscores. Additionally, do not forget to use the package
@ -70,7 +70,7 @@ In order to install the `LTS` variant, append `-LTS` to the version you have for
```yaml
dependencies:
ffmpeg_kit_flutter: 6.0.2-LTS
ffmpeg_kit_flutter: 6.0.3-LTS
```
#### 2.4 LTS Releases

View File

@ -1,8 +1,4 @@
analyzer:
enable-experiment:
- non-nullable
strong-mode:
implicit-dynamic: false
errors:
missing_required_param: warning
missing_return: warning
@ -27,10 +23,8 @@ linter:
- file_names
- hash_and_equals
- implementation_imports
- iterable_contains_unrelated_type
- join_return_with_assignment
- lines_longer_than_80_chars
- list_remove_unrelated_type
- collection_methods_unrelated_type
- missing_whitespace_between_adjacent_strings
- no_runtimeType_toString
- non_constant_identifier_names

View File

@ -29,8 +29,8 @@ android {
defaultConfig {
minSdkVersion 24
targetSdkVersion 33
versionCode 602
versionName "6.0.2"
versionCode 603
versionName "6.0.3"
}
buildTypes {
@ -49,5 +49,5 @@ android {
dependencies {
implementation 'androidx.annotation:annotation:1.5.0'
implementation 'com.arthenica:ffmpeg-kit-https:6.0-1'
implementation 'com.arthenica:ffmpeg-kit-https:6.0-2'
}

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ffmpeg_kit_flutter'
s.version = '6.0.2'
s.version = '6.0.3'
s.summary = 'FFmpeg Kit for Flutter'
s.description = 'A Flutter plugin for running FFmpeg and FFprobe commands.'
s.homepage = 'https://github.com/arthenica/ffmpeg-kit'

View File

@ -64,7 +64,7 @@ abstract class AbstractSession extends Session {
///
/// Returns FFmpeg session created.
static Future<FFmpegSession> createFFmpegSession(List<String> argumentsArray,
[LogRedirectionStrategy? logRedirectionStrategy = null]) async {
[LogRedirectionStrategy? logRedirectionStrategy]) async {
try {
await FFmpegKitConfig.init();
final Map<dynamic, dynamic>? nativeSession =
@ -118,7 +118,7 @@ abstract class AbstractSession extends Session {
/// Returns FFprobe session created.
static Future<FFprobeSession> createFFprobeSession(
List<String> argumentsArray,
[LogRedirectionStrategy? logRedirectionStrategy = null]) async {
[LogRedirectionStrategy? logRedirectionStrategy]) async {
try {
await FFmpegKitConfig.init();
final Map<dynamic, dynamic>? nativeSession =

View File

@ -99,7 +99,7 @@ class FFmpegKitFactory {
}
}
static String getVersion() => "6.0.2";
static String getVersion() => "6.0.3";
static LogRedirectionStrategy? getLogRedirectionStrategy(int? sessionId) =>
logRedirectionStrategyMap[sessionId];

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ffmpeg_kit_flutter'
s.version = '6.0.2'
s.version = '6.0.3'
s.summary = 'FFmpeg Kit for Flutter'
s.description = 'A Flutter plugin for running FFmpeg and FFprobe commands.'
s.homepage = 'https://github.com/arthenica/ffmpeg-kit'

View File

@ -3,7 +3,7 @@ description: FFmpeg Kit for Flutter. Supports Android, iOS and macOS platforms.
repository: https://github.com/arthenica/ffmpeg-kit
issue_tracker: https://github.com/arthenica/ffmpeg-kit/issues
homepage: https://github.com/arthenica/ffmpeg-kit
version: 6.0.2
version: 6.0.3
environment:
sdk: ">=2.12.0 <4.0.0"

View File

@ -35,8 +35,8 @@ android {
defaultConfig {
minSdkVersion safeExtGet('ffmpegKitPackage', 'https').contains("-lts") ? 16 : 24
targetSdkVersion 33
versionCode 601
versionName "6.0.1"
versionCode 602
versionName "6.0.2"
}
buildTypes {

View File

@ -1,3 +1,3 @@
android.useAndroidX=true
ffmpegKit.android.main.version=6.0-1
ffmpegKit.android.lts.version=6.0-1
ffmpegKit.android.main.version=6.0-2
ffmpegKit.android.lts.version=6.0-2

View File

@ -1,6 +1,6 @@
{
"name": "ffmpeg-kit-react-native",
"version": "6.0.1",
"version": "6.0.2",
"description": "FFmpeg Kit for React Native",
"main": "src/index",
"types": "src/index.d.ts",

View File

@ -1611,7 +1611,7 @@ class FFmpegKitFactory {
}
static getVersion() {
return "6.0.1";
return "6.0.2";
}
static getLogRedirectionStrategy(sessionId) {

View File

@ -533,7 +533,6 @@ overwrite_file "${BASEDIR}"/src/ffmpeg/libavutil/x86/asm.h "${FFMPEG_LIBRARY_PAT
overwrite_file "${BASEDIR}"/src/ffmpeg/libavutil/x86/timer.h "${FFMPEG_LIBRARY_PATH}"/include/libavutil/x86/timer.h 1>>"${BASEDIR}"/build.log 2>&1
overwrite_file "${BASEDIR}"/src/ffmpeg/libavutil/arm/timer.h "${FFMPEG_LIBRARY_PATH}"/include/libavutil/arm/timer.h 1>>"${BASEDIR}"/build.log 2>&1
overwrite_file "${BASEDIR}"/src/ffmpeg/libavutil/aarch64/timer.h "${FFMPEG_LIBRARY_PATH}"/include/libavutil/aarch64/timer.h 1>>"${BASEDIR}"/build.log 2>&1
overwrite_file "${BASEDIR}"/src/ffmpeg/libavutil/x86/emms.h "${FFMPEG_LIBRARY_PATH}"/include/libavutil/x86/emms.h 1>>"${BASEDIR}"/build.log 2>&1
if [ $? -eq 0 ]; then
echo "ok"

View File

@ -24,6 +24,13 @@ if [[ ! -f "${BASEDIR}"/src/"${LIB_NAME}"/configure ]] || [[ ${RECONF_libpng} -e
autoreconf_library "${LIB_NAME}" 1>>"${BASEDIR}"/build.log 2>&1 || return 1
fi
# WORKAROUND TO FIX ZLIB VERSION DETECTED - OCCURS ON XCODE 14.3.1
if [[ -n "$DETECTED_IOS_SDK_VERSION" && $(compare_versions "$DETECTED_IOS_SDK_VERSION" "16.4") -ge 0 ]] ||
[[ -n "$DETECTED_MACOS_SDK_VERSION" && $(compare_versions "$DETECTED_MACOS_SDK_VERSION" "13.3") -eq 0 ]] ||
[[ -n "$DETECTED_TVOS_SDK_VERSION" && $(compare_versions "$DETECTED_TVOS_SDK_VERSION" "16.4") -ge 0 ]]; then
${SED_INLINE} "s|ZLIB_VERNUM default .*|ZLIB_VERNUM default 0|g" "${BASEDIR}"/src/"${LIB_NAME}"/scripts/pnglibconf.dfa
fi
./configure \
--prefix="${LIB_INSTALL_PREFIX}" \
--with-pic \

View File

@ -10,12 +10,9 @@ ${SED_INLINE} 's/\-mno-ieee-fp//g' "${BASEDIR}"/src/"${LIB_NAME}"/configure.ac |
# ALWAYS REGENERATE BUILD FILES - NECESSARY TO APPLY THE WORKAROUNDS
autoreconf_library "${LIB_NAME}" 1>>"${BASEDIR}"/build.log 2>&1 || return 1
if [[ ${FFMPEG_KIT_BUILD_TYPE} != "macos" ]]; then
# WORKAROUND TO REMOVE -force_cpusubtype_ALL FLAG DUE TO THE FOLLOWING ERROR
# ld: -force_cpusubtype_ALL and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
${SED_INLINE} 's/-force_cpusubtype_ALL//g' ${BASEDIR}/src/${LIB_NAME}/configure
fi
# WORKAROUND TO REMOVE -force_cpusubtype_ALL FLAG DUE TO THE FOLLOWING ERROR
# ld: -force_cpusubtype_ALL and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
${SED_INLINE} 's/-force_cpusubtype_ALL//g' ${BASEDIR}/src/${LIB_NAME}/configure
PKG_CONFIG= ./configure \
--prefix="${LIB_INSTALL_PREFIX}" \

View File

@ -1287,6 +1287,15 @@ EOF
create_libiconv_system_package_config() {
local LIB_ICONV_VERSION=$(grep '_LIBICONV_VERSION' "${SDK_PATH}"/usr/include/iconv.h | grep -Eo '0x.*' | grep -Eo '.* ')
# AFTER XCODE 15.0, libcharset DOES NOT CONTAIN ALL ARCHITECTURES WE SUPPORT
if [[ -n "$DETECTED_IOS_SDK_VERSION" && $(compare_versions "$DETECTED_IOS_SDK_VERSION" "17.0") -ge 0 ]] ||
[[ -n "$DETECTED_MACOS_SDK_VERSION" && $(compare_versions "$DETECTED_MACOS_SDK_VERSION" "14.0") -ge 0 ]] ||
[[ -n "$DETECTED_TVOS_SDK_VERSION" && $(compare_versions "$DETECTED_TVOS_SDK_VERSION" "17.0") -ge 0 ]]; then
local _REQUIRES_LIBS="-liconv"
else
local _REQUIRES_LIBS="-liconv -lcharset"
fi
cat >"${INSTALL_PKG_CONFIG_DIR}/libiconv.pc" <<EOF
prefix=${SDK_PATH}/usr
exec_prefix=\${prefix}
@ -1298,7 +1307,7 @@ Description: Character set conversion library
Version: ${LIB_ICONV_VERSION}
Requires:
Libs: -L\${libdir} -liconv -lcharset
Libs: -L\${libdir} ${_REQUIRES_LIBS}
Cflags: -I\${includedir}
EOF
}

View File

@ -111,13 +111,13 @@ get_common_cflags() {
case ${ARCH} in
i386 | x86-64 | arm64-simulator)
echo "-fstrict-aliasing -DIOS ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}"
echo "-fstrict-aliasing -DIOS ${LTS_BUILD_FLAG}${BUILD_DATE} -Wno-incompatible-function-pointer-types -isysroot ${SDK_PATH}"
;;
*-mac-catalyst)
echo "-fstrict-aliasing ${BITCODE_FLAGS} -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}"
echo "-fstrict-aliasing ${BITCODE_FLAGS} -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -Wno-incompatible-function-pointer-types -isysroot ${SDK_PATH}"
;;
*)
echo "-fstrict-aliasing ${BITCODE_FLAGS} -DIOS ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}"
echo "-fstrict-aliasing ${BITCODE_FLAGS} -DIOS ${LTS_BUILD_FLAG}${BUILD_DATE} -Wno-incompatible-function-pointer-types -isysroot ${SDK_PATH}"
;;
esac
}
@ -223,6 +223,9 @@ get_app_specific_cflags() {
libwebp | xvidcore)
APP_FLAGS="-fno-common -DPIC"
;;
openh264 | openssl | x265)
APP_FLAGS="-Wno-unused-function"
;;
sdl)
APP_FLAGS="-DPIC -Wno-declaration-after-statement -Wno-unused-function -D__IPHONEOS__"
;;
@ -232,9 +235,6 @@ get_app_specific_cflags() {
soxr | snappy)
APP_FLAGS="-std=gnu99 -Wno-unused-function -DPIC"
;;
openh264 | openssl | x265)
APP_FLAGS="-Wno-unused-function"
;;
*)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
@ -310,7 +310,7 @@ get_cxxflags() {
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
rubberband)
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
echo "-fno-rtti -Wno-c++11-narrowing ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
srt | tesseract | zimg)
echo "-std=c++11 ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"

View File

@ -82,10 +82,10 @@ get_common_cflags() {
case ${ARCH} in
arm64)
echo "-fstrict-aliasing -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}"
echo "-fstrict-aliasing -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -Wno-incompatible-function-pointer-types -isysroot ${SDK_PATH}"
;;
*)
echo "-fstrict-aliasing -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}"
echo "-fstrict-aliasing -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -Wno-incompatible-function-pointer-types -isysroot ${SDK_PATH}"
;;
esac
}
@ -102,7 +102,6 @@ get_arch_specific_cflags() {
}
get_size_optimization_cflags() {
local ARCH_OPTIMIZATION=""
case ${ARCH} in
arm64)
@ -117,7 +116,6 @@ get_size_optimization_cflags() {
}
get_size_optimization_asm_cflags() {
local ARCH_OPTIMIZATION=""
case $1 in
jpeg | ffmpeg)
@ -139,20 +137,19 @@ get_size_optimization_asm_cflags() {
}
get_app_specific_cflags() {
local APP_FLAGS=""
case $1 in
fontconfig)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
ffmpeg)
APP_FLAGS="-Wno-unused-function -Wno-deprecated-declarations"
;;
ffmpeg-kit)
APP_FLAGS="-std=c99 -Wno-unused-function -Wall -Wno-deprecated-declarations -Wno-pointer-sign -Wno-switch -Wno-unused-result -Wno-unused-variable -DPIC -fobjc-arc"
;;
fontconfig)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
gnutls)
APP_FLAGS="-std=c99 -Wno-unused-function -D_GL_USE_STDLIB_ALLOC=1"
APP_FLAGS="-std=c99 -Wno-unused-function -Wno-implicit-int -D_GL_USE_STDLIB_ALLOC=1"
;;
jpeg)
APP_FLAGS="-Wno-nullability-completeness"
@ -166,6 +163,9 @@ get_app_specific_cflags() {
libwebp | xvidcore)
APP_FLAGS="-fno-common -DPIC"
;;
openh264 | x265)
APP_FLAGS="-Wno-unused-function"
;;
sdl)
APP_FLAGS="-DPIC -Wno-unused-function -D__MACOSX__"
;;
@ -175,9 +175,6 @@ get_app_specific_cflags() {
soxr | snappy)
APP_FLAGS="-std=gnu99 -Wno-unused-function -DPIC"
;;
openh264 | x265)
APP_FLAGS="-Wno-unused-function"
;;
*)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
@ -227,9 +224,6 @@ get_cxxflags() {
local BITCODE_FLAGS=""
case $1 in
x265)
echo "-std=c++11 -fno-exceptions ${BITCODE_FLAGS} ${COMMON_CFLAGS}"
;;
gnutls)
echo "-std=c++11 -fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
@ -246,11 +240,14 @@ get_cxxflags() {
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
rubberband)
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
echo "-fno-rtti -Wno-c++11-narrowing ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
srt | tesseract | zimg)
echo "-std=c++11 ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
x265)
echo "-std=c++11 -fno-exceptions ${BITCODE_FLAGS} ${COMMON_CFLAGS}"
;;
*)
echo "-std=c++11 -fno-exceptions -fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;

View File

@ -85,10 +85,10 @@ get_common_cflags() {
case ${ARCH} in
arm64)
echo "-fstrict-aliasing ${BITCODE_FLAGS} -DTVOS ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}"
echo "-fstrict-aliasing ${BITCODE_FLAGS} -DTVOS ${LTS_BUILD_FLAG}${BUILD_DATE} -Wno-incompatible-function-pointer-types -isysroot ${SDK_PATH}"
;;
x86-64 | arm64-simulator)
echo "-fstrict-aliasing -DTVOS ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}"
echo "-fstrict-aliasing -DTVOS ${LTS_BUILD_FLAG}${BUILD_DATE} -Wno-incompatible-function-pointer-types -isysroot ${SDK_PATH}"
;;
esac
}
@ -181,6 +181,9 @@ get_app_specific_cflags() {
ffmpeg)
APP_FLAGS="-Wno-unused-function -Wno-deprecated-declarations"
;;
ffmpeg-kit)
APP_FLAGS="-std=c99 -Wno-unused-function -Wall -Wno-deprecated-declarations -Wno-pointer-sign -Wno-switch -Wno-unused-result -Wno-unused-variable -DPIC -fobjc-arc"
;;
gnutls)
APP_FLAGS="-std=c99 -Wno-unused-function -D_GL_USE_STDLIB_ALLOC=1"
;;
@ -196,8 +199,8 @@ get_app_specific_cflags() {
libwebp | xvidcore)
APP_FLAGS="-fno-common -DPIC"
;;
ffmpeg-kit)
APP_FLAGS="-std=c99 -Wno-unused-function -Wall -Wno-deprecated-declarations -Wno-pointer-sign -Wno-switch -Wno-unused-result -Wno-unused-variable -DPIC -fobjc-arc"
openh264 | x265)
APP_FLAGS="-Wno-unused-function"
;;
sdl)
APP_FLAGS="-DPIC -Wno-unused-function -D__TVOS__"
@ -208,9 +211,6 @@ get_app_specific_cflags() {
soxr | snappy)
APP_FLAGS="-std=gnu99 -Wno-unused-function -DPIC"
;;
openh264 | x265)
APP_FLAGS="-Wno-unused-function"
;;
*)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
@ -267,9 +267,6 @@ get_cxxflags() {
esac
case $1 in
x265)
echo "-std=c++11 -fno-exceptions ${BITCODE_FLAGS} ${COMMON_CFLAGS}"
;;
gnutls)
echo "-std=c++11 -fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
@ -286,11 +283,14 @@ get_cxxflags() {
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
rubberband)
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
echo "-fno-rtti -Wno-c++11-narrowing ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
srt | tesseract | zimg)
echo "-std=c++11 ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
x265)
echo "-std=c++11 -fno-exceptions ${BITCODE_FLAGS} ${COMMON_CFLAGS}"
;;
*)
echo "-std=c++11 -fno-exceptions -fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;

View File

@ -32,8 +32,8 @@ get_library_source() {
SOURCE_TYPE="TAG"
;;
ffmpeg)
SOURCE_REPO_URL="https://github.com/arthenica/FFmpeg"
SOURCE_ID="n6.0"
SOURCE_REPO_URL="https://github.com/FFmpeg/FFmpeg"
SOURCE_ID="n7.0"
SOURCE_TYPE="TAG"
;;
fontconfig)