Recherche avancée

Médias (91)

Autres articles (70)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

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

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

Sur d’autres sites (6258)

  • avcodec/vc1dec : Free sprite_output_frame on error

    16 décembre 2019, par Michael Niedermayer
    avcodec/vc1dec : Free sprite_output_frame on error
    

    Fixes : memleaks
    Fixes : 19471/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VC1IMAGE_fuzzer-5688035714269184

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/vc1dec.c
  • concatdec : change data type to suppress warning about limited range of data type...

    17 décembre 2012, par Michael Niedermayer

    concatdec : change data type to suppress warning about limited range of data type...

  • How to save data of packet.data in ffmpeg using c language ?

    10 juin 2015, par patrick

    I’m try to build an app in c that extract audio from video and save it as audio file. I write the below code. I’m able to extract the audio but now the problem is how to save it. Thanks in advance.

    My code is :

    int main(int argc, char *argv[]) {
    AVFormatContext *pFormatCtx = NULL;
    int             i;
    AVCodecContext  *pCodecCtx = NULL;
    AVCodec         *pCodec = NULL;
    AVFrame         *pFrame = NULL;
    AVPacket        packet;

    AVDictionary    *optionsDict = NULL;

    if(argc &lt; 2) {
    printf("Please provide a movie file\n");
    return -1;
    }
    av_register_all();
    if(avformat_open_input(&amp;pFormatCtx, argv[1], NULL, NULL)!=0)
    return -1;

    if(avformat_find_stream_info(pFormatCtx, NULL)&lt;0)
    return -1;

    av_dump_format(pFormatCtx, 0, argv[1], 0);

    int audioStream=-1;
    for(i=0; inb_streams; i++)
       if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_AUDIO) {
           audioStream=i;
           break;
       }
    if(audioStream==-1)
    return -1;

    pCodecCtx=pFormatCtx->streams[audioStream]->codec;

    pCodec=avcodec_find_decoder(pCodecCtx->codec_id);
    if(pCodec==NULL) {
       fprintf(stderr, "Unsupported codec!\n");
       return -1; // Codec not found
    }

    if(avcodec_open2(pCodecCtx, pCodec, &amp;optionsDict)&lt;0)
    return -1;

    pFrame=avcodec_alloc_frame();
    packet.data = NULL;
    packet.size = 0;

    while(av_read_frame(pFormatCtx, &amp;packet)>=0) {
       int got_frame = 0;
       int ret = avcodec_decode_audio4(pCodecCtx, pFrame, &amp;got_frame, &amp;packet);
       if(got_frame &amp;&amp; packet.stream_index==audioStream) {
           //save result but how???
       }
       av_free_packet(&amp;packet);
    }
    av_free(pFrame);
    avcodec_close(pCodecCtx);
    avformat_close_input(&amp;pFormatCtx);
    return 0;
    }