Recherche avancée

Médias (91)

Autres articles (41)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • 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 (4952)

  • ffmpeg failed to open h264 codec

    29 novembre 2015, par Joseph

    I’m trying to extract frames from an existed video (h264), using the ffmpeg library.
    When use an avi video file (with mjpeg - motion jpeg codec), all works fine.
    (m_formatCtx->iformat = av_find_input_format("mjpeg") ;)

    When run on the mp4 with h264 codec, we get the following errors, and no luck !!
    We fail when try to retrieve stream information by calling :
    avformat_find_stream_info(m_formatCtx, NULL) ;

    The log :

    [h264 @ 02023460] non-existing PPS 1 referenced
    [h264 @ 02023460] non-existing PPS 1 referenced
    [h264 @ 02023460] decode_slice_header error
    [h264 @ 02023460] non-existing PPS 6 referenced
    [h264 @ 02023460] decode_slice_header error
    [h264 @ 02023460] no frame!
    [h264 @ 0201a880] decoding for stream 0 failed
    [h264 @ 0201a880] Could not find codec parameters for stream 0 (Video: h264): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Could not find stream information

    Any idea ?

    the Code :

    We call

    CVideoReader::Open (file name , PRESET_MJPEG_CLOCKLESS_STREAM,
    IMAGE_FORMAT_RGB1)

    see below :

    bool CVideoReader::InitFormat(std::string _filepath)
    {
       m_formatCtx = avformat_alloc_context();
       m_formatCtx->iformat = NULL;

       if(m_videoPreset == PRESET_MJPEG_CLOCKLESS_STREAM)
       {
           m_formatCtx->iformat = av_find_input_format("h264");
          // Get timestamp from clock on arrival
           m_formatCtx->use_wallclock_as_timestamps = true;
       }

       int ret;
       // open input file, and allocate format context
       if ((ret = avformat_open_input(&m_formatCtx, _filepath.c_str(), m_formatCtx->iformat, NULL)) < 0)
       {
           std::cerr << "Could not open source file" << std::endl;
           return false;
       }

       // retrieve stream information
       ret = avformat_find_stream_info(m_formatCtx, NULL);
       if (ret < 0)
       {
           std::cerr << "Could not find stream information" << std::endl;
           return false;
       }

       m_videoStream = m_formatCtx->streams[0];

       av_dump_format(m_formatCtx, 0, _filepath.c_str(), 0);
       return true;
    }
    void CVideoReader::Open( char * _filepath, EVideoPreset _videoFormat, EImageFormat _imageDecodingFormat)
    {
       m_videoPreset = _videoFormat;
       if(!InitFormat(_filepath))
           return;
    }


    CVideoReader m_vr = new CVideoReader ();
    m_vr->Open( (char *)inFile, CVideoReader::PRESET_MJPEG_CLOCKLESS_STREAM, CVideoReader::IMAGE_FORMAT_RGB1 );
  • x86 : Avoid some bypass delays and false dependencies

    11 octobre 2015, par Henrik Gramner
    x86 : Avoid some bypass delays and false dependencies
    

    A bypass delay of 1-3 clock cycles may occur on some CPUs when transitioning
    between int and float domains, so try to avoid that if possible.

    • [DH] common/x86/deblock-a.asm
    • [DH] common/x86/mc-a.asm
    • [DH] common/x86/pixel-a.asm
    • [DH] common/x86/predict-a.asm
    • [DH] common/x86/sad-a.asm
    • [DH] common/x86/x86util.asm
  • lavf/segment : add new option segment_clocktime_wrap_duration

    18 janvier 2016, par Marton Balint
    lavf/segment : add new option segment_clocktime_wrap_duration
    

    This option can force the segmenter to only start a new segment if a packet
    reaches the muxer within the specified duration after the segmenting clock
    time, which makes it more resilient to backward local time jumps, such as leap
    seconds or transition to standard time from daylight savings time.

    Reviewed-by : Stefano Sabatini <stefasab@gmail.com>
    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] doc/muxers.texi
    • [DH] libavformat/segment.c