Recherche avancée

Médias (91)

Autres articles (109)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

  • fate : Add basic license header check

    27 septembre 2015, par Michael Niedermayer
    fate : Add basic license header check
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] tests/Makefile
    • [DH] tests/fate-run.sh
    • [DH] tests/fate/source-check.sh
    • [DH] tests/fate/source.mak
    • [DH] tests/ref/fate/source
  • 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&#xA;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.

    &#xA;

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

    &#xA;

    My decoding function is as follows :

    &#xA;

    static int decode(AVCodecContext *pCodecCtx, AVFrame *pFrame, AVPacket *packet) {&#xA;    &#xA;    int ret = avcodec_send_packet(pCodecCtx, packet);&#xA;    if (ret&lt;0) {&#xA;        fprintf(stderr, "error sending packet for decoding\n");&#xA;        exit(1);&#xA;    }&#xA;&#xA;    while (ret>=0) {        &#xA;        // avcodec_receive_packet(pCodecCtx, NULL);&#xA;        ret = avcodec_receive_frame(pCodecCtx, pFrame);&#xA;        if (ret == AVERROR(EAGAIN)) {&#xA;            fprintf(stderr, "\naverror(eagain) ret = %d\n", ret);&#xA;            return -1;&#xA;        }&#xA;        else if (ret == AVERROR_EOF) {&#xA;            fprintf(stderr, "eof\n");&#xA;            return -100;&#xA;        }&#xA;        else if (ret &lt;0) {&#xA;            fprintf(stderr, "error during decoding\n");&#xA;            exit(1);&#xA;        }&#xA;    }&#xA;    return 0;&#xA;}&#xA;

    &#xA;

    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 :

    &#xA;

    &#xA;    while (av_read_frame(pFormatCtx, &amp;packet)>=0) {&#xA;        // is this a packet from the video stream?&#xA;        if (packet.stream_index==videoStream) {&#xA;&#xA;           frameNotFinished = decode(pCodecCtx, pFrame, &amp;packet);&#xA;&#xA;            // did we get a video frame?&#xA;            if (!frameNotFinished) fprintf(stderr, "it worked!");&#xA;        }&#xA;        av_packet_unref(&amp;packet);   &#xA;    }&#xA;

    &#xA;

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

    &#xA;

    Any help would be much appreciated.

    &#xA;