Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (48)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Les notifications de la ferme

    1er décembre 2010, par

    Afin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
    Les notifications de changement de statut
    Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
    À la demande d’un canal
    Passage au statut "publie"
    Passage au (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (4609)

  • lavfi/split : use AVFILTER_DEFINE_CLASS to define class

    15 avril 2013, par Stefano Sabatini

    lavfi/split : use AVFILTER_DEFINE_CLASS to define class

  • FFmpeg : java.lang.UnsatisfiedLinkError while calling Runnable class

    12 mars 2013, par Yuliya Tarasenko

    I need to take a picture file and an audio file and create a video.
    I know that it's possible to do with the help of

    Runtime.getRuntime().exec("ffmpeg -i image.jpeg -i audio.mp3 out.avi")

    but only for rooted devices, so I've tried to create JNI wrapper for main() from ffmpeg.c and call it from my Activity like here : http://demo860.blogspot.com/2010/07/android-ffmpeg-dynamic-module-jni.html

    1.This code is in ffmpeg.c :

    int m_argc = 0;
    char *m_pargv [30];

    int dynamic_ffpmeg_main (int argc, char **argv);
    jint JNICALL Java_com_ccmedia_codec_ffmpeg_mod_1run ( JNIEnv *, jclass, jstring,     jstring );

    jint JNICALL Java_com_ccmedia_codec_ffmpeg_mod_1run ( JNIEnv *env, jclass class, jstring pj1, jstring pj2)
    {
       // as in http://demo860.blogspot.com/2010/07/android-ffmpeg-dynamic-module-jni.html
    }

    int dynamic_ffpmeg_main(int argc, char **argv)
    {
    // as in http://demo860.blogspot.com/2010/07/android-ffmpeg-dynamic-module-jni.html
    }

    int main(int argc, char **argv)
    {
       dynamic_ffpmeg_main ( argc, argv );
       return 0;
    }

    2.This code is in my .java :

    public class FFmpegCreator implements Runnable {

       static boolean m_bret = false;
    static String m_szconfig = " -i /sdcard/file.mpg -vcodec mpeg4 aaa.mpg";

    //public native String unimplementedStringFromJNI();

    static {
       try {

           System.out.println("[AdDBCache] Module load try ffmpeg : "
                   + System.getProperty("java.library.path"));

           // System.load("/sdcard/arm_and/bin/libffmpeg.so");

           System.loadLibrary("ffmpeg");

           System.out.println("[AdDBCache] Module load success");

       }

       catch (Exception e) {

           System.out.println("[AdDBCache] Module load err : "
                   + System.getProperty("java.library.path"));

       }

    }

    private static synchronized final native int Java_com_ccmedia_codec_ffmpeg_mod_1run(String name, String sztoken);

    public void set_config(String sz_config) {

       m_szconfig = sz_config;

    }

    public void run_core(String sz_file, String sz_token) {

       int n_stat;
       m_bret = false;
       n_stat = Java_com_ccmedia_codec_ffmpeg_mod_1run(m_szconfig, sz_token);
       m_bret = true;

    }

    public void run() {

       run_core("", "");

    }
    }

    3.And this in my Activity :

    FFmpegCreator f = new FFmpegCreator ();
    new Thread(f).start();

    But I have

    E/AndroidRuntime(25682): java.lang.UnsatisfiedLinkError: Java_com_ccmedia_codec_ffmpeg_mod_1run .

    And I can't understand why... FFmpeg build was successful...
    Could anyone help me, please ? I'll really appreciate if you could help me. Thank you.

  • trouble compiling ffmpeg library and converter class

    24 février 2013, par user2104126

    I am using this project as a reference : The code is avaiable at http://roman10.net/src/affmpeg.zip.

    I am trying to compile this project with ffmpeg with different configuration than the project suggests.
    I've compiled a new libffmpeg.so and added it to the project.
    However, now i'm getting an "UnsatisfiedLinkError"

    02-24 11:05:45.644: D/dalvikvm(11363): Trying to load lib /data/data/roman10.media.ffmpeg/lib/libffmpeg.so 0x47b0ec70
    02-24 11:05:45.680: D/dalvikvm(11363): Added shared lib /data/data/roman10.media.ffmpeg/lib/libffmpeg.so 0x47b0ec70
    02-24 11:05:45.680: D/dalvikvm(11363): No JNI_OnLoad found in /data/data/roman10.media.ffmpeg/lib/libffmpeg.so 0x47b0ec70, skipping init
    02-24 11:05:45.684: D/dalvikvm(11363): Trying to load lib /data/data/roman10.media.ffmpeg/lib/libconverter.so 0x47b0ec70
    02-24 11:05:45.687: I/dalvikvm(11363): Unable to dlopen(/data/data/roman10.media.ffmpeg/lib/libconverter.so): Cannot load library: link_image[1995]: failed to link libconverter.so
    02-24 11:05:45.687: W/dalvikvm(11363): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lroman10/media/ffmpeg/ffmpegService;.<clinit>
    02-24 11:05:45.687: W/dalvikvm(11363): Class init failed in newInstance call (Lroman10/media/ffmpeg/ffmpegService;)
    02-24 11:05:45.687: D/AndroidRuntime(11363): Shutting down VM
    02-24 11:05:45.687: W/dalvikvm(11363): threadid=1: thread exiting with uncaught exception (group=0x4001d7d0)
    02-24 11:05:45.695: E/AndroidRuntime(11363): FATAL EXCEPTION: main
    02-24 11:05:45.695: E/AndroidRuntime(11363): java.lang.ExceptionInInitializerError
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at java.lang.Class.newInstanceImpl(Native Method)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at java.lang.Class.newInstance(Class.java:1429)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2940)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at android.app.ActivityThread.access$3300(ActivityThread.java:125)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2087)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at android.os.Handler.dispatchMessage(Handler.java:99)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at android.os.Looper.loop(Looper.java:123)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at android.app.ActivityThread.main(ActivityThread.java:4627)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at java.lang.reflect.Method.invokeNative(Native Method)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at java.lang.reflect.Method.invoke(Method.java:521)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at dalvik.system.NativeStart.main(Native Method)
    02-24 11:05:45.695: E/AndroidRuntime(11363): Caused by: java.lang.UnsatisfiedLinkError: Library converter not found
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at java.lang.Runtime.loadLibrary(Runtime.java:461)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at java.lang.System.loadLibrary(System.java:557)
    02-24 11:05:45.695: E/AndroidRuntime(11363):    at roman10.media.ffmpeg.ffmpegService.<clinit>(ffmpegService.java:123)
    </clinit></clinit>

    I decided to recompile the converter.so file
    however, when running the ndk-build command on it, i receive these messages :

    c:\Users\user\workspace\Main\jni>c:\work\android-ndk-r8d\ndk-build
    c:/android-ndk-r8d/build/core/build-binary.mk:266: warning: overriding comm
    ands for target `c:/Users/user/workspace/Main//obj/local/armeabi/objs/converter&#39;

    c:/android-ndk-r8d/build/core/build-binary.mk:266: warning: ignoring old co
    mmands for target `c:/Users/user/workspace/Main//obj/local/armeabi/objs/converte
    r&#39;
    c:/android-ndk-r8d/build/core/build-binary.mk:266: warning: overriding comm
    ands for target `c:/Users/user/workspace/Main//obj/local/armeabi/objs/converter&#39;

    c:/android-ndk-r8d/build/core/build-binary.mk:266: warning: ignoring old co
    mmands for target `c:/Users/user/workspace/Main//obj/local/armeabi/objs/converte
    r&#39;
    c:/android-ndk-r8d/build/core/build-binary.mk:357: warning: overriding comm
    ands for target `c:/Users/user/workspace/Main//obj/local/armeabi&#39;
    c:/android-ndk-r8d/build/core/build-binary.mk:357: warning: ignoring old co
    mmands for target `c:/Users/user/workspace/Main//obj/local/armeabi&#39;
    c:/android-ndk-r8d/build/core/build-binary.mk:439: warning: overriding comm
    ands for target `c:/Users/user/workspace/Main//libs/armeabi&#39;
    c:/android-ndk-r8d/build/core/build-binary.mk:439: warning: ignoring old co
    mmands for target `c:/Users/user/workspace/Main//libs/armeabi&#39;
    c:/android-ndk-r8d/build/core/build-binary.mk:357: warning: overriding comm
    ands for target `c:/Users/user/workspace/Main//obj/local/armeabi&#39;
    c:/android-ndk-r8d/build/core/build-binary.mk:357: warning: ignoring old co
    mmands for target `c:/Users/user/workspace/Main//obj/local/armeabi&#39;
    "Compile thumb : converter &lt;= cmdutils.c
    c:/Users/user/workspace/Main//jni/cmdutils.c:32:34: fatal error: libavformat/avf
    ormat.h: No such file or directory
    compilation terminated.
    make: *** [c:/Users/user/workspace/Main//obj/local/armeabi/objs/converter/cmduti
    ls.o] Error 1

    What can I do to fix this, and make it work ?