Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (47)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • 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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (9023)

  • Fix DCA regression test to work across architectures.

    7 avril 2012, par Reimar Döffinger

    Fix DCA regression test to work across architectures.

  • Revision 60107 : Normaliser la saisie si c’est demandé dans ses options

    4 avril 2012, par yffic@… — Log

    Normaliser la saisie si c’est demandé dans ses options

  • 'avcodec_decode_video' of ffmpeg doesn't work

    1er février 2012, par sirupa

    i use vc++ express, and am going to get with ffmpeg..

    but with the 1st program i met a trouble.

    vc++ says 'identifier 'avcodec_decode_video' : identifier not found' on commpile process.

    i don't know why....

    next is waht i coded...
    .

    include "avcodec.h"

    include "avformat.h"

    include "swscale.h"

    int main(int argc, char *argv[])

    {
    av_register_all();

    AVFormatContext *pFormatCtx;

    // Open video file

    if(av_open_input_file(&pFormatCtx, argv[1], NULL, 0, NULL)!=0)

     return -1; // Couldn't open file

    // Retrieve stream information

    if(av_find_stream_info(pFormatCtx)<0)

       return -1; // Couldn't find stream information

    // Dump information about file onto standard error

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


    int i;

    AVCodecContext *pCodecCtx;

    // Find the first video stream

    int videoStream=-1;

    for(i=0; inb_streams; i++)

       if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO) {

       videoStream=i;

       break;

    }

    if(videoStream==-1)

       return -1; // Didn't find a video stream

    // Get a pointer to the codec context for the video stream

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

    AVCodec *pCodec;


    // Find the decoder for the video stream

    pCodec=avcodec_find_decoder(pCodecCtx->codec_id);

    if(pCodec==NULL) {

       fprintf(stderr, "Unsupported codec!\n");

       return -1; // Codec not found

    }

    // Open codec

    if(avcodec_open(pCodecCtx, pCodec)<0)

       return -1; // Could not open codec

    AVFrame *pFrame;

    // Allocate video frame

    pFrame=avcodec_alloc_frame();

       // Allocate an AVFrame structure

    AVFrame* pFrameRGB=avcodec_alloc_frame();

    if(pFrameRGB==NULL)

     return -1;

    uint8_t *buffer;

    int numBytes;

    // Determine required buffer size and allocate buffer

    numBytes=avpicture_get_size(PIX_FMT_RGB24, pCodecCtx->width,pCodecCtx->height);

    buffer=(uint8_t *)av_malloc(numBytes*sizeof(uint8_t));

    // Assign appropriate parts of buffer to image planes in pFrameRGB

    // Note that pFrameRGB is an AVFrame, but AVFrame is a superset

    // of AVPicture

    avpicture_fill((AVPicture *)pFrameRGB, buffer, PIX_FMT_RGB24,pCodecCtx->width, pCodecCtx->height);

    int frameFinished;

    AVPacket packet;

    i=0;

    while(av_read_frame(pFormatCtx, &packet)>=0) {

       if(packet.stream_index==videoStream) {

    **// here makes compile error**

       avcodec_decode_video(pCodecCtx, pFrame, &frameFinished,packet.data, packet.size);

       if(frameFinished) {

       img_convert((AVPicture *)pFram eRGB, PIX_FMT_RGB24, (AVPicture*)pFrame, pCodecCtx->pix_fmt,pCodecCtx->width, pCodecCtx->height);

        }
    av_free_packet(&packet);
    }
    av_free(buffer);

    av_free(pFrameRGB);

    av_free(pFrame);

    avcodec_close(pCodecCtx);

    av_close_input_file(pFormatCtx);


     return 0;

    }