Coder Social home page Coder Social logo

arthenica / ffmpeg-kit-test Goto Github PK

View Code? Open in Web Editor NEW
146.0 8.0 60.0 28.53 MB

Test applications for FFmpegKit.

License: MIT License

Java 15.91% Objective-C 56.25% C 1.49% Shell 0.24% Ruby 0.61% JavaScript 0.07% Dart 15.03% Swift 0.10% CMake 0.13% C++ 10.06% Objective-C++ 0.09%

ffmpeg-kit-test's Introduction

FFmpegKit Test

Test applications for FFmpegKit.

  • Android under the android folder
  • Flutter under the flutter folder
  • iOS under the ios folder
  • Linux under the linux folder
  • macOS under the macos folder
  • React Native under the react-native folder
  • tvOS under the tvos folder

All applications are identical and supports command execution, video encoding, accessing https urls, encoding audio, burning subtitles, video stabilisation, pipe operations, concurrent command execution.

Android application and React Native application on Android also include a Storage Access Framework (SAF) tab to demonstrate how SAF uris can be used with FFmpegKit.

Versions

Test applications are tagged with ffmpeg-kit release they depend on.

Platform FFmpegKit Version Tag
React Native 6.0.2 6.0.2
Flutter 6.0.3 6.0.3
Flutter 6.0.3-LTS 6.0.3-LTS
React Native 6.0.1 6.0.1
Flutter 6.0.2 6.0.2
Flutter 6.0.2-LTS 6.0.2-LTS
Flutter 6.0.1 6.0.1
Flutter 6.0.1-LTS 6.0.1-LTS
React Native 6.0.0 6.0.0
Flutter 6.0.0 6.0.0
Flutter 6.0.0-LTS 6.0.0-LTS
Android 6.0 6.0
Android 6.0.LTS 6.0.LTS
iOS 6.0 6.0
iOS 6.0.LTS 6.0.LTS
macOS 6.0 6.0
macOS 6.0.LTS 6.0.LTS
tvOS 6.0 6.0
tvOS 6.0.LTS 6.0.LTS
- - -
React Native 5.1.0 5.1.0
Flutter 5.1.0 5.1.0
Flutter 5.1.0-LTS 5.1.0-LTS
Android 5.1 5.1
Android 5.1.LTS 5.1.LTS
iOS 5.1 5.1
iOS 5.1.LTS 5.1.LTS
macOS 5.1 5.1
macOS 5.1.LTS 5.1.LTS
tvOS 5.1 5.1
tvOS 5.1.LTS 5.1.LTS
- - -
React Native 4.5.2 4.5.2
Flutter 4.5.1 4.5.1
Flutter 4.5.1-LTS 4.5.1-LTS
React Native 4.5.1 4.5.1
Android 4.5.1 4.5.1
Android 4.5.1.LTS 4.5.1.LTS
iOS 4.5.1 4.5.1
iOS 4.5.1.LTS 4.5.1.LTS
macOS 4.5.1 4.5.1
macOS 4.5.1.LTS 4.5.1.LTS
tvOS 4.5.1 4.5.1
tvOS 4.5.1.LTS 4.5.1.LTS
- - -
Flutter 4.5.0 4.5.0
Flutter 4.5.0-LTS 4.5.0-LTS
React Native 4.5.0 4.5.0
Android 4.5 4.5
Android 4.5.LTS 4.5.LTS
iOS 4.5 4.5
iOS 4.5.LTS 4.5.LTS
macOS 4.5 4.5
macOS 4.5.LTS 4.5.LTS
tvOS 4.5 4.5
tvOS 4.5.LTS 4.5.LTS
- - -
Android 4.4 4.4
Android 4.4.LTS 4.4.LTS
iOS 4.4 4.4
iOS 4.4.LTS 4.4.LTS
macOS 4.4 4.4
macOS 4.4.LTS 4.4.LTS
tvOS 4.4 4.4
tvOS 4.4.LTS 4.4.LTS

License

FFmpegKit Test repository is licensed under the MIT License, fonts used by the applications are licensed under the SIL Open Font License, other digital assets are published in the public domain.

ffmpeg-kit-test's People

Contributors

suencooper avatar tanersener avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffmpeg-kit-test's Issues

On Import Getting Error

Hi When i run android Project getting following error

Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=ffmpeg-kit.aar, variantName=null, artifactFile=C:\Users\Arspectra\Desktop\Arsofin_Ar_App\ffmpeg-kit\prebuilt\bundle-android-aar\ffmpeg-kit\ffmpeg-kit.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=false, buildMapping={current_build=C:\Users\Arspectra\Desktop\Arsofin_Ar_App\ffmpeg-kit-test-main\android}, mavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@c66e5cf)

Error "Use of undeclared identifier" in Xcode

I'm sorry I am new to Xcode and not familiar with OC. I encountered an error after the following operation:

  • In terminal
git clone https://github.com/tanersener/ffmpeg-kit-test
cd ffmpeg-kit-test
git checkout tags/ios.v4.5.1
  • Open the ios/test-app-local-dependency project with Xcode ( Version 13.2.1 (13C100) )
  • Change the Development Team options
  • Change the Product Bundle Identifier options
  • Drag folders in the the folder ffmpeg-kit/prebuilt/apple-ios-arm64/ffmpeg/framework into the framework directory of project and delete the original files with the same names
  • Rename ffmpeg-kit/prebuilt/apple-ios-arm64/ffmpeg-kit/include to ffmpeg-kit/prebuilt/apple-ios-arm64/ffmpeg-kit/ffmpegkit, and drag folder ffmpeg-kit/prebuilt/apple-ios-arm64/ffmpeg-kit into option System Header Search Path
  • Try to build on my iPhone 6s ( iOS 15.2 )
  • It pops up a bunch of errors:
/Users/shine/Documents/git/ffmpeg-kit-test/ios/test-app-local-dependency/FFmpegKitIOS/FFmpegKitTest.m:152:46: ⚠️This old-style function definition is not preceded by a prototype
...
/Users/shine/Documents/git/ffmpeg-kit-test/ios/test-app-local-dependency/FFmpegKitIOS/FFmpegKitTest.m:197:44: πŸ”΄Use of undeclared identifier 'MediaInformationSession'
/Users/shine/Documents/git/ffmpeg-kit-test/ios/test-app-local-dependency/FFmpegKitIOS/FFmpegKitTest.m:197:30: πŸ”΄Use of undeclared identifier 'sessions3'
...

Why do errors occur?

[ERROR] Unknown encoder 'libmp3lame'

Error on execute on command.

cmd : -i ${_sounds.first} -i ${_sounds.last} -filter_complex 'concat=n=2:v=0:a=1[a]' -map '[a]' -c:a libmp3lame -qscale:a 2 $outPath

Logs :
I/flutter (19602): LOG::::::::::::::ffmpeg version v4.5-dev-3393-g30322ebe3c I/flutter (19602): LOG:::::::::::::: Copyright (c) 2000-2021 the FFmpeg developers I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d) I/flutter (19602): I/flutter (19602): LOG:::::::::::::: configuration: --cross-prefix=aarch64-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/light/projects/ffmpeg-kit/prebuilt/android-arm64/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=aarch64 --cpu=armv8-a --target-os=android --enable-neon --enable-asm --enable-inline-asm --ar=aarch64-linux-android-ar --cc=aarch64-linux-android24-clang --cxx=aarch64-linux-android24-clang++ --ranlib=aarch64-linux-android-ranlib --strip=aarch64-linux-android-strip --nm=aarch64-linux-android-nm --extra-libs='-L/storage/light/projects/ffmpeg-kit/prebuilt/android-arm64/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --d I/flutter (19602): I/flutter (19602): LOG:::::::::::::: libavutil 57. 13.100 / 57. 13.100 I/flutter (19602): I/flutter (19602): LOG:::::::::::::: libavcodec 59. 15.102 / 59. 15.102 I/flutter (19602): I/flutter (19602): LOG:::::::::::::: libavformat 59. 10.100 / 59. 10.100 I/flutter (19602): I/flutter (19602): LOG:::::::::::::: libavdevice 59. 1.100 / 59. 1.100 I/flutter (19602): I/flutter (19602): LOG:::::::::::::: libavfilter 8. 21.100 / 8. 21.100 I/flutter (19602): I/flutter (19602): LOG:::::::::::::: libswscale 6. 1.102 / 6. 1.102 I/flutter (19602): I/flutter (19602): LOG:::::::::::::: libswresample 4. 0.100 / 4. 0.100 I/flutter (19602): I/flutter (19602): LOG::::::::::::::Input #0, mp3, from '/data/user/0/com.gesolucions.musedme/cache/file_picker/CutFile.mp3': I/flutter (19602): I/flutter (19602): LOG:::::::::::::: Metadata: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: album : I/flutter (19602): LOG::::::::::::::Balu Mahi I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: artist : I/flutter (19602): LOG::::::::::::::Sahir Ali Bagga I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: album_artist : I/flutter (19602): LOG::::::::::::::Sahir Ali Bagga I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: composer : I/flutter (19602): LOG::::::::::::::Music: Sahir Ali Bagga I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: performer : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TIT1 : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: encoded_by : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: genre : I/flutter (19602): LOG::::::::::::::Bollywood I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TKEY : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TGID : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TDES : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TCAT : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TSRC : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TEXT : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TPE4 : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TRSN : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TOAL : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TOPE : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TOLY : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: publisher : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: artist-sort : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TIT3 : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: title : I/flutter (19602): LOG::::::::::::::Tu Kya Janay I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: track : I/flutter (19602): LOG::::::::::::::03 I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: title-sort : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TSOC : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: album-sort : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: EPISODEID : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: TSO2 : I/flutter (19602): LOG::::::::::::::Pagalsong.com I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: date : I/flutter (19602): LOG::::::::::::::2017 I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: encoder : I/flutter (19602): LOG::::::::::::::Lavf59.10.100 I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: Duration: I/flutter (19602): LOG::::::::::::::00:00:34.01 I/flutter (19602): LOG::::::::::::::, start: I/flutter (19602): LOG::::::::::::::0.011995 I/flutter (19602): LOG::::::::::::::, bitrate: I/flutter (19602): LOG::::::::::::::319 kb/s I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: Stream #0:0 I/flutter (19602): LOG::::::::::::::: Audio: mp3, 44100 Hz, stereo, fltp, 320 kb/s I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: Metadata: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: encoder : I/flutter (19602): LOG::::::::::::::Lavf I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG::::::::::::::[mp3 @ 0x7b8d86d190] Estimating duration from bitrate, this may be inaccurate I/flutter (19602): I/flutter (19602): LOG::::::::::::::Input #1, mp3, from '/data/user/0/com.gesolucions.musedme/cache/file_picker/Over_the_Horizon.mp3': I/flutter (19602): I/flutter (19602): LOG:::::::::::::: Metadata: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: album : I/flutter (19602): LOG::::::::::::::Brand Music 2019 I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: artist : I/flutter (19602): LOG::::::::::::::Samsung I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: comment : I/flutter (19602): LOG::::::::::::::Samsung I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: genre : I/flutter (19602): LOG::::::::::::::Classical Crossover I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: title : I/flutter (19602): LOG::::::::::::::Over the Horizon I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: track : I/flutter (19602): LOG::::::::::::::1 I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: Duration: I/flutter (19602): LOG::::::::::::::00:04:28.56 I/flutter (19602): LOG::::::::::::::, start: I/flutter (19602): LOG::::::::::::::0.000000 I/flutter (19602): LOG::::::::::::::, bitrate: I/flutter (19602): LOG::::::::::::::168 kb/s I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: Stream #1:0 I/flutter (19602): LOG::::::::::::::: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: Stream #1:1 I/flutter (19602): LOG::::::::::::::: Video: png, rgba(pc), 978x978 [SAR 2835:2835 DAR 1:1] I/flutter (19602): LOG::::::::::::::, I/flutter (19602): LOG::::::::::::::90k tbr, I/flutter (19602): LOG::::::::::::::90k tbn I/flutter (19602): LOG:::::::::::::: (attached pic) I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: Metadata: I/flutter (19602): I/flutter (19602): LOG:::::::::::::: comment : I/flutter (19602): LOG::::::::::::::Cover (front) I/flutter (19602): LOG:::::::::::::: I/flutter (19602): I/flutter (19602): LOG::::::::::::::Unknown encoder 'libmp3lame'

Build error while running android.sh on project root directory

Build log:
INFO: Using Android NDK v21.4.7075529 provided at C:\Users\faiz2\AppData\Local\Android\android-ndk-r21e

INFO: Build options:

INFO: Building ffmpeg-kit 22998b5 library for Android: Wed Jun 23 13:42:04 IST 2021

INFO: Downloading source code of ffmpeg and enabled external libraries.

DEBUG: Downloading gnu config source.

INFO: Cloning tag v20201222 from repository https://github.com/tanersener/gnu-config into local directory /c/Users/faiz2/Desktop/version control/TrimVideo/.tmp/source/config

fatal: Too many arguments.

usage: git clone [] [--] [

]

-v, --verbose         be more verbose
-q, --quiet           be more quiet
--progress            force progress reporting
--reject-shallow      don't clone shallow repository
-n, --no-checkout     don't create a checkout
--bare                create a bare repository
--mirror              create a mirror repository (implies bare)
-l, --local           to clone from a local repository
--no-hardlinks        don't use local hardlinks, always copy
-s, --shared          setup as shared repository
--recurse-submodules[=<pathspec>]
                      initialize submodules in the clone
--recursive ...       alias of --recurse-submodules
-j, --jobs <n>        number of submodules cloned in parallel
--template <template-directory>
                      directory from which templates will be used
--reference <repo>    reference repository
--reference-if-able <repo>
                      reference repository
--dissociate          use --reference only while cloning
-o, --origin <name>   use <name> instead of 'origin' to track upstream
-b, --branch <branch>
                      checkout <branch> instead of the remote's HEAD
-u, --upload-pack <path>
                      path to git-upload-pack on the remote
--depth <depth>       create a shallow clone of that depth
--shallow-since <time>
                      create a shallow clone since a specific time
--shallow-exclude <revision>
                      deepen history of shallow clone, excluding rev
--single-branch       clone only one branch, HEAD or --branch
--no-tags             don't clone any tags, and make later fetches not to follow them
--shallow-submodules  any cloned submodules will be shallow
--separate-git-dir <gitdir>
                      separate git dir from working tree
-c, --config <key=value>
                      set config inside the new repository
--server-option <server-specific>
                      option to transmit
-4, --ipv4            use IPv4 addresses only
-6, --ipv6            use IPv6 addresses only
--filter <args>       object filtering
--remote-submodules   any cloned submodules will use their remote-tracking branch
--sparse              initialize sparse-checkout file to include only files at root

INFO: Failed to clone https://github.com/tanersener/gnu-config -> v20201222

INFO: Downloading gnu config failed. Can not get source from https://github.com/tanersener/gnu-config

How to build ffmpeg-kit-test

Thank you for doing this exceptional work.

I have downloaded the appropriate ffmpeg-kit for my plans (macOS full), but I would like to build the ffmpeg-kit-test using these libs.

Might you give us a little more detail about how to do that?
For example, what should the folder structure be? Where is Xcode expecting to find the frameworks?

Again, thank you for all the work you did in creating this excellent packaging of FFMPEG.

How To Get Help

It is crucial to fill out the bug report template if you need help. Because we don't have time to ask the standard questions (what did you do, how did you do, where did you do, etc.) in each issue. If there is not enough information inside, most probably your issue will be ignored.

Uable to capture RTSP on Android: Output file #0 does not contain any stream

Description
I'm having difficulty when saving a RTSP stream into internal storage using ffmpeg-kit -i rtsp://192.168.100.60:554/stream1 -c:v copy -c:a copy -t 5 /data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4. There're issues with the circular_buffer_size option, but I read that the warnings could be ignored. The command runs fine on desktop using ffmpeg. Please find below the log.

Logs

ffmpeg started on 2022-05-16 at 15:27:54
Report written to "/data/user/0/com.arthenica.ffmpegkit.test/cache/ffreport.txt"
Log level: 48
Command line:
ffmpeg-kit -i rtsp://192.168.100.60:554/stream1 -c:v copy -c:a copy -t 5 /data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4
ffmpeg version v4.5-dev-3393-g30322ebe3c Copyright (c) 2000-2021 the FFmpeg developers
  built with Android (7155654, based on r399163b1) clang version 11.0.5 (https://android.googlesource.com/toolchain/llvm-project 87f1315dfbea7c137aa2e6d362dbb457e388158d)
  configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk/22.1.7171670/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/storage/light/projects/ffmpeg-kit/prebuilt/android-x86-lts/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --target-os=android --disable-neon --disable-asm --disable-inline-asm --ar=i686-linux-android-ar --cc=i686-linux-android16-clang --cxx=i686-linux-android16-clang++ --ranlib=i686-linux-android-ranlib --strip=i686-linux-android-strip --nm=i686-linux-android-nm --extra-libs='-L/storage/light/projects/ffmpeg-kit/prebuilt/android-x86-lts/cpu-features/lib -lndk_compat' --disable-autodetect --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --disable-static --enable-shared --enable-pthreads --enable-v4l2-m2m --disable-outdev=fbdev --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --  libavutil      57. 13.100 / 57. 13.100
  libavcodec     59. 15.102 / 59. 15.102
  libavformat    59. 10.100 / 59. 10.100
  libavdevice    59.  1.100 / 59.  1.100
  libavfilter     8. 21.100 /  8. 21.100
  libswscale      6.  1.102 /  6.  1.102
  libswresample   4.  0.100 /  4.  0.100
Splitting the commandline.
Reading option '-i' ... matched as input url with argument 'rtsp://192.168.100.60:554/stream1'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '5'.
Reading option '/data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://192.168.100.60:554/stream1.
Successfully parsed a group of options.
Opening an input file: rtsp://192.168.100.60:554/stream1.
[tcp @ 0xa21d3a80] No default whitelist set
[tcp @ 0xa21d3a80] Original list of addresses:
[tcp @ 0xa21d3a80] Address 192.168.100.60 port 554
[tcp @ 0xa21d3a80] Interleaved list of addresses:
[tcp @ 0xa21d3a80] Address 192.168.100.60 port 554
[tcp @ 0xa21d3a80] Starting connection attempt to 192.168.100.60 port 554
[tcp @ 0xa21d3a80] Successfully connected to 192.168.100.60 port 554
[rtsp @ 0xb25b5a00] SDP:
v=0
o=- 14665860 31787219 1 IN IP4 192.168.100.60
s=Session streamed by "MERCURY RTSP Server"
t=0 0
a=smart_encoder:virtualIFrame=1
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:4096
a=range:npt=0-
a=control:track1
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; profile-level-id=4D4020; sprop-parameter-sets=Z01AIJWgFAF34maIAAADAAgAAAMBlCA=,aO48gA==

Failed to parse interval end specification ''
[rtsp @ 0xb25b5a00] video codec set to: h264
[rtsp @ 0xb25b5a00] RTP Packetization Mode: 1
[rtsp @ 0xb25b5a00] RTP Profile IDC: 4d Profile IOP: 40 Level: 20
[rtsp @ 0xb25b5a00] Extradata set to 0xb25abdf0 (size: 35)
[rtp @ 0xb25abe60] No default whitelist set
[udp @ 0xb25abed0] No default whitelist set
[udp @ 0xb25abed0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0xb25abed0] end receive buffer size reported is 524288
[udp @ 0xb25abf40] No default whitelist set
[udp @ 0xb25abf40] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0xb25abf40] end receive buffer size reported is 524288
[rtsp @ 0xb25b5a00] setting jitter buffer size to 500
[rtsp @ 0xb25b5a00] hello state=0
Failed to parse interval end specification ''
[h264 @ 0x907e5b00] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x907e5b00] nal_unit_type: 8(PPS), nal_ref_idc: 3
[h264 @ 0x907e5b00] nal_unit_type: 7(SPS), nal_ref_idc: 3
[h264 @ 0x907e5b00] nal_unit_type: 8(PPS), nal_ref_idc: 3
[rtsp @ 0xb25b5a00] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, rtsp, from 'rtsp://192.168.100.60:554/stream1':
  Metadata:
    title           : Session streamed by "MERCURY RTSP Server"
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0, 0, 1/90000: Video: h264, none, 90k tbr, 90k tbn
Successfully opened the file.
Parsing a group of options: output url /data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4.
Applying option c:v (codec name) with argument copy.
Applying option c:a (codec name) with argument copy.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 5.
Successfully parsed a group of options.
Opening an output file: /data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4.
Output #0, mp4, to '/data/user/0/com.arthenica.ffmpegkit.test/files/test.mp4':
Output file #0 does not contain any stream

Environment

  • Platform: Android
  • Application Type: maven central
  • Architecture: arm64-simulator
  • Version: v4.5.1
  • Source branch: main

IOS 18 subtitle synthesis garbled in Chinese

IOS 18 below FFmpeg subtitle synthesis log
[Parsed_subtitles_0 @ 0x301b37650] Using font provider fontconfig
[Parsed_subtitles_0 @ 0x301b37650] fontselect: (PingFangSC-Semibold, 400, 0) -> /System/Library/Fonts/LanguageSupport/PingFang.ttc, 8, PingFangSC-Semibold

IOS 18 FFmpeg subtitle synthesis log
[Parsed_subtitles_0 @ 0x303e825d0] Using font provider fontconfig
[Parsed_subtitles_0 @ 0x303e825d0] fontselect: (PingFangSC-Regular, 400, 0) -> /System/Library/Fonts/Core/HiraginoKakuGothic.ttc, 10, . HiraKakuInterface-W4
[Parsed_subtitles_0 @ 0x303e825d0] Glyph 0x8FD9 not found, selecting one more font for (PingFangSC-Regular, 400, 0)
[Parsed_subtitles_0 @ 0x303e825d0] fontselect: (PingFangSC-Regular, 400, 0) -> /System/Library/Fonts/Core/LastResort.otf, 0, LastResort

In normal characters, there may be some garbled characters, such as 0x8FD9 mentioned in the log, corresponding to "θΏ™"
Traditional Chinese and Simplified Chinese

Normal font:
Russian, Korean, Japanese, French, English, German

IOS 18 below FFmpeg subtitle synthesis log
fontselect: (PingFangSC-Semibold, 400, 0) -> /System/Library/Fonts/LanguageSupport/PingFang.ttc, 8, PingFangSC-Semibold

IOS 18 FFmpeg subtitle synthesis log
fontselect: (PingFangSC-Regular, 400, 0) -> /System/Library/Fonts/Core/HiraginoKakuGothic.ttc, 10, . HiraKakuInterface-W4

In iOS 18, the selected font has changed and instead of continuing to use PingFang.ttc, HiraginoKakuGothic. ttc has been used

react native Npm error ERESOLVE unable to resolve dependency tree when installing

Description

Hi, there is a dependency conflict on the react native project when you install it for the first time

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"18.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.2.0" from [email protected]
npm ERR! node_modules/react-test-renderer
npm ERR!   dev react-test-renderer@"^18.2.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/garcias/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/garcias/.npm/_logs/2022-10-06T11_38_42_634Z-debug-0.log

Help me solve my issue with ffmpeg-kit

pubspec.yaml setting:
flutter:
plugin:
platforms:
android:
package: com.arthenica.flutter.ffmpeg
pluginClass: FlutterFFmpegPlugin
ios:
pluginClass: FlutterFFmpegPlugin
web:
pluginClass: FlutterFFmpegPlugin
windows:
pluginClass: FlutterFFmpegPlugin

my test code:
import 'package:ffmpeg_kit_flutter/ffmpeg_kit.dart';
FFmpegKit.execute(
'-i "E:\0_Projects\Flutter-ffmpeg\ffmpegtest\file1.mp4" -c:v mpeg4 file2.mp4')
.then((session) async {
final returnCode = await session.getReturnCode();

  if (ReturnCode.isSuccess(returnCode)) {
    print("this is the success");
    // SUCCESS

  } else if (ReturnCode.isCancel(returnCode)) {
    // CANCEL
    print("this is the cancel");
  } else {
    // ERROR
    print("this is the fail");
  }
});

my error log:
════════ Exception caught by services library ══════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel flutter.arthenica.com/ffmpeg_kit_event:
MissingPluginException(No implementation found for method listen on channel flutter.arthenica.com/ffmpeg_kit_event)

how to fix this issue?

How to use system default font on ios ?

I found some registration methods in the demo, but /System/Library/Fonts seems to be applied on Mac OS. How can iPhone devices use Apple font, such as Ping Fang

NSString *resourceFolder = [[NSBundle mainBundle] resourcePath];
NSDictionary *fontNameMapping = @{@"MyFontName" : @"Doppio One"};
[FFmpegKitConfig setFontDirectoryList:[[NSArray alloc] initWithObjects:resourceFolder, @"/System/Library/Fonts", nil] with:fontNameMapping];

What I mean is that Apple does not directly provide a directory for fonts. When I use subtitle files (such as ass files), the font is set to Ping Fang SC. However, after combining the subtitles and videos, it seems that the font in the video is not Ping Fang SC.
I used the same command on the terminal on MacOS, and the video font is correct. Here are the commands:
ffmpeg -i input.mp4 -vf ass="123.ass" -y output.mp4
If I use a custom font, then the output video is correct

Crashed on iOS app opening

Description
I tried to run the iOS application but it crashes upon opening.

Expected behaviour
I wanted to run & visualize the iOS test app properly.

Current behaviour
Crashes on starting the app.

To Reproduce
Install the pod and run the app.

Logs
pastebin

Environment

  • Platform: iOS
  • Application Type: cocoapods
  • Version: ffmpeg-kit-ios-full (5.1)
  • Source branch: main
  • Xcode version: 14.0.1 (14A400)

Unknown encoder 'libx264'

When opening test app and click Video tab, select x264 this message will show in log:
Unknown encoder 'libx264'

Similar to: x265, openh264,...

I tested on my device: Samsung Galaxy Note 10+, Android Version: 12

Please help me to check

Crash on iOS 13

Environment:

  • Platform: iOS
  • Device: iPhone7-13.3.1 / iPhone6s-13.6
  • Version: ffmpeg-kit-ios-full 4.5.1
  • Xcode version: 12.5.1
  • Cocoapods version: 1.10.1

Xcode log:

dyld: Library not loaded: /usr/lib/libexpat.1.dylib
Referenced from: /private/var/containers/Bundle/Application/F447589E-2C1F-47C6-B5B1-397F21CB8F3B/FFmpegKitIOS.app/Frameworks/libavdevice.framework/libavdevice
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
Message from debugger: Terminated due to signal 6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.