Recherche avancée

Médias (91)

Autres articles (69)

  • 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

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

Sur d’autres sites (7141)

  • movenc : Remove an outdated comment

    3 novembre 2014, par Martin Storsjö
    movenc : Remove an outdated comment
    

    QuickTime does support files with an empty initial movie
    these days.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] doc/muxers.texi
    • [DH] libavformat/movenc.c
  • Get MP3 content in C ? ffmpeg or mpg123lib ?

    20 novembre 2014, par Nicolás Múnera

    I’m trying for a personal project of mine to mix two mp3 files into one. I’ve been investigating for a couple of days how to read an mp3 with C and i’ve come up with two libraries, ffmpeg and mpg3lib, unfortunately the documentation is a little bit confusing.

    For now I’m trying to get the content of one MP3 file, I just want to understand which parts are valuable and which parts of the data I get are the ones i’m supposed to mix together. This is what i’ve got so far :

    int cont = 0;
    fprintf(stderr, "Starting decode...\n");
    while(1)
    {
            len = fread(buf, sizeof(unsigned char), INBUFF, in);
            if(len &lt;= 0)
                    break;
            inc += len;
            ret = mpg123_feed(m, buf, len);

            while(ret != MPG123_ERR &amp;&amp; ret != MPG123_NEED_MORE)
            {
                    ret = mpg123_decode_frame(m, &amp;num, &amp;audio, &amp;bytes);
                    if(ret == MPG123_NEW_FORMAT)
                    {
                        mpg123_getformat(m, &amp;rate, &amp;channels, &amp;enc);
                        initwavformat();
                        initwav();
                        fprintf(stderr, "New format: %li Hz, %i channels, encoding value %i\n", rate, channels, enc);
                    }

                    printf("Frame # %d: %s\n",cont,audio);          
                    fwrite(audio, sizeof(unsigned char), bytes, out);
                    outc += bytes;
            }
        if(ret == MPG123_ERR){
                fprintf(stderr, "Error: %s", mpg123_strerror(m));
                break;
        }
    cont++;
    }

    With this code, I think i’m getting the content of the MP3, but when I print it I just get some weird characters, so I don’t know which strategy i should take.

    Could you guys give me a little bit of advice with this ?

    Thank you !

  • opencv cvcapture avi = NULL

    3 janvier 2015, par ipunus

    I tried to solve the following problem for a lot of day :

    Target : I want to read a avi-file with xvid codec
    Status : cvcapturefromavi doesn’t work, give a NULL back
    Operating system MacOS Yosemite, Xcode 6 (clean system)

    First install opencv without ffmpeg support (downloaded,cmake and homebrew, tried both) Application crashed soon after starting, NULL for cvCaptureFromAVI

    Then I tried with ffmpeg, so installed separate ffmpeg -with xvid -with ffplay with homebrew and also opencv with ffmpeg support -> Application crashed soon after starting, Error opening file (/tmp/opencv-uG3i8H/opencv-2.4.9/modules/highgui/src/cap_ffmpeg_impl.hpp:545) -> NULL for cvCaptureFromAVI

    I can play the video-file with ffplay, no problem.

    Can you pls help ? I searched about two days in whole google...or in which codec I have to convert the file ?

    int main (int argc, const char* argv[])
    {
    CvCapture* video_in;
    IplImage* frame_video_in;
    video_in = cvCaptureFromAVI("video1.avi");

    cvNamedWindow("Original", CV_WINDOW_AUTOSIZE);  


    while (1) {


    frame_video_in = cvQueryFrame(video_in);


    cvShowImage("Original", frame_video_in);

    }

    cvDestroyAllWindows();
    return 0;
    }