Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (104)

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

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

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

Sur d’autres sites (13384)

  • ffmpeg play short video during playing another video

    10 mai 2016, par Szymek Świderski

    I want put and play scrap of short video during play another video in ffmpeg. I use this : ffmpeg -i 0.mp4 -i "prawo.mp4" -filter_complex "blend=all_mode='heat':all_opacity=0.3" output.mp4

    and i get this :

    First input link top parameters (size 1280x720, SAR 0:1) do not match the corresponding second input link bottom parameters (1920x1080, SAR 1:1)

    What should i do ? Any help ?

  • hevc_ps : make sure failing to decode an SPS always returns an error

    13 juillet 2015, par Anton Khirnov
    hevc_ps : make sure failing to decode an SPS always returns an error
    

    Some of the goto err clauses do not set the error code. It seems better
    to fall back on INVALIDDATA instead of adding it everywhere explicitly.

    • [DBH] libavcodec/hevc_ps.c
  • (C) avcodec_receive_frame (ffmpeg) function always returns AVERROR(EAGAIN)

    13 avril 2021, par Levyu

    I was following this tutorial : http://dranger.com/ffmpeg/tutorial01.html
and was trying to change some deprecated functions, and so I had to try to use the avcodec_send_packet and avcodec_receive_frame functions.

    


    The problem I'm having is that avcodec_receive_frame always returns AVERROR(EAGAIN).

    


    My decoding function is as follows :

    


    static int decode(AVCodecContext *pCodecCtx, AVFrame *pFrame, AVPacket *packet) {
    
    int ret = avcodec_send_packet(pCodecCtx, packet);
    if (ret<0) {
        fprintf(stderr, "error sending packet for decoding\n");
        exit(1);
    }

    while (ret>=0) {        
        // avcodec_receive_packet(pCodecCtx, NULL);
        ret = avcodec_receive_frame(pCodecCtx, pFrame);
        if (ret == AVERROR(EAGAIN)) {
            fprintf(stderr, "\naverror(eagain) ret = %d\n", ret);
            return -1;
        }
        else if (ret == AVERROR_EOF) {
            fprintf(stderr, "eof\n");
            return -100;
        }
        else if (ret <0) {
            fprintf(stderr, "error during decoding\n");
            exit(1);
        }
    }
    return 0;
}


    


    Everywhere I read said that this is solved by calling avcodec_send_packet with the next frame, but this does not solve the problem for me because this function is being called in a loop :

    


    
    while (av_read_frame(pFormatCtx, &packet)>=0) {
        // is this a packet from the video stream?
        if (packet.stream_index==videoStream) {

           frameNotFinished = decode(pCodecCtx, pFrame, &packet);

            // did we get a video frame?
            if (!frameNotFinished) fprintf(stderr, "it worked!");
        }
        av_packet_unref(&packet);   
    }


    


    I should probably also add that avcodec_send_packet always returns 0 (success).

    


    Any help would be much appreciated.