Coder Social home page Coder Social logo

befovy / ijkplayer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bilibili/ijkplayer

150.0 150.0 92.0 8.6 MB

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support. Backend for https://github.com/befovy/fijkplayer, fijkplayer 的播放内核

License: GNU General Public License v2.0

Shell 8.50% Java 16.68% Makefile 0.82% C 53.46% C++ 0.21% Objective-C 19.04% Ruby 0.26% CMake 1.04%
ffmpeg fijkplayer flutter ijkplayer

ijkplayer's Introduction

Hi there 👋

ijkplayer's People

Contributors

bbcallen avatar befovy avatar chodison avatar chrisjenx avatar ctiao avatar cwq avatar epruseal avatar gdier avatar ilibilib avatar jovisayhehe avatar linjiansheng avatar lowlevel-mboton avatar matrixreload avatar maytrue avatar midoreigh avatar nxzhou91 avatar raymond1012 avatar shingwasix avatar stuckless avatar tatowilson avatar teddyla avatar tewilove avatar willerce avatar x13945 avatar xinzhengzhang avatar xqq avatar yrom avatar yuvesy avatar zccicy avatar zmzhuai 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  avatar  avatar

ijkplayer's Issues

failed to build openssl

ndk version android-ndk-r15c
os version ubuntu 18.04

./init-android.sh
./init-android-libsrt.sh
./init-android-openssl.sh

./compile-openssl.sh armv7a

openssl.o:openssl.c:function lock_dbg_cb: error: undefined reference to 'stderr'
openssl.o:openssl.c:function do_cmd: error: undefined reference to 'stdout'
openssl.o:openssl.c:function main: error: undefined reference to 'signal'
openssl.o:openssl.c:function main: error: undefined reference to 'stderr'
openssl.o:openssl.c:function main: error: undefined reference to 'stdout'
openssl.o:openssl.c:function main: error: undefined reference to 'stdin'
verify.o:verify.c:function cb: error: undefined reference to 'stdout'
verify.o:verify.c:function check: error: undefined reference to 'stdout'

按照文档重新在本地编译 ijkplayer,得到 BUILD FAILED 错误

按照此文档为fijkplayer替换ijkplayer,执行
xcodebuild -project IJKMediaPlayer.xcodeproj -configuration Release -scheme Universal 后得到如下错误:

** BUILD FAILED **

The following build commands failed:
	CompileC /Users/yanghe/Library/Developer/Xcode/DerivedData/IJKMediaPlayer-grrptcvvqxxnmgfkmcizbnleddum/Build/Intermediates.noindex/IJKMediaPlayer.build/Release-iphoneos/IJKMediaPlayer.build/Objects-normal/arm64/allformats.o /Users/yanghe/Development/test/ijkplayer/ijkmedia/ijkplayer/ijkavformat/allformats.c normal arm64 c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

编译发生错误,错误log如下,请问有什么解决方案吗

cmake --build D:\Download\ijk-befovy\ijkplayer-android\android\ijkplayer\fijkplayer-full.externalNativeBuild\cmake\debug\armeabi-v7a --target ijkplayer
[32/109] cmd.exe /C "cd /D D:\Download\ijk-befovy\ijkplaye...ayer-full\build\intermediates\cmake\debug\obj\armeabi-v7a"
FAILED: cmd.exe /C "cd /D D:\Download\ijk-befovy\ijkplayer-android\android\ijkplayer\fijkplayer-full.externalNativeBuild\cmake\debug\armeabi-v7a && mkdir -p D:\Download\ijk-befovy\ijkplayer-android\android\ijkplayer\fijkplayer-full\build\intermediates\cmake\debug\obj\armeabi-v7a && cp D:/Download/ijk-befovy/ijkplayer-android/android/contrib/build/ffmpeg-armv7a/output/libijkffmpeg.so D:\Download\ijk-befovy\ijkplayer-android\android\ijkplayer\fijkplayer-full\build\intermediates\cmake\debug\obj\armeabi-v7a"
子目录或文件 -p 已经存在。
处理: -p 时出错。
子目录或文件 D:\Download\ijk-befovy\ijkplayer-android\android\ijkplayer\fijkplayer-full\build\intermediates\cmake\debug\obj\armeabi-v7a 已经存在。
处理: D:\Download\ijk-befovy\ijkplayer-android\android\ijkplayer\fijkplayer-full\build\intermediates\cmake\debug\obj\armeabi-v7a 时出错。
[32/109] Linking CXX static library ijkmedia\ijkyuv\libyuv_static.a
ninja: build stopped: subcommand failed.

First initialization is very slow...

Hello
first of all, thank you, this plugin is my hope because I'm making a TV Application with flutter,
I'm tried official video_player plugin but it has some problem that some TV has small video size and green background
and I can't find any way to solve that problem.

this plugin is work well, no green background problem, but the first initialization of network video is very slow then flutter official video_player plugin,

on the official video player plugin elapsed time of initialization same network video is ~20 second,
on this plugin, initialization time is 40 seconds ~ 1 minute ...
there has any option for solve this?
thank you.

[HELP] Enabling Mediacodec

Hello, I have been using Fijkplayer for flutter, and have been setting mediacodec option to 1 to solve an issue of video/audio being out of sync, but it causes some of the streams to not render correctly, displaying green screens with artifacts.

I wanted to try enabling Mediacodec in ffmpeg config by using flag --enable-mediacodec which requires enabling jni by using flag --enable-jni, but that gives me an error of "ERROR: jni not found". I have checked if it's present and it is in libavcodec directory.

Do I need some kind of include in the config to it's path?

缺少gz包

image

之前还是可以的现在发现没有f0.7.10版本的包了

App was crashed on iPhone 11 (iOS 15,5)

Sometimes app was crashed when I forced to close the application

Thread 28 name:
Thread 28 Crashed:
0 Flutter 0x0000000105322e54 -[FlutterEngine textureFrameAvailable:] + 32
1 ChillaxBaby 0x0000000100e48c88 -[IJKFFMediaPlayer display_pixels:] + 252 (IJKFFMediaPlayer.m:503)
2 ChillaxBaby 0x0000000100e690fc vout_display_overlay_l + 104 (ijksdl_vout_ios_gles2.m:127)
3 ChillaxBaby 0x0000000100e690fc vout_display_overlay + 320 (ijksdl_vout_ios_gles2.m:146)
4 ChillaxBaby 0x0000000100e53c54 video_image_display2 + 232 (ff_ffplay.c:1061)
5 ChillaxBaby 0x0000000100e53c54 video_display2 + 344 (ff_ffplay.c:1226)
6 ChillaxBaby 0x0000000100e51bdc video_refresh + 1700 (ff_ffplay.c:1725)
7 ChillaxBaby 0x0000000100e51bdc video_refresh_thread + 2008 (ff_ffplay.c:4450)
8 ChillaxBaby 0x0000000100e563a8 SDL_RunThread + 40 (ijksdl_thread_ios.m:33)
9 libsystem_pthread.dylib 0x000000022e8b49ac _pthread_start + 148 (pthread.c:891)
10 libsystem_pthread.dylib 0x000000022e8b3e68 thread_start + 8

Crash on Android after playing video first 3 to 4 seconds

I am getting a crash after video is played for a few seconds initially only after I switch to your library version 0.6 on android.

Platform: Android 9

2020-04-20 17:45:38.347 28622-28622/? E/libc: Access denied finding property "ro.vendor.at_library"
2020-04-20 17:45:38.482 28083-28592/? A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 28592 (Thread-22), pid 28083 (ayer.junoplayer)
2020-04-20 17:45:38.713 28652-28652/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG: Build fingerprint: 'lge/judyln_lao_com/judyln:9/PKQ1.181105.001/191281829b7c4:user/release-keys'
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG: Revision: '12'
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG: ABI: 'arm64'
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG: pid: 28083, tid: 28592, name: Thread-22  >>> com.video.player.videoplayer.junoplayer <<<
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG: Abort message: 'indirect_reference_table.cc:59] JNI ERROR (app bug): accessed deleted Global 0x3d82'
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG:     x0  0000000000000000  x1  0000000000006fb0  x2  0000000000000006  x3  0000000000000008
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG:     x4  0000007ca18ca000  x5  0000007ca18ca000  x6  0000007ca18ca000  x7  0000000002deb430
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG:     x8  0000000000000083  x9  d1a8d75fa09a90b0  x10 0000000000000000  x11 fffffffc7ffffbdf
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG:     x12 0000000000000001  x13 ffffffffa166daf2  x14 0000000000a9c307  x15 0000007c9d8f5000
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG:     x16 0000007c9d8e92a8  x17 0000007c9d80ad34  x18 0000000000000000  x19 0000000000006db3
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG:     x20 0000000000006fb0  x21 0000007bf0ecb000  x22 0000007c1b9e8400  x23 0000007c1b079608
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG:     x24 0000000000000000  x25 0000007bfa611588  x26 0000000000000000  x27 0000007bfeb7a9e4
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG:     x28 0000000000000043  x29 0000007bfa610d10
2020-04-20 17:45:38.714 28652-28652/? A/DEBUG:     sp  0000007bfa610cd0  lr  0000007c9d7fc394  pc  0000007c9d7fc3bc
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG: backtrace:
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #00 pc 00000000000223bc  /system/lib64/libc.so (abort+116)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #01 pc 0000000000464a40  /system/lib64/libart.so (art::Runtime::Abort(char const*)+1204)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #02 pc 0000000000008ce0  /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+724)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #03 pc 000000000023f138  /system/lib64/libart.so (art::IndirectReferenceTable::AbortIfNoCheckJNI(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)+240)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #04 pc 00000000002ec3b8  /system/lib64/libart.so (art::IndirectReferenceTable::GetChecked(void*) const+432)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #05 pc 00000000002e761c  /system/lib64/libart.so (art::JavaVMExt::DecodeGlobal(void*)+24)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #06 pc 0000000000494f00  /system/lib64/libart.so (art::Thread::DecodeJObject(_jobject*) const+152)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #07 pc 000000000045cf74  /system/lib64/libart.so (art::(anonymous namespace)::ArgArray::BuildArgArrayFromVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, art::ObjPtr<art::mirror::Object>, std::__va_list)+136)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #08 pc 000000000045cdac  /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+400)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #09 pc 0000000000361c74  /system/lib64/libart.so (art::JNI::CallStaticVoidMethod(_JNIEnv*, _jclass*, _jmethodID*, ...)+712)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #10 pc 0000000000021560  /data/app/com.video.player.videoplayer.junoplayer-UZyltsgwIVYanOXrf8NJbw==/lib/arm64/libijksdl.so (J4AC_tv_danmaku_ijk_media_player_IjkMediaPlayer__postEventFromNative+56)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #11 pc 0000000000031810  /data/app/com.video.player.videoplayer.junoplayer-UZyltsgwIVYanOXrf8NJbw==/lib/arm64/libijkplayer.so
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #12 pc 0000000000024c94  /data/app/com.video.player.videoplayer.junoplayer-UZyltsgwIVYanOXrf8NJbw==/lib/arm64/libijkplayer.so
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #13 pc 00000000000122e8  /data/app/com.video.player.videoplayer.junoplayer-UZyltsgwIVYanOXrf8NJbw==/lib/arm64/libijksdl.so
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #14 pc 0000000000092efc  /system/lib64/libc.so (__pthread_start(void*)+36)
2020-04-20 17:45:38.718 28652-28652/? A/DEBUG:     #15 pc 0000000000023c78  /system/lib64/libc.so (__start_thread+68)
2020-04-20 17:45:38.730 793-817/? E/[email protected]: readFile: Could not open /sys/class/power_supply/usb/is_ocp
2020-04-20 17:45:38.751 793-817/? E/[email protected]: readFile: Could not open /sys/class/power_supply/usb/is_ocp
2020-04-20 17:45:38.762 793-817/? E/[email protected]: readFile: Could not open /sys/class/power_supply/usb/is_ocp
2020-04-20 17:45:38.773 793-817/? E/[email protected]: readFile: Could not open /sys/class/power_supply/usb/is_ocp
2020-04-20 17:45:38.783 793-817/? E/[email protected]: readFile: Could not open /sys/class/power_supply/usb/is_ocp
2020-04-20 17:45:38.794 793-817/? E/[email protected]: readFile: Could not open /sys/class/power_supply/usb/is_ocp
2020-04-20 17:45:39.060 1238-1238/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_00
2020-04-20 17:45:39.229 1178-1387/? E/OMXNodeInstance: !!! Observer died. Quickly, do something, ... anything...
2020-04-20 17:45:39.271 1616-1711/? E/libprocessgroup: Error encountered killing process cgroup uid 99594 pid 28235: No such file or directory
2020-04-20 17:45:39.303 1616-1907/? E/InputDispatcher: channel 'e82cf6e com.video.player.videoplayer.junoplayer/com.video.player.videoplayer.junoplayer.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
2020-04-20 17:45:39.318 3481-3481/? E/NotificationColorUtil: Drawable not found: 2131165370
2020-04-20 17:45:39.318 3481-3481/? E/NotificationColorUtil: Drawable not found: 2131165370
2020-04-20 17:45:39.341 2277-2545/? E/AppPowerController: PowerRM, event=sys.activity-resume activity=com.lge.launcher3/com.lge.launcher3.LauncherExtension package=com.lge.launcher3
2020-04-20 17:45:39.341 2277-2545/? E/AppPowerController: PowerRM, processEvent : EventHub.APP_START_EVENT ACTIVITY_START_EVENT ACTIVITY_RESUME_EVENT
2020-04-20 17:45:39.341 2277-2545/? E/AppPowerController: PowerRM, ActivityTrans CurApp=com.lge.launcher3 CurrActivity=com.lge.launcher3/com.lge.launcher3.LauncherExtension
2020-04-20 17:45:39.342 2277-2545/? E/AppPowerController: PowerRM, Geo app = com.lge.launcher3/com.lge.launcher3.LauncherExtension
2020-04-20 17:45:39.381 2277-2545/? E/AppPowerController: PowerRM, event=sys.window-focus activity=null package=com.lge.launcher3
2020-04-20 17:45:39.381 2277-2545/? E/AppPowerController: PowerRM, processEvent : EventHub.WINDOW_FOCUS_CHANGED_EVENT
2020-04-20 17:45:39.381 2277-2545/? E/AppPowerController: PowerRM, focus changed event packageName =com.lge.launcher3
2020-04-20 17:45:39.394 27464-27489/? E/PBSessionCacheImpl: sessionId[120789536714195776] not persisted.
2020-04-20 17:45:39.420 2277-2545/? E/AppPowerController: PowerRM, event=sys.activity-idle activity=null package=null
2020-04-20 17:45:39.420 2277-2545/? E/AppPowerController: PowerRM, processEvent : EventHub.ACTIVITY_IDLE_EVENT
2020-04-20 17:45:39.420 2277-2545/? E/AppPowerController: PowerRM, notifyGameStatus : 1,0,60,0
2020-04-20 17:45:39.420 2277-2545/? E/AppPowerController: PowerRM, Game Setting: 1, 0, 60, 0
2020-04-20 17:45:39.420 2277-2545/? E/AppPowerController: PowerRM, notifyGameStatus to proxy, notifyGameStatu

compile-ffmpeg.sh all这步报错

/ijkplayer-android/android/contrib/build/ffmpeg-armv7a/toolchain/bin//arm-linux-androideabi-gcc
arm-linux-androideabi-gcc is unable to create an executable file.
C compiler test failed.

您好,iOS运行是,播放https开头的地址,闪退,错误日志有限。m3u8, flv格式都闪退

如题,错误日志如下,

===== versions =====
ijkplayer : 1.0.4
FFmpeg : ff4.0-20230611
libavutil : 56.14.100
libavcodec : 58.18.100
libavformat : 58.12.100
libswscale : 5.1.100
libswresample: 3.1.100
===== options =====
player-opts : overlay-format = fcc-bgra
player-opts : videotoolbox = 1
player-opts : enable-position-notify = 1
player-opts : start-on-prepared = 1
format-opts : ijkapplication = 12943704064
format-opts : ijkiomanager = 5107711088

flutter: [inf] 2024-04-28 10:18:52.384061 [fplayer] FPlayer{id:1} state changed to FState.asyncPreparing <= FState.initialized
flutter: [inf] 2024-04-28 10:18:52.384157 [fplayer] FPlayer{id:1} invoke prepareAsync and start #1 -> done
flutter: [inf] 2024-04-28 10:18:52.385062 [fplayer] FPlayer{id:1} state changed to FState.initialized <= FState.idle
flutter: [inf] 2024-04-28 10:18:52.385148 [fplayer] FPlayer{id:1} state changed to FState.asyncPreparing <= FState.initialized
cur ipv4 c_ipaddr = 101.71.31.66
tcp did open uri = tcp://open.ys7.com:443, ip = port = 0
Message from debugger: killed

我在develop版本里面发现有视频录制的功能,编译出来录制失败

https://github.com/befovy/ijkplayer/tree/develop这里面,我发现视频录制的功能
编译之后
调用startRecord后报这个错,请问有人遇到过吗,如何解决
I/flutter (27362): [inf] 2023-06-08 14:37:31.821509 [fijk] FijkPlayer{id:6} takeStartRecord
D/IJKMEDIA(27362): ijkmp_startRecord()
E/IJKMEDIA(27362): Unable to find a suitable output format for '/data/user/0/com.befovy.fijkplayer.demo/cache/1.mp4'
I/IJKMEDIA(27362): ===== 初始化一个用于输出的AVFormatContext结构体 =====
E/IJKMEDIA(27362): Could not create output context filename is /data/user/0/com.befovy.fijkplayer.demo/cache/1.mp4
D/IJKMEDIA(27362): ijkmp_startRecord()=-1
I/flutter (27362): ===》/data/user/0/com.befovy.fijkplayer.demo/cache/1.mp4
I/flutter (27362): [inf] 2023-06-08 14:37:32.387159 [fijk] FijkPlayer{id:6} takeStartRecord
I/flutter (27362): [inf] 2023-06-08 14:37:34.485718 [fijk] FijkPlayer{id:6} takeStopRecord
D/IJKMEDIA(27362): ijkmp_stopRecord()
I/IJKMEDIA(27362): ===== 文件录制结束流程 =====
E/IJKMEDIA(27362): don't need stopRecord
D/IJKMEDIA(27362): ijkmp_stopRecord()=0

iOS 编译失败 C compiler test failed.

iOS 编译失败

====================
[*] check xcode version

FF_ALL_ARCHS = armv7 arm64 i386 x86_64

[*] check host

FF_ARCH=armv7
FF_BUILD_OPT=
build_root: /Users/damon/Documents/ijkplayer-ios/ios

[*] check gas-preprocessor

gasp: /Users/damon/Documents/ijkplayer-ios/ios/../extra/gas-preprocessor/gas-preprocessor.pl

[*] config arch armv7

build_name: ffmpeg-armv7
platform: iPhoneOS
osversion: -miphoneos-version-min=6.0

[*] make ios toolchain ffmpeg-armv7

build_source: /Users/damon/Documents/ijkplayer-ios/ios/ffmpeg-armv7
build_prefix: /Users/damon/Documents/ijkplayer-ios/ios/build/ffmpeg-armv7/output


[*] configurate ffmpeg


[*] check OpenSSL


[*] configure

config: --disable-gpl --disable-nonfree --enable-runtime-cpudetect --disable-gray --disable-swscale-alpha --disable-programs --disable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-avdevice --enable-avcodec --enable-avformat --enable-avutil --enable-swresample --enable-swscale --disable-postproc --enable-avfilter --disable-avresample --enable-network --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --disable-encoders --disable-hwaccels --disable-muxers --disable-devices --disable-iconv --enable-protocol=async --enable-cross-compile --disable-stripping --arch=armv7 --target-os=darwin --enable-static --disable-shared --enable-pic --enable-neon --enable-optimizations --enable-debug --enable-small --prefix=/Users/damon/Documents/ijkplayer-ios/ios/build/ffmpeg-armv7/output xcrun -sdk iphoneos clang
xcrun -sdk iphoneos clang is unable to create an executable file.
C compiler test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
[email protected] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

Android make ./compile-ffmpeg.sh all error

  1. tools/do-compile-ffmpeg.sh: line 372: 5910 Segmentation fault: 11 make clean
  2. tools/do-compile-ffmpeg.sh: line 380: 6063 Segmentation fault: 11 make $FF_MAKE_FLAGS > /dev/null

android编译文件的修改

android/ijkplayer/ijkplayer-armv7a/src/main/jni 下面的Android.mk需要修改,否则编译会出错。
MY_APP_FFMPEG_OUTPUT_PATH
image

Enbale some audio decoder support

export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=mpeg4"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=mp2*"
export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-decoder=ac3"

使用ijkio:cache:ffio:协议Android上会出现Error (-1,0,Operation not permitted)。有时候正常。

D/IJKMEDIA(27558): IjkMediaPlayer_setOptionLong
D/IJKMEDIA(27558): IjkMediaPlayer_prepareAsync
D/IJKMEDIA(27558): ijkmp_prepare_async()
I/IJKMEDIA(27558): ===== versions =====
I/IJKMEDIA(27558): ijkplayer :
I/IJKMEDIA(27558): FFmpeg : ff4.0--ijk0.8.8--20211030--926
I/IJKMEDIA(27558): libavutil : 56.14.100
I/IJKMEDIA(27558): libavcodec : 58.18.100
I/IJKMEDIA(27558): libavformat : 58.12.100
I/IJKMEDIA(27558): libswscale : 5.1.100
I/IJKMEDIA(27558): libswresample: 3.1.100
I/IJKMEDIA(27558): ===== options =====
I/IJKMEDIA(27558): player-opts : enable-position-notify = 1
I/IJKMEDIA(27558): player-opts : start-on-prepared = 1
I/IJKMEDIA(27558): format-opts : ijkapplication = -5476376642297976624
I/IJKMEDIA(27558): format-opts : ijkiomanager = -5476376640595185024
I/IJKMEDIA(27558): format-opts : cache_map_path = /data/user/0/com.xxxxx.xxxxx/cache/fdVideoCache/mapCache/xxx.MP4
I/IJKMEDIA(27558): SDL_RunThread: [4820] ff_msg_loop
I/IJKMEDIA(27558): format-opts : cache_file_path = /data/user/0/com.xxxxx.xxxxx/cache/xxxxx/pathCache/xxx.MP4
I/IJKMEDIA(27558): format-opts : parse_cache_map = 1
I/IJKMEDIA(27558): format-opts : auto_save_map = 1
I/IJKMEDIA(27558): ===================
D/IJKMEDIA(27558): message_loop
D/IJKMEDIA(27558): FFP_MSG_FLUSH:
I/IJKMEDIA(27558): SDL_RunThread: [4821] ff_vout
D/IJKMEDIA(27558): ijkmp_prepare_async()=0
I/IJKMEDIA(27558): SDL_RunThread: [4822] ff_read
E/IJKMEDIA(27558): ijkio:cache:ffio:http://image.xxxxxxx.com/xxx.MP4: Operation not permitted
I/IJKMEDIA(27558): SDL_JNI_DetachThreadEnv: [4822]
D/IJKMEDIA(27558): FFP_MSG_ERROR: -1
E/tv.danmaku.ijk.media.player.IjkMediaPlayer(27558): Error (-1,0,Operation not permitted)
I/flutter (27558): [inf] 2023-08-15 16:41:03.808550 [fijk] FijkPlayer{id:2} state changed to FijkState.asyncPreparing <= FijkState.initialized
I/flutter (27558): [inf] 2023-08-15 16:41:03.810238 [fijk] FijkPlayer{id:2} invoke prepareAsync and start #1 -> done
I/flutter (27558): [inf] 2023-08-15 16:41:03.811810 [fijk] FijkPlayer{id:2} state changed to FijkState.initialized <= FijkState.idle
I/flutter (27558): [inf] 2023-08-15 16:41:03.813158 [fijk] FijkPlayer{id:2} state changed to FijkState.asyncPreparing <= FijkState.initialized
I/flutter (27558): [err] 2023-08-15 16:41:03.816506 [fijk] FijkPlayer{id:2} errorListener: FijkException(-1, Operation not permitted)
I/flutter (27558): [inf] 2023-08-15 16:41:03.819444 [fijk] FijkPlayer{id:2} state changed to FijkState.error <= FijkState.asyncPreparing

how should change the source dynamically?

Hi
I try to change the source dynamically based on a playlist. but in different conditions got errors like this:
E/flutter (27070): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Bad state: call start on invalid state FijkState.end

is there any specific way for changing the source?

编译报错 libavutil/application.c:25:14: fatal error: 'openssl/evp.h' file not found #include <openssl/evp.h>

当我下载完ffmpeg安装给定的命令./compile-ffmpeg.sh all 编译的时候报了如下错误:
`[*] compile ffmpeg

CC libavutil/application.o
CC libavutil/buffer.o
CC libavutil/camellia.o
clangclang: : warningwarning: clang: : optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]warning

: optimization flag '-fomit-frame-pointer' is not supported for target 'armv7' [-Wignored-optimization-argument]
libavutil/application.c:25:14: fatal error: 'openssl/evp.h' file not found
#include <openssl/evp.h>
^~~~~~~~~~~~~~~
1 error generated.
make: *** [libavutil/application.o] Error 1
make: *** Waiting for unfinished jobs....`
请问您之前有遇到过吗? 该如何解决

The show error after update commit "remove/add audio kit audio interrupt handler"

Dear @befovy ,
I tried to update the latest code and found the report from firebase Crashlytics

Crashed: com.apple.main-thread
0 libsystem_platform.dylib 0x60c0 _os_unfair_lock_recursive_abort + 36
1 libsystem_platform.dylib 0xa10 _os_unfair_lock_lock_slow + 304
2 CoreFoundation 0xdd3a0 _logToStderr + 148
3 CoreFoundation 0x4b74c _CFLogvEx2Predicate + 368
4 CoreFoundation 0x67a44 _CFLogvEx3 + 252
5 Foundation 0x4848c _NSLogv + 124
6 Foundation 0x3fc4c NSLog + 56
7 OrbwebM2MKit 0xee04 sigpipe_handler + 20
8 libsystem_platform.dylib 0x1c18 _sigtramp + 56
9 CoreFoundation 0xdd3b4 _logToStderr + 168
10 CoreFoundation 0x4b74c _CFLogvEx2Predicate + 368
11 CoreFoundation 0x67a44 _CFLogvEx3 + 252
12 Foundation 0x4848c _NSLogv + 124
13 Foundation 0x3fc4c NSLog + 56
14 Runner 0xc8970 -[IJKAudioKit setActive:] + 81 (IJKAudioKit.m:81)
15 Runner 0xcfbd8 -[IJKFFMediaPlayer audioSessionInterrupt:] + 589 (IJKFFMediaPlayer.m:589)
16 CoreFoundation 0x2aee8 CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 28
17 CoreFoundation 0xc6b9c ___CFXRegistrationPost_block_invoke + 52
18 CoreFoundation 0x99f54 _CFXRegistrationPost + 456
19 CoreFoundation 0x40d54 _CFXNotificationPost + 716
20 Foundation 0x1b028 -[NSNotificationCenter postNotificationName:object:userInfo:] + 96
21 AudioSession 0xbf78 -[AVAudioSession privateInterruptionWithInfo:] + 1740
22 AudioSession 0xcdb8 invocation function for block in avfaudio::AVAudioSessionPropertyListener(void*, unsigned int, unsigned int, void const*) + 56
23 libdispatch.dylib 0x1c04 _dispatch_call_block_and_release + 32
24 libdispatch.dylib 0x3950 _dispatch_client_callout + 20
25 libdispatch.dylib 0x11d30 _dispatch_main_queue_callback_4CF + 940
26 CoreFoundation 0x51ce4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
27 CoreFoundation 0xbebc __CFRunLoopRun + 2540
28 CoreFoundation 0x1f3c8 CFRunLoopRunSpecific + 600
29 GraphicsServices 0x138c GSEventRunModal + 164
30 UIKitCore 0x51b060 -[UIApplication _run] + 1100
31 UIKitCore 0x298b8c UIApplicationMain + 2124
32 Runner 0x5eec main + 6 (AppDelegate.swift:6)
33 ??? 0x101955a24 (Missing)

openssl.o:openssl.c:function do_cmd: error: undefined reference to 'stdout' 编译openssl报错

l} openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o srp.o ${LIBDEPS} )
openssl.o:openssl.c:function lock_dbg_cb: error: undefined reference to 'stderr'
openssl.o:openssl.c:function do_cmd: error: undefined reference to 'stdout'
openssl.o:openssl.c:function do_cmd: error: undefined reference to 'stdout'
openssl.o:openssl.c:function do_cmd: error: undefined reference to 'stdout'
openssl.o:openssl.c:function do_cmd: error: undefined reference to 'stdout'
openssl.o:openssl.c:function main: error: undefined reference to 'stderr'
openssl.o:openssl.c:function main: error: undefined reference to 'stderr'
openssl.o:openssl.c:function main: error: undefined reference to 'stdin'
verify.o:verify.c:function verify_main: error: undefined reference to 'stderr'
asn1pars.o:asn1pars.c:function asn1parse_main: error: undefined reference to 'stdin'

用的环境
ubuntu 20.0.4lts
python 2.7.8
ndk andrid-r15c
android sdk api用的23
编bilibil那个什么都没改的 没问题ndk版本用的android-ndk-r14b

build ./compile-libsrt.sh error

log info:
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc
Build flags: ;-fPIE;-fPIC
Id flags:

The output was:
1
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: error: ld returned 1 exit status

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++
Build flags:
Id flags:

The output was:
1
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtbegin_dynamic.o: No such file or directory
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot open crtend_android.o: No such file or directory
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lstdc++
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lm
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lc
/Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -ldl
collect2: error: ld returned 1 exit status

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp

Run Build Command(s):/Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/build/toolchain-armv7a/bin/make cmTC_17b0b/fast && /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/build/toolchain-armv7a/bin/make -f CMakeFiles/cmTC_17b0b.dir/build.make CMakeFiles/cmTC_17b0b.dir/build
make[1]: Entering directory /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_17b0b.dir/src.c.o /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/Users/samychen/Develop/android-ndk-r15c/sysroot -isystem /Users/samychen/Develop/android-ndk-r15c/sysroot/usr/include -isystem /Users/samychen/Develop/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi -fPIE -fPIC -march=armv7-a -mthumb -mfpu=vfpv3-d16 -mfloat-abi=softfp -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=14 -fexceptions -DCMAKE_HAVE_LIBC_PTHREAD -g -o CMakeFiles/cmTC_17b0b.dir/src.c.o -c /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp/src.c Linking C executable cmTC_17b0b /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_17b0b.dir/link.txt --verbose=1 /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/Users/samychen/Develop/android-ndk-r15c/platforms/android-14/arch-arm -fPIE -fPIC -march=armv7-a -mthumb -mfpu=vfpv3-d16 -mfloat-abi=softfp -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=14 -fexceptions -DCMAKE_HAVE_LIBC_PTHREAD -g -Wl,--fix-cortex-a8 -Wl,--gc-sections -Wl,-z,nocopyreloc -pie CMakeFiles/cmTC_17b0b.dir/src.c.o -o cmTC_17b0b /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp/src.c:13: error: undefined reference to 'pthread_cancel' collect2: error: ld returned 1 exit status make[1]: *** [cmTC_17b0b] Error 1 make[1]: Leaving directory /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp'
make: *** [cmTC_17b0b/fast] Error 2

Source file was:
#include <pthread.h>

void* test_func(void* data)
{
return data;
}

int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_cancel(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);

return 0;
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp

Run Build Command(s):/Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/build/toolchain-armv7a/bin/make cmTC_37662/fast && /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/build/toolchain-armv7a/bin/make -f CMakeFiles/cmTC_37662.dir/build.make CMakeFiles/cmTC_37662.dir/build
make[1]: Entering directory /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_37662.dir/CheckFunctionExists.c.o /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/Users/samychen/Develop/android-ndk-r15c/sysroot -isystem /Users/samychen/Develop/android-ndk-r15c/sysroot/usr/include -isystem /Users/samychen/Develop/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi -fPIE -fPIC -march=armv7-a -mthumb -mfpu=vfpv3-d16 -mfloat-abi=softfp -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=14 -fexceptions -DCHECK_FUNCTION_EXISTS=pthread_create -g -o CMakeFiles/cmTC_37662.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.17.0_1/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_37662 /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_37662.dir/link.txt --verbose=1 /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/Users/samychen/Develop/android-ndk-r15c/platforms/android-14/arch-arm -fPIE -fPIC -march=armv7-a -mthumb -mfpu=vfpv3-d16 -mfloat-abi=softfp -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=14 -fexceptions -DCHECK_FUNCTION_EXISTS=pthread_create -g -Wl,--fix-cortex-a8 -Wl,--gc-sections -Wl,-z,nocopyreloc -pie CMakeFiles/cmTC_37662.dir/CheckFunctionExists.c.o -o cmTC_37662 -lpthreads /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpthreads collect2: error: ld returned 1 exit status make[1]: *** [cmTC_37662] Error 1 make[1]: Leaving directory /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp'
make: *** [cmTC_37662/fast] Error 2

Determining if the function pthread_create exists in the pthread failed with the following output:
Change Dir: /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp

Run Build Command(s):/Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/build/toolchain-armv7a/bin/make cmTC_deb86/fast && /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/build/toolchain-armv7a/bin/make -f CMakeFiles/cmTC_deb86.dir/build.make CMakeFiles/cmTC_deb86.dir/build
make[1]: Entering directory /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_deb86.dir/CheckFunctionExists.c.o /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/Users/samychen/Develop/android-ndk-r15c/sysroot -isystem /Users/samychen/Develop/android-ndk-r15c/sysroot/usr/include -isystem /Users/samychen/Develop/android-ndk-r15c/sysroot/usr/include/arm-linux-androideabi -fPIE -fPIC -march=armv7-a -mthumb -mfpu=vfpv3-d16 -mfloat-abi=softfp -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=14 -fexceptions -DCHECK_FUNCTION_EXISTS=pthread_create -g -o CMakeFiles/cmTC_deb86.dir/CheckFunctionExists.c.o -c /usr/local/Cellar/cmake/3.17.0_1/share/cmake/Modules/CheckFunctionExists.c Linking C executable cmTC_deb86 /usr/local/Cellar/cmake/3.17.0_1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_deb86.dir/link.txt --verbose=1 /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc --sysroot=/Users/samychen/Develop/android-ndk-r15c/platforms/android-14/arch-arm -fPIE -fPIC -march=armv7-a -mthumb -mfpu=vfpv3-d16 -mfloat-abi=softfp -funwind-tables -no-canonical-prefixes -D__ANDROID_API__=14 -fexceptions -DCHECK_FUNCTION_EXISTS=pthread_create -g -Wl,--fix-cortex-a8 -Wl,--gc-sections -Wl,-z,nocopyreloc -pie CMakeFiles/cmTC_deb86.dir/CheckFunctionExists.c.o -o cmTC_deb86 -lpthread /Users/samychen/Develop/android-ndk-r15c/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lpthread collect2: error: ld returned 1 exit status make[1]: *** [cmTC_deb86] Error 1 make[1]: Leaving directory /Users/samychen/AndroidStudioProjects/ijkplayer/android/contrib/libsrt-armv7a/CMakeFiles/CMakeTmp'
make: *** [cmTC_deb86/fast] Error 2

Unknown option "--disable-ffserver" on compilation

On running ./compile-ffmpeg.sh all

====================
[*] check archs
====================
FF_ALL_ARCHS = armv5 armv7a arm64 x86 x86_64
FF_ACT_ARCHS = armv5 armv7a arm64 x86 x86_64

====================
[*] check env armv5
====================
FF_ARCH=armv5
FF_BUILD_OPT=

--------------------
[*] make NDK standalone toolchain
--------------------
build on Darwin x86_64
ANDROID_NDK=/Users/harsh/Downloads/android-ndk-r15c
IJK_NDK_REL=15.2.4203891
NDKr15.2.4203891 detected
HOST_OS=darwin
HOST_EXE=
HOST_ARCH=x86_64
HOST_TAG=darwin-x86_64
HOST_NUM_CPUS=8
BUILD_NUM_CPUS=16
Auto-config: --arch=arm
Toolchain installed to /Users/harsh/dev/pmtvfire/ijkplayer-android/android/contrib/build/toolchain-armv5.

--------------------
[*] check ffmpeg env
--------------------

--------------------
[*] configurate ffmpeg
--------------------
/Users/harsh/dev/pmtvfire/ijkplayer-android/android/contrib/build/toolchain-armv5/bin//arm-linux-androideabi-gcc
Unknown option "--disable-ffserver".
See ./configure --help for available options.

My environment: MacOS X 10.14.6
Steps to reproduce:

  1. git clone https://github.com/befovy/ijkplayer.git ijkplayer-android
cd config
rm module.sh
ln -s module-default.sh module.sh
cd android/contrib
# cd ios
sh compile-ffmpeg.sh clean
  1. Follow https://github.com/befovy/ijkplayer#build-android-via-cmake

Possible explanation : http://www.ffmpeg-archive.org/Unknown-option-quot-disable-ffserver-quot-td4683446.html

Build failed both Android & iOS

Dear All,

I check out the latest version code on branch "master".
Nani:befovy_ijkplayer nani$ git log --oneline
13af3d0 (HEAD -> master, origin/master, origin/HEAD) ci: fix tag name, extract tag name

ANDROID_NDK: android-ndk-r10e
Before build, I run:
cd config
rm module.sh
ln -s module-default.sh module.sh

Build Android:
./init-android.sh

cd android/contrib
./compile-ffmpeg.sh clean
./compile-ffmpeg.sh all
`Nani:contrib nani$ ./compile-ffmpeg.sh all

[*] check archs

FF_ALL_ARCHS = armv7a arm64 x86 x86_64
FF_ACT_ARCHS = armv7a arm64 x86 x86_64

====================
[*] check env armv7a

FF_ARCH=armv7a
FF_BUILD_OPT=


[*] make NDK standalone toolchain

build on Darwin x86_64
ANDROID_NDK=/.../Android/android-ndk-r10e
NDKr10e(64-bit) detected


[*] check ffmpeg env

--------------------/../befovy_ijkplayer/android/contrib/build/toolchain-armv7a/bin
--------------------arm-linux-androideabi


[*] configurate ffmpeg

/../befovy_ijkplayer/android/contrib/build/toolchain-armv7a/bin//arm-linux-androideabi-clang
Unknown option "--disable-ffserver".
See ./configure --help for available options.
`
Build iOS
./init-ios-openssl.sh
cd ios
./compile-openssl.sh clean
./compile-openssl.sh all
cd IJKMediaPlayer
run xcodebuild -project IJKMediaPlayer.xcodeproj -configuration Release -scheme Universal

`In file included from /../befovy_ijkplayer/ijkmedia/ijksdl/gles2/fsh/rgb.fsh.c:22:
In file included from ../../ijkmedia/ijksdl/gles2/internal.h:30:
In file included from ../../ijkmedia/ijksdl/ijksdl_vout.h:33:
../../ijkmedia/ijksdl/ffmpeg/ijksdl_inc_ffmpeg.h:28:10: fatal error: 'libavutil/imgutils.h' file not found
#include "libavutil/imgutils.h"
^~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.

** BUILD FAILED **
`

Please help me.
I try to build and upgrade FFMpeg 4.+
Thank you so much!

ijkffmpeg: LOCAL_SRC_FILES points to a missing file

➜ /Users/michael/Development/befovy_ijkplayer/android/contrib git:(master) >./compile-ffmpeg.sh all

image

➜ /Users/michael/Development/befovy_ijkplayer/android git:(master) >sh compile-ijk.sh

image

是不是MY_APP_FFMPEG_OUTPUT_PATH变量配置有问题? 

Great Work! Some questions I wanted to ask.

Hello there, so I have been working on a library for react native based on ijkplayer. Your ijkplayer fork is very well mantained. is there any possibility of it being available on cocoapods as a framework?

Also IJKPlayer supports native subtitle render on android only but nothing for iOS. Do you have any plans to implement that feature?

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.