Recherche avancée

Médias (91)

Autres articles (112)

  • 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

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

Sur d’autres sites (9983)

  • avutil/log : added av_log_format_line2 which returns buffer length

    27 avril 2016, par Andreas Weis
    avutil/log : added av_log_format_line2 which returns buffer length
    

    The new function behaves the same as av_log_format_line, but also forwards
    the return value from the underlying snprintf call. This will allow
    callers to accurately determine the size requirements for the line buffer.

    Signed-off-by : Andreas Weis <github@ghulbus-inc.de>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] doc/APIchanges
    • [DH] libavutil/log.c
    • [DH] libavutil/log.h
    • [DH] libavutil/version.h
  • Bad pictures displayed by SDL after decoded using ffmpeg from a rtp stream

    2 juin 2015, par clouyfsail

    My program is a H323 endpoint.I receive a H263 rtp stream from H323 protocol stack,and I need to decode and play it with SDL2.0.

    Here is what I did.Firstly I assembled rtp packets into H263 frames myself before decode them.After I got a H263 frame, I sent it to ffmpeg to decode it.Just like this :

    void DecodeFrame(uint8_t *buff, unsigned size)
    {
       //There is no rtp header in this buff,just rtp payload,and this is a
       //a complete frame
       if(!buff || size &lt;= 0)
           return;
       AVPacket packet;
       av_init_packet(&amp;packet);
       int got_picture = 0;

       packet.data = buff;
       packet.size = size;

       //I have assigned a H263 codec and initialized corresponding structures.
       int len = avcodec_decode_video2(m_codec_context, m_picture,
                                       &amp;got_picture, &amp;packet);

       if(len &lt; 0)
           return;

       if (got_picture)
       {
           packet.pts = AV_NOPTS_VALUE;
           sws_scale(m_sws_context, (const uint8_t *  const *)m_picture->data,
                     m_picture->linesize, 0, m_codec_context->height, m_yuv_frame->data,
                     m_yuv_frame->linesize);

           SDL_UpdateYUVTexture(m_sdl_texture, &amp;m_sdl_rect,
                                m_yuv_frame->data[0], m_yuv_frame->linesize[0],
                                m_yuv_frame->data[1], m_yuv_frame->linesize[1],
                                m_yuv_frame->data[2], m_yuv_frame->linesize[2]);
           SDL_RenderClear(m_sdl_renderer);
           SDL_RenderCopy(m_sdl_renderer, m_sdl_texture, nullptr, &amp;m_sdl_rect);
           SDL_RenderPresent(m_sdl_renderer);
       }
    }

    It worked, but not as I wished.At the begining of the play,I got a foggy picture,then it turned to clear in a strange way.The image became clear row by row.After that,it turned to foggy sharply if the scene changed drastically(In remote endpoint,the source of video is a camera),and it became clear slowly row by row again.This confuses me much.I want to know why this happened.

  • avcodec/pcm-dvd : fix 20bit 2 channels

    18 novembre 2013, par Michael Niedermayer
    avcodec/pcm-dvd : fix 20bit 2 channels
    

    Fixes part of ticket3122

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/pcm-dvd.c