Recherche avancée

Médias (91)

Autres articles (64)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (6091)

  • tests/fate/libavcodec : Run hashtable test

    3 juin, par Andreas Rheinhardt
    tests/fate/libavcodec : Run hashtable test
    

    Reviewed-by : Emma Worley <emma@emma.gg>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] tests/fate/libavcodec.mak
  • avcodec/Makefile : Only compile hashtable.o when needed

    3 juin, par Andreas Rheinhardt
    avcodec/Makefile : Only compile hashtable.o when needed
    

    Reviewed-by : Emma Worley <emma@emma.gg>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/Makefile
  • Replacing avcodec_decode_video/avcodec_decode_video2 with currently supported functions

    18 avril 2024, par Silverstock

    I am trying to build a C++ program, and the creator is using depreciated functions, I have been replacing them fairly easily, but I am not totally sure how to replace these.

    &#xA;

    This is a sample from the decode file :

    &#xA;

    #if defined HAVE_AVCODEC_SEND_PACKET &amp;&amp; defined HAVE_AVCODEC_RECEIVE_FRAME&#xA;    AVPacket* pkt = av_packet_alloc();&#xA;    if (!pkt)&#xA;        return 0;&#xA;    pkt->data=data;&#xA;    pkt->size=datalen;&#xA;    int ret = avcodec_send_packet(codecContext, pkt);&#xA;    while (ret == 0)&#xA;    {&#xA;        ret = avcodec_receive_frame(codecContext,frameIn);&#xA;        if (ret != 0)&#xA;        {&#xA;            if (ret != AVERROR(EAGAIN))&#xA;            {&#xA;                LOG(LOG_INFO,"not decoded:"&lt;pts==(int64_t)AV_NOPTS_VALUE || frameIn->pts==0);&#xA;            if (time != UINT32_MAX)&#xA;                copyFrameToBuffers(frameIn, time);&#xA;        }&#xA;    }&#xA;#ifdef HAVE_AV_PACKET_UNREF&#xA;    av_packet_unref(pkt);&#xA;#else&#xA;    av_free_packet(pkt);&#xA;#endif&#xA;    av_packet_free(&amp;pkt);&#xA;#else&#xA;    int frameOk=0;&#xA;#if HAVE_AVCODEC_DECODE_VIDEO2&#xA;    AVPacket pkt;&#xA;    av_init_packet(&amp;pkt);&#xA;    pkt.data=data;&#xA;    pkt.size=datalen;&#xA;    int ret=avcodec_decode_video2(codecContext, frameIn, &amp;frameOk, &amp;pkt);&#xA;#else&#xA;    int ret=avcodec_decode_video(codecContext, frameIn, &amp;frameOk, data, datalen);&#xA;#endif&#xA;

    &#xA;

    I ran emmake make (I am building with emscripten, and all dependencies are static),

    &#xA;

    And this is my output(Trimmed for relevance) :

    &#xA;

    /workspaces/WasmFlash/lightspark/src/backends/decoder.cpp:188:3: warning: &#x27;avcodec_close&#x27; is deprecated [-Wdeprecated-declarations]&#xA;  188 |                 avcodec_close(codecContext);&#xA;      |                 ^&#xA;/workspaces/WasmFlash/lightspark/src/backends/../../../PKGCONFIG/FFmpeg/build/include/libavcodec/avcodec.h:2386:1: note: &#x27;avcodec_close&#x27; has been explicitly marked deprecated here&#xA; 2386 | attribute_deprecated&#xA;      | ^&#xA;/workspaces/WasmFlash/lightspark/src/backends/../../../PKGCONFIG/FFmpeg/build/include/libavcodec/../libavutil/attributes.h:100:49: note: expanded from macro &#x27;attribute_deprecated&#x27;&#xA;  100 | #    define attribute_deprecated __attribute__((deprecated))&#xA;      |                                                 ^&#xA;/workspaces/WasmFlash/lightspark/src/backends/decoder.cpp:338:2: warning: &#x27;avcodec_close&#x27; is deprecated [-Wdeprecated-declarations]&#xA;  338 |         avcodec_close(codecContext);&#xA;      |         ^&#xA;/workspaces/WasmFlash/lightspark/src/backends/../../../PKGCONFIG/FFmpeg/build/include/libavcodec/avcodec.h:2386:1: note: &#x27;avcodec_close&#x27; has been explicitly marked deprecated here&#xA; 2386 | attribute_deprecated&#xA;      | ^&#xA;/workspaces/WasmFlash/lightspark/src/backends/../../../PKGCONFIG/FFmpeg/build/include/libavcodec/../libavutil/attributes.h:100:49: note: expanded from macro &#x27;attribute_deprecated&#x27;&#xA;  100 | #    define attribute_deprecated __attribute__((deprecated))&#xA;      |                                                 ^&#xA;/workspaces/WasmFlash/lightspark/src/backends/decoder.cpp:483:10: error: use of undeclared identifier &#x27;avcodec_decode_video&#x27;&#xA;  483 |         int ret=avcodec_decode_video(codecContext, frameIn, &amp;frameOk, data, datalen);&#xA;      |                 ^&#xA;/workspaces/WasmFlash/lightspark/src/backends/decoder.cpp:547:10: error: use of undeclared identifier &#x27;avcodec_decode_video&#x27;&#xA;  547 |         int ret=avcodec_decode_video(codecContext, frameIn, &amp;frameOk, pkt->data, pkt->size);&#xA;

    &#xA;

    I attempted to compile, and I expected the compilation to run without error.

    &#xA;