-
Notifications
You must be signed in to change notification settings - Fork 136
Inclusion of FFmpeg Libraries #8
Comments
This is weird because in yt-watchme/app/src/main/jni/Android.mk already defined C99 mode. |
You need to build the ffmpeg with the provided JNI code and Android.mk |
Hello, I had exactly the same problem. With this, you will go further, but with this I am stuck with the following problem: And actually in this file, I have ifdef HAVE_AV_CONFIG_H Is there someone else who had this problem? Thank you! |
Hi, I don't remember the specific headers needed but all of them are in libavutil. |
I have the same problem. =( I have tried to build with all FFmpeg sources at Compilation Guide but in all cases got some error. Can anyone that had a successful FFmpeg inclusion and app construction help us? I will keep trying and with any success I will post here. Thanks in advance! |
Hi, Guys |
hi, i need help to solve this error #35 |
Hi, I compiled ffmpeg on linux and tried to include it into the project but it started throwing errors on the ffmpeg-jni.c file.
Here is the output:
/home/alex/Cs/youtube-yt-watchme-bca6784/app/src/main/jni/ffmpeg-jni.c
Error:(62, 3) error: 'for' loop initial declarations are only allowed in C99 or C11 mode
Error:(84, 3) error: format not a string literal and no format arguments [-Werror=format-security]
Warning:(103, 16) warning: assignment makes pointer from integer without a cast
Warning:(107, 18) warning: assignment makes pointer from integer without a cast
Error:(278, 3) error: 'for' loop initial declarations are only allowed in C99 or C11 mode
Warning:(298, 3) warning: 'avcodec_encode_video' is deprecated (declared at /home/alex/Cs/youtube-yt-watchme-bca6784/app/src/main/jni/libavcodec/avcodec.h:4476) [-Wdeprecated-declarations]
Warning:(345, 5) warning: 'avcodec_encode_audio' is deprecated (declared at /home/alex/Cs/youtube-yt-watchme-bca6784/app/src/main/jni/libavcodec/avcodec.h:4413) [-Wdeprecated-declarations]
int compressed_length = avcodec_encode_audio(audio_codec_ctx, out, 128000, AudioBuffer_Get());
The text was updated successfully, but these errors were encountered: