Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (58)

  • 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

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

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

Sur d’autres sites (14067)

  • FFMpeg End of file error while reading a live feed

    23 juillet 2020, par Summit

    i am streaming a RTMP feed from obs studio i can watch that feed in VLC player.

    


    When using FFMpeg in visual studio project i get the End of file error.

    


    this is my function and to simplify it i have not included the error handling in this code.

    


    Why do i get End of file error in the RTMP feed and how can i correct it.

    


    bool load_frame()
{

    AVFormatContext *av_format_ctx = avformat_alloc_context();
    avformat_open_input(&av_format_ctx, "rtmp://192.168.1.2/live/sumit", NULL, NULL);
    avformat_find_stream_info(av_format_ctx , NULL);
    
    AVCodecParameters* av_codec_params = nullptr;
    AVCodec* av_codec = nullptr;
    int video_stream_index = -1;
    for (unsigned int i = 0; i < av_format_ctx->nb_streams; i++) {
         auto stream = av_format_ctx->streams[i];
        av_codec_params = av_format_ctx->streams[i]->codecpar;
        av_codec = avcodec_find_decoder(av_codec_params->codec_id);     
        if (av_codec_params->codec_type == AVMEDIA_TYPE_VIDEO)
        {
            video_stream_index = i;
            break;
        }
    }
    // set up codec context for the decoder
    AVCodecContext* av_codec_ctx = avcodec_alloc_context3(av_codec);
    avcodec_parameters_to_context(av_codec_ctx, av_codec_params) ;
    avcodec_open2(av_codec_ctx, av_codec, NULL);
    AVFrame* av_frame = av_frame_alloc();
    AVPacket* av_packet = av_packet_alloc();
    int response;
    while (av_read_frame(av_format_ctx, av_packet) >= 0) {
        if (av_packet->stream_index != video_stream_index) {
            continue;
        }
        response = avcodec_send_packet(av_codec_ctx, av_packet);
        if (response < 0) {
            std::cout << "Failed to decode the packet";
            return false;
        }
        response =  avcodec_receive_frame(av_codec_ctx, av_frame);

        if (response == AVERROR(EAGAIN) || response == AVERROR_EOF) {
            std::cout << "End of file";   // i get this error
            continue;
        }
        else if (response < 0) {
            std::cout << "Failed to decode the packet";
            return false;
        }
        av_packet_unref(av_packet);
        break;
    }
    
    avformat_close_input(&av_format_ctx);
    avformat_free_context(av_format_ctx);
    av_frame_free(&av_frame);
    av_packet_free(&av_packet);
    avcodec_free_context(&av_codec_ctx);
    
    return true;
}


    


  • C++/CLI — 0xc000007b (INVALID_IMAGE_FORMAT) with /clr option on

    9 mars 2015, par OverMachoGrande

    I’m trying to build a C++/CLI executable to which I statically link ffmpeg (libavcodec, libavformat, libavutil & swscale). It works fine if I build it normally (without /clr, so no CLR support), it works. However, when I add CLR support, it won’t start up with a 0xc000007b. A "Hello World" C++/CLI app runs fine, though.

    Supposedly the same thing happens with Boost::Threads, but since ffmpeg is pure C, I doubt it’s using Boost.

    My config :

    • Visual Studio 2008 Professional SP1
    • Windows XP Pro SP3 (x86)
    • .NET Framework 3.5 SP1

    Thanks,
    Robert

  • Revision 98ca829f57 : Fix mingw build error Fixes an issue where newer versions of GCC would try to c

    4 juin 2013, par John Koleszar

    Changed Paths :
     Modify /third_party/libyuv/source/scale.c



    Fix mingw build error

    Fixes an issue where newer versions of GCC would try to compile the
    visual studio inline assembly.

    Fixes issue #571

    Change-Id : I8e4500a9277447fdab0b55e5efa1f24ca97bdc03