Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (98)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    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 (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

Sur d’autres sites (12066)

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

    


  • 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
  • Configure ffmpeg to work with native client

    11 juin 2016, par Mohammad Abu Musa

    I followed the steps https://chromium.googlesource.com/webports/+/master to port ffmpeg to native client. I do not know what is the issue here. here are the configuration and here what I get

    NACL_ARCH=pnacl TOOLCHAIN=pnacl make ffmpeg

    Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\@anchor{ <-- HERE (?:[^\}]*)\}/ at /home/user/Desktop/webports/src/out/build/ffmpeg/ffmpeg-2.6.1/doc/texi2pod.pl line 387.
    MAN doc/ffmpeg.1
    MAN doc/ffprobe.1
    MAN doc/ffmpeg-all.1
    MAN doc/ffprobe-all.1
    LD  ffmpeg_g
    LD  ffprobe_g
    /home/user/Desktop/webports/src/out/build/ffmpeg/ffmpeg-2.6.1/Makefile:124: recipe for target 'ffprobe_g' failed
    make[1]: *** [ffprobe_g] Error 247
    make[1]: *** Waiting for unfinished jobs....
    /home/user/Desktop/webports/src/out/build/ffmpeg/ffmpeg-2.6.1/Makefile:124: recipe for target 'ffmpeg_g' failed
    make[1]: *** [ffmpeg_g] Error 247
    make[1]: Leaving directory '/home/user/Desktop/webports/src/out/build/ffmpeg/build_pnacl'
    webports: Build failed: 'ffmpeg' [pnacl/release]
    Makefile:89: recipe for target 'ffmpeg' failed
    make: *** [ffmpeg] Error 1