Recherche avancée

Médias (91)

Autres articles (75)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • 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 (11225)

  • 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.

  • Convert avi to flowplayer compatible mp4

    19 novembre 2013, par Bill Johnston

    I'm trying to convert a .avi file to a flowplayer compatible .mp4 using the node module fluent-ffmpeg. Tried a bunch of different ways of encoding but this got the closest :

    var proc_avi = new ffmpeg({source: file})
    .withVideoCodec('copy')
    .withAudioCodec('copy')
    .saveToFile('output.mp4', function(stdout, stderr) {
       callback();
    });

    The video plays on flowplayer, and I can hear the audio, but the video is all white. Any idea how to encode this properly ?

  • FFMpeg call from Node.js Results in 127

    27 février 2013, par user2009114

    I am having an issue with running an FFMpeg execution command from a Node.js (actually a Meteor) application. From my application I am trying to run :

    /usr/local/bin/ffmpeg-i,/Users//Documents//public/sample_iTunes.mov,-async,1,-acodec,libmp3lame,-b:a,128k,-vf,scale=min(1280\, iw) :-1,-b:v,1000k,-ar,44100,-ac,2,-vcodec,libx264,-x264opts,level=3.0,-profile:v,baseline,-preset:v,superfast,-threads,0,-flags,-global_header,-map,0,-f,segment,-segment_time,10,-segment_list,stream.m3u8,-segment_format,mpegts,-segment_list_flags,live,stream%05d.ts

    However, I get this :
    Transcoder exited with code 127
    chdir() : No such file or directory

    I am using a modified version of hls-vod module (https://github.com/mifi/hls-vod/). I have already tried changing the permissions of ffmpeg via chmod 777, as well as the /cache folder to which it encodes and the public folder containing the sample.mov. None of this seems to work. I installed FFmpeg using Homebrew so the usr/local/bin/ffmpeg is actually a sym link to usr/local/Cellar/..../ffmpeg. I don't know if this would play a part in it. Or perhaps it is something about Meteor.

    Any help would be much appreciated, thanks !