AnJoiner / FFmpegCommand

FFmpegCommand适用于Android的FFmpeg命令库,实现了对音视频相关的处理,能够快速的处理音视频,大概功能包括:音视频剪切,音视频转码,音视频解码原始数据,音视频编码,视频转图片或gif,视频添加水印,多画面拼接,音频混音,视频亮度和对比度,音频淡入和淡出效果等
https://juejin.cn/user/1046390797512814/posts
Apache License 2.0
816 stars 153 forks source link

not build ffmpeg-invoke.cpp file #5

Closed mansiJspaceo closed 4 years ago

mansiJspaceo commented 4 years ago

while build ffmpeg-invoke.cpp file got this error

/ffmpeg/libavutil/x86/timer.h:39:23: error: invalid output constraint '=a' in asm :"=a" (a), "=d" (d));

also another error is

libavcodec/x86/mathops.h:118:12: error: invalid input constraint 'ic' in asm : "ic" ((uint8_t)(-s))

another is

ffmpeg/libavcodec/x86/mathops.h:127:12: error: invalid input constraint 'ic' in asm : "ic" ((uint8_t)(-s))

how to solve this error build ffmpeg-invoke.cpp success full

AnJoiner commented 4 years ago

Sorry, Could you tell me which way do you compile, ndk-build or CMake?And you can describe your configuration of ffmpeg build in detail .

mansiJspaceo commented 4 years ago

yeah sure.. with ndk-build

for build ffmpeg-invoke.so file follow this artical https://juejin.im/post/5d440504f265da03b6388ed2

ffmpeg version:- 4.2.2 ndk Version:- NDK-r19c

only problem in build ffmpeg-invoke.so file

Thank you in Adavance

AnJoiner commented 4 years ago

I compile without problems, you can refer to this documentFFmpeg4.2.2-Build

mansiJspaceo commented 4 years ago

Thank you so much

On Thu, Jan 23, 2020 at 10:40 AM AnJoiner Lo notifications@github.com wrote:

I compile without problems, you can refer to this document FFmpeg4.2.2-Build https://github.com/AnJoiner/FFmpegCommand/blob/master/FFmpeg4.2.2-Build.md

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AnJoiner/FFmpegCommand/issues/5?email_source=notifications&email_token=ANCAZ4PHWVFWGXTDJUBQY2LQ7ERCTA5CNFSM4KIQ7M3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJWAX6I#issuecomment-577506297, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANCAZ4KVXBBARQGRCB7KY53Q7ERCTANCNFSM4KIQ7M3A .

mansiJspaceo commented 4 years ago

i build with this ..but there are only generate with armani-7a .. when i built arm64-8a it's give a error... not build ffmpeg-invoke.so file.

Any idea for this how can we build for this

On Mon, Jan 27, 2020 at 9:55 AM Mansi Joshi mansij.spaceo@gmail.com wrote:

Thank you so much

On Thu, Jan 23, 2020 at 10:40 AM AnJoiner Lo notifications@github.com wrote:

I compile without problems, you can refer to this document FFmpeg4.2.2-Build https://github.com/AnJoiner/FFmpegCommand/blob/master/FFmpeg4.2.2-Build.md

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AnJoiner/FFmpegCommand/issues/5?email_source=notifications&email_token=ANCAZ4PHWVFWGXTDJUBQY2LQ7ERCTA5CNFSM4KIQ7M3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJWAX6I#issuecomment-577506297, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANCAZ4KVXBBARQGRCB7KY53Q7ERCTANCNFSM4KIQ7M3A .

AnJoiner commented 4 years ago

In fact compiling armeabi-v7a is enough, but using the latest version of ndk to compile arm64-v8a will give an error. I used ndk-14b to compile successfully, you can try it.

mansiJspaceo commented 4 years ago

Thank you so much

On Wed, Jan 29, 2020 at 5:19 PM AnJoiner Lo notifications@github.com wrote:

In fact compiling armeabi-v7a is enough, but using the latest version of ndk to compile arm64-v8a will give an error. I used ndk-14b to compile successfully, you can try it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AnJoiner/FFmpegCommand/issues/5?email_source=notifications&email_token=ANCAZ4OBXQ3LYOKDE23ILPLRAFULHA5CNFSM4KIQ7M3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKG5HWY#issuecomment-579720155, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANCAZ4NY3LW7KSCTD5ATVUTRAFULHANCNFSM4KIQ7M3A .

mansiJspaceo commented 4 years ago

when i build with ndk-r19c & ffmpeg 4.2.2 it build successfull with x86 & x86_64 ... but can not build with arm7a or arm64-8a how can i solve this.

error same:-

**/ffmpeg/libavutil/x86/timer.h:39:23: error: invalid output constraint '=a' in asm :"=a" (a), "=d" (d));

also another error is

libavcodec/x86/mathops.h:118:12: error: invalid input constraint 'ic' in asm : "ic" ((uint8_t)(-s))

another is

ffmpeg/libavcodec/x86/mathops.h:127:12: error: invalid input constraint 'ic' in asm : "ic" ((uint8_t)(-s))**

i want to build with latest ndk & lastest ffmpeg version.