Recherche avancée

Médias (0)

Mot : - Tags -/metadatas

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

Autres articles (67)

  • ANNEXE : Les extensions, plugins SPIP des canaux

    11 février 2010, par

    Un plugin est un ajout fonctionnel au noyau principal de SPIP. MediaSPIP consiste en un choix délibéré de plugins existant ou pas auparavant dans la communauté SPIP, qui ont pour certains nécessité soit leur création de A à Z, soit des ajouts de fonctionnalités.
    Les extensions que MediaSPIP nécessite pour fonctionner
    Depuis la version 2.1.0, SPIP permet d’ajouter des plugins dans le répertoire extensions/.
    Les "extensions" ne sont ni plus ni moins que des plugins dont la particularité est qu’ils se (...)

Sur d’autres sites (8625)

  • Revision 15801 : Formulation française cohérente avec le reste des options de conf ...

    20 juin 2010, par da@… — Log

    Formulation française cohérente avec le reste des options de conf (infinitifs)

  • How to check if client is still connected with ffmpeg

    11 décembre 2017, par Adalcar

    I am working on a live-streaming server in C++ using FFMPEG.
    I have a I have an acquisition thread which grabs the images from the cameras and I spawn a new thread on each client connexion to send them the packets.

    Here’s my "send" function :

    void Encoder::_encode()
    {
       int ret = 0;
       if (avcodec_send_frame(ctx, frame) < 0)
           throw new std::runtime_error("error sending a frame for encoding");
       while (ret >= 0)
       {
           ret = avcodec_receive_packet(ctx, pkt);
           if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
               return;
           avio_write(client, pkt->data, pkt->size);
           avio_flush(client);
           av_packet_unref(pkt);
       }
    }

    This encodes the frame and sends it to the client.

    The problem is : whenever the client exits, the thread keeps sending it data, and throws no exception, even when the same client connects again, it will spawn a new thread while the old one keeps running...
    Is there a way to "ping" the client to check whether it is still connected ?

  • HLS Client using FFMPEG

    20 août 2013, par Omkar

    I am a beginner to FFMPEG. Currently building a client application for HLS (Http Live Streaming) using FFMPEG. For this I find some useful functions in /libavformat/hlsproto.c and other hls related files. But not sure what are the APIs which are for clients use and how to access them for a simple HLS client. Any small examples or documents will help a lot for this.

    Thanks.