Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (63)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (8303)

  • when I filter a frame with "fps=fps=30" my code starts consuming a lot of ram until it crashes, but if I use "scale=250:250" it works fine

    23 août 2021, par Gabriel Ayala

    When I apply the filter "scale=250:250" my code works, it outputs a rescalated video
but when I apply the filter "fps=fps=30000/1000", the code asks for ram until it crashes, I think the problem is in the applyFilter function
PasteBin of complete code https://pastebin.com/tcgwFmTz this part starts at line 257

    


    int applyFilter(filterCtx* filter, AVFrame* inFrame, AVFrame* outFrame)
{
    int ret;
    /* push the decoded frame into the filtergraph */
    if (av_buffersrc_add_frame_flags(filter->buffersrc_ctx, inFrame, AV_BUFFERSRC_FLAG_KEEP_REF) < 0)
    {
        return 0;
    }

    /* pull filtered frames from the filtergraph */
    for (EVER)
    {
        ret = av_buffersink_get_frame(filter->buffersink_ctx, outFrame);
        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
        {
            return 3;
        }
        if (ret < 0)
        {
            return -1;
        }
        return 0;
    }
    return 0;
}


    


        char filterDesc = "fps=fps=30000/1000"; // THIS DOESN'T WORK
    //char filterDesc = "scale=1200:1200"; THIS WORKS
    filter = initFilter(filterDesc, params);
    
    for (EVER)
    {
        getFrame(decoder, frame, packet);
        if(decoder->container->streams[packet->stream_index]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)
        {
            if (filter != NULL)
            {
                response = applyFilter(filter, frame, filterFrame);
                if (response < 0)
                {
                    printf("Error while applying a filter");
                    return -1;
                }
                tmp = frame;
                av_frame_unref(frame);
                frame = filterFrame;
                filterFrame = tmp;
                if(response == 3)
                {
                    continue;
                }
            }
            
        }
        encode(decoder, encoder, frame, packet->stream_index);

    }


    


  • Fix a typo : "the the" -> "the" (#2226)

    16 octobre 2018, par zhiliangxu
    Fix a typo : "the the" -> "the" (#2226)
  • Replace incorrect use of "multiply" with "multiple"

    27 août 2014, par James Darnley
    Replace incorrect use of "multiply" with "multiple"
    

    Also replace the plural form "multiplies" with "multiples".

    • [DH] doc/fftools-common-opts.texi
    • [DH] libavcodec/dirac.c
    • [DH] libavcodec/mpeg12enc.c
    • [DH] libavcodec/msvideo1enc.c
    • [DH] libavutil/frame.h