AnJoiner / FFmpegCommand

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

build failed of ffmpeg-invoke.cpp file #7

Closed mansiJspaceo closed 3 years ago

mansiJspaceo commented 4 years ago

while build ffmpeg-invoke.cpp file got this error

Change ndk version also again build android folder inside ffmpeg source code

/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 can i solve it. plase help

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

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

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

okay..

but in latest device support arm64-v8a ... that's why..

if you have idea about which ndk version & ffmpeg verison build successfully for all armeabi-v7a, armeabi-v7a,x86,x64-86....

i want to build for all devices.

so i used this build again

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/7?email_source=notifications&email_token=ANCAZ4M3CCWT2DO6AWM3G2TRAFUM5A5CNFSM4KKA6THKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKG5I5Q#issuecomment-579720310, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANCAZ4J4HHZ67T2H2NDG6NLRAFUM5ANCNFSM4KKA6THA .

mansiJspaceo commented 4 years ago

hello successfully build all file now...when i run ffmpeg command can not create output file what i have to do for that