Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (58)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (7958)

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

    }

  • Use a clone of the widget element to initialize options set via HTML5 data-attributes.

    4 avril 2012, par Sebastian Tschan

    m js/jquery.fileupload.js Use a clone of the widget element to initialize options set via HTML5 data-attributes. This avoids crashes on IE6+IE7 when cloning the widget element and fixes #1153.