Recherche avancée

Médias (0)

Mot : - Tags -/diogene

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

Autres articles (82)

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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (16633)

  • problem in loading texture from AVFrame(android)

    25 mars 2013, par SieuTruc

    I get a problem when loading data from AVFrame to openGL :

    int target_width = 320;
                   int target_height = 240;
                   img_convert_ctx = sws_getContext(pCodecCtx->width, pCodecCtx->height,
                                              pCodecCtx->pix_fmt,
                                              target_width, target_height, PIX_FMT_RGBA, SWS_FAST_BILINEAR,
                                              NULL, NULL, NULL);
                   if(img_convert_ctx == NULL) {
                       LOGE("could not initialize conversion context\n");
                       return;
                   }
                   sws_scale(img_convert_ctx, (const uint8_t* const*)pFrame->data, pFrame->linesize, 0, pCodecCtx->height, pFrameRGB->data, pFrameRGB->linesize);
                   //free(data);
                   int line=target_width*target_height*4;
                   data=(char*)malloc(line);
                   if (!data)
                       LOGE("create data frame fail");
                   LOGE("successful data");
                   filldata(data,pFrameRGB,target_width,target_height);

    with function filldata as :

       static void filldata(char *data,AVFrame *pFrame,int w,int h)
    {uint8_t *frameLine;
       int  yy;
       int i=0;

    for (yy = 0; yy < h; yy++) {

    frameLine = (uint8_t *)pFrame->data[0] + (yy * pFrame->linesize[0]);

    int xx;

    for (xx = 0; xx < w; xx++) {
               int in_offset = xx * 4;

    data[i++] = frameLine[in_offset];

    data[i++] = frameLine[in_offset+1];

    data[i++] = frameLine[in_offset+2];

    data[i++] = frameLine[in_offset+3];
           }
       }
    }

    After that i use data to transfer to

    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, *wi, *he, 0, GL_RGBA, GL_UNSIGNED_BYTE, (GLvoid*)data);

    but it cannot show texture, maybe data above and data in function gltextimage2D are different.
    Please help me figure out what is the format for gltextimage2D so i can configure data to show texture. OR anyone has some sample code to show me.

  • avfilter/af_afade : improve accuracy and speed of gain computation

    25 novembre 2015, par Ganesh Ajjanagadde
    avfilter/af_afade : improve accuracy and speed of gain computation
    

    Gain computation for various curves was being done in a needlessly
    inaccurate fashion. Of course these are all subjective curves, but when
    a curve is advertised to the user, it should be matched as closely as
    possible within the limitations of libm. In particular, the constants
    kept here were pretty inaccurate for double precision.

    Speed improvements are mainly due to the avoidance of pow, the most
    notorious of the libm functions in terms of performance. To be fair, it
    is the GNU libm that is among the worst, but it is not really GNU libm’s fault
    since others simply yield a higher error as measured in ULP.

    "Magic" constants are also accordingly documented, since they take at
    least a minute of thought for a casual reader.

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Ganesh Ajjanagadde <gajjanagadde@gmail.com>

    • [DH] libavfilter/af_afade.c
  • Moviepy Making a CompositeVideoClip of two concatenate_videoclips

    16 avril 2018, par Max Better

    Working with the Moviepy lib and I’ve been beating my head off a wall with this last step for a while.

    GifClips = concatenate_videoclips(TheGIFs, method='compose')
    TextClips = concatenate_videoclips(TheTexts, method='compose')

    I’ve written both of these to separate files and they look fine. But I’m having a problem getting them to combine properly.

    I’m trying :

    FinishedClips = CompositeVideoClip([GifClips, TextClips], size=(1920,1080))

    It has the audio from TextClips and shows the GifClips but the text isn’t visible. It did show when written alone without the composite.

    It does work if I combine GifClips with a single TextClip but this doesn’t work when I need text clips to run one after another.

    I could run a CompositeVideoClip with every single TextClip and a part of the GifClips and then concatenate them all together but that doesn’t seem like the neatest way of doing this. My guess is there’s a fairly obvious argument here somewhere but looking through the docs and examples I’m struggling so far.

    Any suggestions on how I could get the TextClips clip to show up properly in a composite would be much appreciated.