
Recherche avancée
Autres articles (97)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (6516)
-
configure : Detect msvcrt libc with a CPP check instead of a link check
4 décembre 2013, par Diego Biurrun -
Is it possible to link FFmpeg statically into an application built with Visual C++ ?
29 juillet 2013, par Richard NZI'm currently building and using FFmpeg on Windows and it works nicely. At present there are 5 relevant DLLs which I load and map relevant functions in as needed. However I am wondering if it is possible to avoid these DLLs by linking FFmpeg statically ?
My initial reaction is probably not, because the FFmpeg builds are done with MinGW's GCC and any static libraries generated by those tools will be in a format incompatible with Visual C++. If anyone has looked into this before I'd be curious to know if you had any luck ?
I did find this tool : http://www.binary-soft.com/dll2lib/dll2lib.htm. It's expensive but looks like it might do the trick as it converts a DLL directly to a static library.
Thanks.
-
Link static libraries Android.mk ffmpeg on Android
11 août 2013, par kikuchiI built FFMPEG with the guardian's script (here). All went good and I have the following structure :
jni/
|-- Android.mk
|-- demo.c
|-- include/
| |-- libavcodec/
| | |-- headers files
| |-- libavdevice/
| | `-- avdevice.h
| |-- libavfilter/
| | |-- headers files
| |-- libavformat/
| | |-- headers files
| |-- libavresample/
| | |-- headers files
| |-- libavutil/
| | |-- headers files
| |-- libpostproc/
| | |-- headers files
| |-- libswresample/
| | |-- headers files
| |-- libswscale/
| | |-- headers files
| `-- sox.h
`-- lib/
|-- libavcodec.a
|-- libavdevice.a
|-- libavfilter.a
|-- libavformat.a
|-- libavresample.a
|-- libavutil.a
|-- libpostproc.a
|-- libsox.a
|-- libswresample.a
|-- libswscale.a
|-- libx264.aHere is my Android.mk file :
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
FFMPEG_LIBS := $(addprefix lib/, \
libavformat.a \
libavcodec.a \
libpostproc.a \
libswscale.a \
libavutil.a \
x264.a )
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_SRC_FILES := demo.c
LOCAL_LDLIBS := -llog
LOCAL_STATIC_LIBRARY := $(FFMPEG_LIBS)
LOCAL_MODULE := demo
include $(BUILD_SHARED_LIBRARY)And my demo.c file :
#include
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
#include <libavformat></libavformat>avio.h>
#include <libswscale></libswscale>swscale.h>
#include <libavutil></libavutil>avstring.h>
JNIEXPORT jint JNICALL Java_com_example_ffmpeg_guardian_MainActivity_logFileInfo(JNIEnv *env, jclass this, jstring filename)
{
av_register_all();
AVFormatContext *pFormatCtx;
const jbyte *str;
str = (*env)->GetStringUTFChars(env, filename, NULL);
if(avformat_open_input(&pFormatCtx, str, NULL, NULL)!=0)
return 1;
else
return 2;
return 0;
}The problem is when I try to compile with the NDK (r8) I got this message :
Compile thumb : demo <= demo.c
SharedLibrary : libdemo.so
demo.o: In function `Java_com_example_ffmpeg_guardian_MainActivity_logFileInfo':
demo.c:11: undefined reference to `av_register_all'
demo.c:17: undefined reference to `avformat_open_input'
collect2: ld returned 1 exit status
make: *** [ffmpeg-guardian/obj/local/armeabi/libdemo.so] Error 1After some research, this problem appears because libraries are not linked in the right order. I tried to change this order but nothing changed.
Can Someone help me to fix this final step to get ffmpeg working on android ? Thanks !