Recherche avancée

Médias (91)

Autres articles (43)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

Sur d’autres sites (4682)

  • how to set android's camera as the input of ffmpeg

    5 mai 2017, par Harrison

    I managed to run ffmpeg in Android Studio project, but don’t know how to set the Android’s camera as the input of ffmpeg. Is it possible now ?

    If not, is there some open-sourced projects that can get Android’s camera and turn the phone to a rtsp server ? Then I can use ffmpeg to get that rtsp link.

    Really appreciate it if some suggestions about this, thanks.

  • 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