Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (24)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (1863)

  • 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 !

  • 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 ?

    


  • 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 ??