Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (47)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (8092)

  • Starting multiple upstart services after a parent service

    16 mars 2013, par CoryG

    I'm trying to configure upstart to start an ffserver process and many (21) ffmpeg processes - the ffmpeg processes must be started after the ffserver process and all of them should be respawned if they stop.

    So far, for the ffserver process I have :

    # ffserver

    description     "ffserver"

    start on (filesystem and net-device-up IFACE=eth0) and runlevel [2345]
    stop on runlevel [!2345]

    respawn
    respawn limit 10 5

    pre-start script
       test -x /usr/local/bin/ffmpeg || { stop; exit 0; }
       test -x /usr/local/bin/ffserver || { stop; exit 0; }
    end script

    script
       /usr/local/bin/ffserver -f /etc/ffserver.conf
    end script

    post-start script
       PID=`status ffserver | egrep -oi '([0-9]+)$' | head -n1`
       echo $PID > /var/run/ffserver.pid
    end script

    post-stop script
       rm -f /var/run/ffserver.pid
    end script

    Which works fine for ffserver, however I would like to know how to get the ffmpeg services into a similar startup configuration managed by upstart (ideally within a single upstart config file, but I can make 21 different config files if required).

    (it might be worth noting that I'm using the NoDaemon option within the /etc/ffserver.conf file to ensure it doesn't try to daemonize itself and the ffmpeg instances will likewise not be self-daemonized - I would however like pid files for them in /var/run/ffmpegx.pid where x is an identifier [[0-15],0_1_2_3,4_5_6_7,8_9_10_11,12_13_14_15,all] for some other reasons)

  • FFmpeg : undefined reference to 'main'

    13 mars 2013, par Yuliya Tarasenko

    I try to build library and get :

    undefined reference to 'main' collect2: ld returned 1 exit status

    This is a .c file I've added in jni folder :

    #include
    #include "creator.h"

    // Use to safely invoke ffmpeg multiple times from the same Activity
    JNIEXPORT void JNICALL Java_com_appunite_ffmpeg_FFmpegCreator_run(JNIEnv *env, jobject obj, jobjectArray args)
    {
    int i = 0;
    int argc = 0;
    char **argv = NULL;

    if (args != NULL) {
       argc = (*env)->GetArrayLength(env, args);
       argv = (char **) malloc(sizeof(char *) * argc);

       for(i=0;iGetObjectArrayElement(env, args, i);
           argv[i] = (char *)(*env)->GetStringUTFChars(env, str, NULL);
       }
    }

    main(argc, argv);
    }

    This is a .h file :

    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include
    /* Header for class com_appunite_ffmpeg_FFmpegCreator */

    #ifndef _Included_com_appunite_ffmpeg_FFmpegCreator
    #define _Included_com_appunite_ffmpeg_FFmpegCreator
    #ifdef __cplusplus
    extern "C" {
    #endif
    /*
    * Class:     com_appunite_ffmpeg_FFmpegCreator
    * Method:    run
    * Signature: ([Ljava/lang/String;)V
    */
    JNIEXPORT void JNICALL Java_com_appunite_ffmpeg_FFmpegCreator_run(JNIEnv *, jobject, jobjectArray);

    #ifdef __cplusplus
    }
    #endif
    #endif

    When I comment main(argc, argv) - the build is successful, otherwise - got this error.
    Could anyone help me please ?

  • avcodec symbols not found

    13 avril 2013, par seereen

    I am trying to build the example code in FFMPEG library
    I add the libavcode.h , libavcode.a in my project and I set the header search usr/local/include and the library search to usr/local/lib

    when I compile the example I got this errors ... ( all of them related to avcodec library)

    Undefined symbols:
    "avcodec_find_encoder(CodecID)", referenced from:
     video_encode_example(char const*, CodecID)in main.o
     "avcodec_open2(AVCodecContext*, AVCodec*, AVDictionary**)", referenced from:
     video_encode_example(char const*, CodecID)in main.o
     video_decode_example(char const*, char const*)in main.o
     "av_init_packet(AVPacket*)", referenced from:
     video_decode_example(char const*, char const*)in main.o
     "av_free(void*)", referenced from:
     video_encode_example(char const*, CodecID)in main.o
     video_encode_example(char const*, CodecID)in main.o
     video_encode_example(char const*, CodecID)in main.o
     video_decode_example(char const*, char const*)in main.o
     video_decode_example(char const*, char const*)in main.o
     "avcodec_alloc_context3(AVCodec*)", referenced from:
     video_encode_example(char const*, CodecID)in main.o
     video_decode_example(char const*, char const*)in main.o
     "av_opt_set(void*, char const*, char const*, int)", referenced from:
     video_encode_example(char const*, CodecID)in main.o
     "av_image_alloc(unsigned char**, int*, int, int, PixelFormat, int)", referenced from:
     video_encode_example(char const*, CodecID)in main.o
     "avcodec_encode_video(AVCodecContext*, unsigned char*, int, AVFrame const*)", referenced from:
     video_encode_example(char const*, CodecID)in main.o
     video_encode_example(char const*, CodecID)in main.o
     "avcodec_register_all()", referenced from:
     _main in main.o
     "avcodec_find_decoder(CodecID)", referenced from:
     video_decode_example(char const*, char const*)in main.o
     "avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, AVPacket const*)", referenced from:
     video_decode_example(char const*, char const*)in main.o
     video_decode_example(char const*, char const*)in main.o
     "avcodec_close(AVCodecContext*)", referenced from:
     video_encode_example(char const*, CodecID)in main.o
     video_decode_example(char const*, char const*)in main.o
     "avcodec_alloc_frame()", referenced from:
     video_encode_example(char const*, CodecID)in main.o
     video_decode_example(char const*, char const*)in main.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status


    do you know why I got this problem ?

    Thanks