Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (103)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (9327)

  • ffmpeg code does not link (undefined reference to avcodec_register_all

    28 janvier 2013, par Sriram

    I am trying to compile a simple introductory program using ffmpeg that tries to check if the mp3 codec is available. While the code compiles OK, I am facing difficulty in solving linker errors. Here is the code :

    #include
    #include
    #include <libavcodec></libavcodec>avcodec.h>

    float *generateSinusoid(unsigned int sampleRate, unsigned int nSecondsAudio) {

     unsigned int nsamples = (nSecondsAudio * sampleRate);
     float *arr;
     arr = (float*) malloc(sizeof(float) * nsamples);
     int i = 0;

     for(i = 0; i &lt; nsamples; i++) {
       arr[i] = 20 * sin(2.f * (M_PI) * (330/sampleRate) * i);  /*frequency of 330H
    z*/
     }

     return arr;

    }

    int main(int argc, char *argv[]) {

     avcodec_register_all();

     AVCodec *codec;

     unsigned int sampleRate = 22050;  /*assumed.*/
     unsigned int nSecondsAudio = 4;
     float *arr;
     arr = (float *) malloc(sizeof(float) * nSecondsAudio * sampleRate);

     /*Step 1. Generate sinusoid.*/
     arr = generateSinusoid(sampleRate, nSecondsAudio);

     /* Step 2. See if encoder exists.*/
     /*codec = avcodec_find_encoder(AV_CODEC_ID_MP3);*/

     if(!codec) {  /*codec = NULL.*/
       printf("MP3 codec not found!!!!");
     } else {
       printf("MP3 codec found!!!");
     }

      return 0;
    }  

    The code is compiled and linked like so :

    encoding_mp3: encoding_mp3.o
           gcc encoding_mp3.o -o encoding_mp3 -L/cygdrive/c/Users/Desktop/webserver/cygnus/lib/w32api -L/cygdrive/c/Users/Desktop/webserver/cygnus/ffmpeg/ffmpeg_dev/lib -lm -luser32 -lpthread -lavcodec

    encoding_mp3.o: encoding_mp3.c
           gcc -I/cygdrive/c/Users/Desktop/webserver/cygnus/ffmpeg/ffmpeg_dev/include -I/cygdrive/c/Users/Desktop/webserver/cygnus/usr/include -g -c encoding_mp3.c -o encoding_mp3.o

    clean:
           rm encoding_mp3.o encoding_mp3  

    Linking gives the following error :

    gcc -I/cygdrive/c/Users/Desktop/webserver/cygnus/ffmpeg/ffmpeg_dev/include -I/cygdrive/c/Users/Desktop/webserver/cygnus/usr/include -g -c encoding_mp3.c -o encoding_mp3.o
    gcc encoding_mp3.o -o encoding_mp3 -L/cygdrive/c/Users/Desktop/webserver/cygnus/lib/w32api -L/cygdrive/c/Users/Desktop/webserver/cygnus/ffmpeg/ffmpeg_dev/lib -lm -luser32 -lpthread -lavcodec
    encoding_mp3.o: In function `main&#39;:
    /cygdrive/c/Users/Desktop/webserver/cygnus/ffmpeg/work/encoding_mp3.c:31: undefined reference to `_avcodec_register_all&#39;
    collect2: ld returned 1 exit status
    make: *** [encoding_mp3] Error 1  

    I have gone through most of the threads on SO regarding this problem and here is what I have tried so far :

    - Put libraries at the end of all non-option arguments

    - Commented out code that references functions. This seems to work. The undefined reference errors go away after all function calls are removed, though the presence of a struct AVCodec does not cause any problems.

    Any help on this is most welcome.

  • wav : Add check for ’fmt’ tag in SMV code

    16 juillet 2012, par Derek Buitenhuis

    wav : Add check for ’fmt’ tag in SMV code

  • Fix code under #if CONFIG_INTERNAL_STATS.

    1er juin 2011, par Ronald S. Bultje

    Fix code under #if CONFIG_INTERNAL_STATS.