Recherche avancée

Médias (91)

Autres articles (57)

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

  • 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.

    


    This is a sample from the decode file :

    


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


    


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

    


    And this is my output(Trimmed for relevance) :

    


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


    


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

    


  • lavc/dxvenc : improve compatibility with Resolume products

    30 mai, par Emma Worley
    lavc/dxvenc : improve compatibility with Resolume products
    

    Improves compatibility with Resolume products by adding an additional
    hashtable for DXT color+LUT combinations, and padding the DXT texture
    dimensions to the next largest multiple of 16. Produces identical
    packets to Resolume Alley in manual tests.

    Signed-off-by : Emma Worley <emma@emma.gg>

    • [DH] libavcodec/dxvenc.c
    • [DH] tests/ref/fate/dxv3enc-dxt1
  • lavc/dxvenc : migrate DXT1 encoder to lavc hashtable

    30 mai, par Emma Worley
    lavc/dxvenc : migrate DXT1 encoder to lavc hashtable
    

    Offers a modest performance gain due to the switch from naive linear
    probling to robin hood.

    Signed-off-by : Emma Worley <emma@emma.gg>

    • [DH] libavcodec/dxv.h
    • [DH] libavcodec/dxvenc.c