
Recherche avancée
Médias (91)
-
Head down (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Echoplex (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Discipline (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Letting you (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
1 000 000 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
999 999 (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (66)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (6306)
-
UnsatisfiedLInkError Linking to FFMPEG with NDK
28 novembre 2011, par U AvalosI compiled FFMPEG for android using bambuser's files. The compile runs fine. No errors.
I also made sure to change the package name in build.sh. However, once I try to link to the files, the phone throws an UnsatisfiedLinkError. This is the Androkd.mk file :LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
MY_LIB_PATH := ffmpeg-android/build/ffmpeg/armeabi/lib
LOCAL_MODULE := bambuser-libavcore
LOCAL_SRC_FILES := $(MY_LIB_PATH)/libavcore.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := bambuser-libavformat
LOCAL_SRC_FILES := $(MY_LIB_PATH)/libavformat.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := bambuser-libavcodec
LOCAL_SRC_FILES := $(MY_LIB_PATH)/libavcodec.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := bambuser-libavdevice
LOCAL_SRC_FILES := $(MY_LIB_PATH)/libavdevice.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := bambuser-libavfilter
LOCAL_SRC_FILES := $(MY_LIB_PATH)/libavfilter.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := bambuser-libavutil
LOCAL_SRC_FILES := $(MY_LIB_PATH)/libavutil.so
include $(PREBUILT_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := bambuser-libswscale
LOCAL_SRC_FILES := $(MY_LIB_PATH)/libswscale.so
include $(PREBUILT_SHARED_LIBRARY)
#local_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := libtest_jni
LOCAL_SRC_FILES := libtest/video.c
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/ffmpeg-android/ffmpeg
LOCAL_LDLIBS := -L$(NDK_PLATFORMS_ROOT)/$(TARGET_PLATFORM)/arch-arm/usr/lib -L$(LOCAL_PATH) -L$(LOCAL_PATH)/ffmpeg-android/build/ffmpeg/armeabi/lib/ -lavformat -lavcodec -lavdevice -lavfilter -lavutil -lswscale -llog -lz -lm
#dl -lgcc
include $(BUILD_SHARED_LIBRARY)Video.c is dead simple :
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
#include <libswscale></libswscale>swscale.h>
#include
#include
#include
#include <android></android>log.h>
void Java_com_bukabros_videolivewallpaper_Opengl2Renderer_loadNthFrame3
(JNIEnv * env, jobject this, jstring fileName) {
jboolean isCopy;
const char * szLogThis = (*env)->GetStringUTFChars(env, fileName, &isCopy);
__android_log_print(ANDROID_LOG_DEBUG, "NDK: ", "NDK:LC: [%s]", szLogThis);
}Tne corresponding Java code is also simple :
private native void loadNthFrame3(String fileName);
static {
System.loadLibrary("libtest_jni");
}But I get this error :
E/AndroidRuntime(11489): FATAL EXCEPTION: main
E/AndroidRuntime(11489): java.lang.ExceptionInInitializerError
E/AndroidRuntime(11489): at com.bukabros.videolivewallpaper.VideoLiveWallpaper$CubeEngine.<init>(VideoLiveWallpaper.java:147)
E/AndroidRuntime(11489): at com.bukabros.videolivewallpaper.VideoLiveWallpaper.onCreateEngine(VideoLiveWallpaper.java:120)
E/AndroidRuntime(11489): at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:814)
E/AndroidRuntime(11489): at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:61)
E/AndroidRuntime(11489): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(11489): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(11489): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(11489): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(11489): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(11489): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
E/AndroidRuntime(11489): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
E/AndroidRuntime(11489): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(11489): Caused by: java.lang.UnsatisfiedLinkError: Library libtest_jni not found
E/AndroidRuntime(11489): at java.lang.Runtime.loadLibrary(Runtime.java:461)
E/AndroidRuntime(11489): at java.lang.System.loadLibrary(System.java:557)
E/AndroidRuntime(11489): at com.bukabros.videolivewallpaper.Opengl2Renderer.<clinit>(Opengl2Renderer.java:389)
E/AndroidRuntime(11489): ... 12 more
</clinit></init>I tried manually loading the prebuilt shared libraries (the bambuser files) in Java (using System.loadLibrary) but then it tells me that the files are not found.
If it helps, here's the output of readelf :
0x00000001 (NEEDED) Shared library: [libc.so]
0x00000001 (NEEDED) Shared library: [libstdc++.so]
0x00000001 (NEEDED) Shared library: [libm.so]
0x00000001 (NEEDED) Shared library: [/data/data/com.bukabros.videolivewallpaper/lib/libavformat.so]
0x00000001 (NEEDED) Shared library: [/data/data/com.bukabros.videolivewallpaper/lib/libavcodec.so]
0x00000001 (NEEDED) Shared library: [/data/data/com.bukabros.videolivewallpaper/lib/libavdevice.so]
0x00000001 (NEEDED) Shared library: [/data/data/com.bukabros.videolivewallpaper/lib/libavfilter.so]
0x00000001 (NEEDED) Shared library: [/data/data/com.bukabros.videolivewallpaper/lib/libavutil.so]
0x00000001 (NEEDED) Shared library: [/data/data/com.bukabros.videolivewallpaper/lib/libswscale.so]
0x00000001 (NEEDED) Shared library: [liblog.so]
0x00000001 (NEEDED) Shared library: [libz.so]
0x00000001 (NEEDED) Shared library: [libdl.so]
0x0000000e (SONAME) Library soname: [libtest_jni.so]
0x00000010 (SYMBOLIC) 0x0
0x00000004 (HASH) 0xd4
0x00000005 (STRTAB) 0x250
0x00000006 (SYMTAB) 0x130
0x0000000a (STRSZ) 712 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000003 (PLTGOT) 0x174c
0x00000002 (PLTRELSZ) 32 (bytes)
0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x55c
0x6ffffffe (VERNEED) 0x53c
0x6fffffff (VERNEEDNUM) 1
0x6ffffff0 (VERSYM) 0x518
0x00000000 (NULL) 0x0Oh yeah. I'm using ndk r5.
-
Revision 4fae926494 : iosbuild.sh : Add VPX_FRAMEWORK_TARGET preproc symbol Mainly for determining the
18 juillet 2014, par Tom FineganChanged Paths :
Modify /build/make/iosbuild.sh
iosbuild.sh : Add VPX_FRAMEWORK_TARGET preproc symbolMainly for determining the actual arch when running performance
tests.Change-Id : Ia6a1c4fcf83e6db1bf94f3e869d146ec32df02f8
-
stagefright for ffmpeg : undefined symbol '_ZTIN7android11MediaSourceE'
14 juillet 2014, par user3051473all... I want to try ffmpeg hw accelerate with libstagefright_h264 for android device.
Seems that the source code has a little bit old with ffmpeg 2.2.1 and android 4.2.2.
So I try to update the source code but when I only write just a little code like following :struct FFSource : public MediaSource {
virtual status_t start(MetaData *params) { return -1; }
virtual status_t stop() { return -1; }
virtual sp<metadata> getFormat() { return sp<metadata>(); }
virtual status_t read(
MediaBuffer **buffer, const ReadOptions *options) { return -1; }
};
static av_cold int Stagefright_init(AVCodecContext *avctx)
{
av_log(avctx, AV_LOG_ERROR, "In function: %s\n", __FUNCTION__);
FFSource *decoder;
sp<mediasource> mediaSource;
decoder = new FFSource();
return -1;
}
</mediasource></metadata></metadata>it tells me like following when I run the code :
cannot locate symbol "_ZTIN7android11MediaSourceE" referenced by "libavcodec-55.so"...And the result show the nm command for libavcodec-55.so :
[cxm@ubuntu ffmpeg-2.2.1.lsc]$nm ./libavcodec/libavcodec.so | grep Source
003a31a8 t _ZN7android11MediaSource10setBuffersERKNS_6VectorIPNS_11MediaBufferEEE
003a319c t _ZN7android11MediaSource5pauseEv
U _ZN7android11MediaSourceC2Ev
U _ZN7android11MediaSourceD0Ev
U _ZN7android11MediaSourceD1Ev
U _ZN7android11MediaSourceD2Ev
003a31d0 t _ZN8FFSource4readEPPN7android11MediaBufferEPKNS0_11MediaSource11ReadOptionsE
003a31bc t _ZN8FFSource4stopEv
003a31b4 t _ZN8FFSource5startEPN7android8MetaDataE
003a31c4 t _ZN8FFSource9getFormatEv
003a3340 t _ZN8FFSourceD0Ev
003a32e0 t _ZN8FFSourceD1Ev
007b29f0 d _ZTC8FFSource0_N7android11MediaSourceE
007b29e0 d _ZTI8FFSource
U _ZTIN7android11MediaSourceE
006ac028 r _ZTS8FFSource
007b2970 d _ZTT8FFSource
U _ZTv0_n12_N7android11MediaSourceD0Ev
U _ZTv0_n12_N7android11MediaSourceD1Ev
003a3330 t _ZTv0_n12_N8FFSourceD0Ev
003a32d0 t _ZTv0_n12_N8FFSourceD1Ev
007b2980 d _ZTV8FFSourceAlso I cannot find _ZTIN7android11MediaSourceE in libstagefright.so. I think there’s any mistake I have in writing the source code instead of mis-link the stagefright library.
I use android standalone toolchain to compile ffmpeg source. Like following configuration :function config_lsf
{
# build flags
PREFIX=/home/cxm/work/Android/proj/dy-proj-careye/dy-proj-careye/jni/src/lib/android/ FLAGS="--prefix=$PREFIX"
FLAGS="$FLAGS --disable-static"
FLAGS="$FLAGS --disable-doc"
FLAGS="$FLAGS --disable-programs"
FLAGS="$FLAGS --disable-avdevice"
FLAGS="$FLAGS --disable-symver"
FLAGS="$FLAGS --enable-shared"
FLAGS="$FLAGS --cross-prefix=arm-linux-androideabi-"
FLAGS="$FLAGS --target-os=linux"
FLAGS="$FLAGS --arch=arm"
FLAGS="$FLAGS --enable-cross-compile"
FLAGS="$FLAGS --disable-decoder=h264"
FLAGS="$FLAGS --disable-decoder=h264_vdpau"
FLAGS="$FLAGS --enable-libstagefright-h264"
# cflags
CFLAGS="-Os -fpic -marm"
ANDROID_SOURCE=../mokesoures/
ANDROID_LIBS=../android-libs
CFLAGS="$CFLAGS -I$ANDROID_SOURCE/frameworks/av/include"
CFLAGS="$CFLAGS -I$ANDROID_SOURCE/frameworks/native/include/"
CFLAGS="$CFLAGS -I$ANDROID_SOURCE/system/core/include"
CFLAGS="$CFLAGS -I$ANDROID_SOURCE/hardware/libhardware/include"
CFLAGS="$CFLAGS -I$ANDROID_SOURCE/frameworks/native/include/media/openmax/"
# ld flags
LDFLAGS="-Wl,--fix-cortex-a8"
LDFLAGS="$LDFLAGS -lstdc++ -lgnustl_shared -lstagefright -lutils -lbinder"
LDFLAGS="$LDFLAGS -L$ANDROID_LIBS"
LDFLAGS="$LDFLAGS -Wl,-rpath-link,$ANDROID_LIBS"
./configure.android $FLAGS --extra-cflags="$CFLAGS" \
--extra-ldflags="$LDFLAGS" \
sed -i 's/#define\ HAVE_POSIX_MEMALIGN\ 1/#define\ HAVE_POSIX_MEMALIGN\ 0/' ./config.h
make -j4 V=1 2>&1 | tee log
make install
}Please help about this topic. Thanks very much.