Recherche avancée

Médias (21)

Mot : - Tags -/Nine Inch Nails

Autres articles (81)

  • 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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (8960)

  • enabling Mpeg 4 data partitioning option

    20 janvier 2014, par user3214780

    Is there any option to enable data partitioning available in MPEG-4 codec in libavcodec of FFMPEG.

    I currently used "-data_partitioning = 1" with ffmpeg commands. Is this doing data partitioning ??

  • How is decoded audio data stored in ffmpeg AVFrame ?

    23 février 2023, par necrosato

    I'm looking for clarification on how ffmpeg stores decoded audio data in frames before I start writing code to do audio mixing. AVFrame has int format and uint8_t* data[] members. If my understanding is correct, then the bytes in data should be cast to the proper type for format before working with it. So to do a simple 2x level boost if format == AV_SAMPLE_FMT_S16, I would :

    



    int16_t* audio_samples = frame->data[0];
int num_samples = frame->nb_samples * frame->channels;
for (int i = 0; i < num_samples; ++i) {
  audio_samples[i] = audio_samples[i] * 2;
}


    



    Is this the correct way of going about things ?

    


  • How to calculate sizes for AVPicture.data[x] pointers (YUV420p) when using libffmpeg

    13 août 2013, par bradenV2

    I'm trying to get Y,U,V values separately in order to pass them to openGL and map to a texture. I know these values can be found in AVPicture.data[0] (Y) and AVPicture.data[1] (U) and AVPicture.data[2] (V)

    avcodec_decode_video2(ctx, frame, &frameFinished, packet_data->packet);
    AVPicture _avPicture;
    picSize = avpicture_get_size(ctx->pix_fmt, ctx->width, ctx->height);
    avpicture_alloc(&_avPicture, ctx->pix_fmt,ctx->width, ctx->height );
    avpicture_fill(&_avPicture, packet_data->packet, ctx->pix_fmt,ctx->width,ctx->height);

    ^^ That's working fine.
    The issue I run into is passing the Y,U,V values back to Java via JNI. I have to know the size of the data the AVPicture.data[x] pointers point to. I've tried AVPicture.linesize to no avail, as well as :

              for (y = 0; y < ctx->height; y++){
                   for (x = 0; x < ctx->width; x++){
                       yDataSize++;
                   }
               }
               /* Cb and Cr */
               for (y = 0; y < ctx->height / 2; y++) {
                   for (x = 0; x < ctx->width / 2; x++) {
                       uDataSize++;
                       vDataSize++;
                   }
               }

    I'm really stuck, thanks !