Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (96)

  • 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

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

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

  • pngdec : Stop trying to decode once inflate returns Z_STREAM_END

    28 septembre 2013, par Martin Storsjö
    pngdec : Stop trying to decode once inflate returns Z_STREAM_END
    

    If the input buffer contains more data after the deflate stream,
    the loop previously left running infinitely, with inflate returning
    Z_STREAM_END.

    Reported-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC : libav-stable@libav.org
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavcodec/pngdec.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;

  • 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