AnJoiner / FFmpegCommand

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

not generate ffmpeg-invoke.so file #6

Closed mansiJspaceo closed 4 years ago

mansiJspaceo commented 4 years ago

when i build run command ndk-build at that time only fetch one error if possbile then please help me.

**make: * No rule to make target /home/sotsys-178/Pictures/jni/ffmpeg-invoke.cpp', needed by/home/sotsys-178/Pictures/obj/local/armeabi-v7a/objs/ffmpeg-invoke/ffmpeg-invoke.o'. Stop.

how can i solve this error. also add Screen Shot of error

ffmpeg

AnJoiner commented 4 years ago

You need to check your configuration path of the ffmpeg-invoke.cpp, it may be caused by it:

  1. check your android.mk file of the ffmpeg-invoke.cpp
    
    LOCAL_MODULE := ffmpeg-invoke

LOCAL_SRC_FILES :=ffmpeg-invoke.cpp \ cmdutils.c \ ffmpeg_filter.c \ ffmpeg_opt.c \ ffmpeg_hw.c \ ffmpeg.c


2. Use other NDK version

3. Note the Table and Space keys of the configuration path
mansiJspaceo commented 4 years ago

thank you... will Try to solve it

On Wed, Jan 22, 2020 at 7:05 AM AnJoiner Lo notifications@github.com wrote:

You need to check your configuration path of the ffmpeg-invoke.cpp, it may be caused by it:

  1. check your android.mk file of the ffmpeg-invoke.cpp

LOCAL_MODULE := ffmpeg-invoke

LOCAL_SRC_FILES :=ffmpeg-invoke.cpp \

             cmdutils.c \

             ffmpeg_filter.c \

             ffmpeg_opt.c \

             ffmpeg_hw.c \

             ffmpeg.c

1.

Use other NDK version 2.

Note the Table and Space keys of the configuration path

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

mansiJspaceo commented 4 years ago

can you please provide your android.mk file

AnJoiner commented 4 years ago
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE :=  libavdevice
LOCAL_SRC_FILES := prebuilt/libavdevice.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE :=  libavutil
LOCAL_SRC_FILES := prebuilt/libavutil.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE :=  libswresample
LOCAL_SRC_FILES := prebuilt/libswresample.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE :=  libswscale
LOCAL_SRC_FILES := prebuilt/libswscale.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := libavcodec
LOCAL_SRC_FILES := prebuilt/libavcodec.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := libavformat
LOCAL_SRC_FILES := prebuilt/libavformat.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := libavfilter
LOCAL_SRC_FILES := prebuilt/libavfilter.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := libpostproc
LOCAL_SRC_FILES := prebuilt/libpostproc.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := ffmpeg-invoke

LOCAL_SRC_FILES :=ffmpeg-invoke.cpp \
                 cmdutils.c \
                 ffmpeg_filter.c \
                 ffmpeg_opt.c \
                 ffmpeg_hw.c \
                 ffmpeg.c

LOCAL_C_INCLUDES := /home/relo/Coder/FFmpegCommand/ffmpeg-4.2.1

LOCAL_LDLIBS := -llog -ljnigraphics -lz -landroid -lm -pthread -L$(SYSROOT)/usr/lib
LOCAL_SHARED_LIBRARIES := libavdevice libavcodec libavfilter libavformat libavutil libswresample libswscale libpostproc

include $(BUILD_SHARED_LIBRARY)