Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (69)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

Sur d’autres sites (11763)

  • dnn-layer-math-unary-test : add unit test for cosh

    29 juin 2020, par Ting Fu
    dnn-layer-math-unary-test : add unit test for cosh
    

    Signed-off-by : Ting Fu <ting.fu@intel.com>

    • [DH] tests/dnn/dnn-layer-mathunary-test.c
  • How to mux live h264 stream in AnnexB nal unit format to flv container

    19 mai 2016, par Zhou Yufeng

    I have an Android device, which will send raw live H264 AnnexB NAL unit stream like [0,0,0,1,103,...][0,0,0,104,...][0,0,0,101,...][0,0,0,1,65,...][0,0,0,1,65,...] and try to mux them into flv container and send it to nginx-with rtmp module use libavformat of ffmpeg.

    If I save the received live stream to a local file, say test.h264. I can mux it to server OK using ffmpeg command "ffmpeg -i test.h264 -f flv rtmp ://my/server/url". But I don’t known how to handle live stream.

    I noticed ffmpeg/libavformat/avc.c have 2 functions that seem achieve my goal.
    But I’m not sure.

    Here is the code of ffmpeg

    int ff_avc_parse_nal_units(AVIOContext *pb, const uint8_t *buf_in, int size)
    {
       const uint8_t *p = buf_in;
       const uint8_t *end = p + size;
       const uint8_t *nal_start, *nal_end;

       size = 0;
       nal_start = ff_avc_find_startcode(p, end);
       for (;;) {
           while (nal_start &lt; end &amp;&amp; !*(nal_start++));
           if (nal_start == end)
               break;

           nal_end = ff_avc_find_startcode(nal_start, end);
           avio_wb32(pb, nal_end - nal_start);
           avio_write(pb, nal_start, nal_end - nal_start);
           size += 4 + nal_end - nal_start;
           nal_start = nal_end;
       }
       return size;
    }

    int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size)
    {
       AVIOContext *pb;
       int ret = avio_open_dyn_buf(&amp;pb);
       if(ret &lt; 0)
           return ret;

       ff_avc_parse_nal_units(pb, buf_in, *size);

       av_freep(buf);
       *size = avio_close_dyn_buf(pb, buf);
       return 0;
    }

    Any useful reply are appreciated.

    Thank you !

  • dnn-layer-math-unary-test : add unit test for tanh

    29 juin 2020, par Ting Fu
    dnn-layer-math-unary-test : add unit test for tanh
    

    Signed-off-by : Ting Fu <ting.fu@intel.com>

    • [DH] tests/dnn/dnn-layer-mathunary-test.c