Recherche avancée

Médias (91)

Autres articles (101)

  • MediaSPIP en mode privé (Intranet)

    17 septembre 2013, par

    À partir de la version 0.3, un canal de MediaSPIP peut devenir privé, bloqué à toute personne non identifiée grâce au plugin "Intranet/extranet".
    Le plugin Intranet/extranet, lorsqu’il est activé, permet de bloquer l’accès au canal à tout visiteur non identifié, l’empêchant d’accéder au contenu en le redirigeant systématiquement vers le formulaire d’identification.
    Ce système peut être particulièrement utile pour certaines utilisations comme : Atelier de travail avec des enfants dont le contenu ne doit pas (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • 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" (...)

Sur d’autres sites (11961)

  • avcodec/cbs_mpeg2 : Simplify splitting fragment

    4 février 2022, par Andreas Rheinhardt
    avcodec/cbs_mpeg2 : Simplify splitting fragment
    

    avpriv_find_start_code() supports non-contiguous buffers
    by maintaining a state that allows to find start codes
    that span across multiple buffers ; a consequence thereof
    is that avpriv_find_start_code() is given a zero-sized
    buffer, it does not modify this state, so that it appears
    as if a start code was found if the state contained a start code.

    This can e.g. happen with Sequence End units in MPEG-2 and
    to counter this, cbs_mpeg2_split_fragment() reset the state
    when it has already encountered the end of the fragment
    in order to add the last unit (if it is only of the form 00 00 01 xy)
    only once ; it also used a flag to set whether this is the final unit.

    Yet this can be improved by simply resetting state unconditionally
    (thereby avoiding a branch) ; the flag can be removed by just checking
    whether we have a valid start code (of the next unit to add)
    at the end.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/cbs_mpeg2.c
  • Exception thrown at 0x7C2E6005 (swscale-5.dll) in Video_playing.exe : 0xC0000005 : Access violation reading location 0xCCCCCD04 [closed]

    11 mai 2020, par jatin yadav

    Trying to play a video using GLFW and FFmpeg on visual studio 2019 on windows 10.

    &#xA;&#xA;

    Exception is thrown at sws_scale(sws_scaler_ctx, av_frame->data, av_frame->linesize, 0, av_frame->height, dest, dest_linesize) ; in the code. Don't know why this is occurred. Please Help !!

    &#xA;&#xA;

    #include "video_reader.h"&#xA;#include &#xA;&#xA;bool video_reader_read_frame(VideoReaderState* state, uint8_t* frame_buffer, int64_t* pts) {&#xA;&#xA;    // Unpack members of state&#xA;    auto&amp; width = state->width;&#xA;    auto&amp; height = state->height;&#xA;    auto&amp; av_format_ctx = state->av_format_ctx;&#xA;    auto&amp; av_codec_ctx = state->av_codec_ctx;&#xA;    auto&amp; video_stream_index = state->video_stream_index;&#xA;    auto&amp; av_frame = state->av_frame;&#xA;    auto&amp; av_packet = state->av_packet;&#xA;    auto&amp; sws_scaler_ctx = state->sws_scaler_ctx;&#xA;&#xA;    // Decode one frame&#xA;    int response;&#xA;    while (av_read_frame(av_format_ctx, av_packet) >= 0) {&#xA;        if (av_packet->stream_index != video_stream_index) {&#xA;            av_packet_unref(av_packet);&#xA;            continue;&#xA;        }&#xA;&#xA;        response = avcodec_send_packet(av_codec_ctx, av_packet);&#xA;        if (response &lt; 0) {&#xA;            printf("Failed to decode packet: %s\n", response);&#xA;            return false;&#xA;        }&#xA;&#xA;        response = avcodec_receive_frame(av_codec_ctx, av_frame);&#xA;        if (response == AVERROR(EAGAIN) || response == AVERROR_EOF) {&#xA;            av_packet_unref(av_packet);&#xA;            continue;&#xA;        }&#xA;        else if (response &lt; 0) {&#xA;            printf("Failed to decode packet: %s\n", response);&#xA;            return false;&#xA;        }&#xA;&#xA;        av_packet_unref(av_packet);&#xA;        break;&#xA;    }&#xA;&#xA;    *pts = av_frame->pts;&#xA;&#xA;    // Set up sws scaler&#xA;    if (!sws_scaler_ctx) {&#xA;        sws_scaler_ctx = sws_getContext(width, height, av_codec_ctx->pix_fmt,&#xA;            width, height, AV_PIX_FMT_RGB0,&#xA;            SWS_BILINEAR, NULL, NULL, NULL);&#xA;    }&#xA;    if (!sws_scaler_ctx) {&#xA;        printf("Couldn&#x27;t initialize sw scaler\n");&#xA;        return false;&#xA;    }&#xA;&#xA;    uint8_t* dest[4] = { frame_buffer, NULL, NULL, NULL };&#xA;    int dest_linesize[4] = { width * 4, 0, 0, 0 };&#xA;    sws_scale(sws_scaler_ctx, av_frame->data, av_frame->linesize, 0, av_frame->height, dest, dest_linesize);&#xA;&#xA;    return true;&#xA;}&#xA;

    &#xA;

  • Anomalie #4630 : Indiquer n° de version git

    5 février 2021, par jean marie

    Oui, au moins le hash git (et le lien) qui permet de savoir quelle est la version installée.
    Sinon, aucun moyen de connaitre la version installée et c’est pas des moyens détournés qu’on peut se rendre compte qu’il y a un souci (cf https://www.mail-archive.com/spip-dev@rezo.net/msg70983.html ).