Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (68)

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

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (8333)

  • FFMPEG : How to add transparency to watermark logo ? Getting error : "Filter scale2ref has an unconnected output"

    12 septembre 2023, par Danny

    Hey guys I am new to Ffmpeg, I want to resize a watermark logo according to the video size and add transparency to it. The code I have is not working as expected.

    


    This is the code

    


    ffmpeg -i $initialFilePath -i $assetLogoFilePath -y -filter_complex '[1][0]scale2ref=w=oh*mdar:h=ih*0.03[logo][video];[1]format=rgba,colorchannelmixer=aa=0.5[logo];[video][logo]overlay=W-w-5:H-h-5' -c:a copy $temporaryDirectoryPath/$finalVideoPath"


    


    I am getting this error Filter scale2ref has an unconnected output.

    


    Please do help. Thanks

    


  • Revision 3810 : On redirige vers la même page au changement de logo en lançant un calcul ...

    18 août 2010, par kent1 — Log

    On redirige vers la même page au changement de logo en lançant un calcul permettant d’afficher le logo correctement

  • Ffmpeg to OpenGL texture black screen

    23 janvier 2014, par user3177342

    I am trying to make textures from ffmpeg source, but I get the black screen.

    here is the code

    avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished,
               &packet);

           // Did we get a video frame?
           if(frameFinished)
           {
            f++;

                   pFrameRGB=avcodec_alloc_frame();
                   struct SwsContext* swsContext = sws_getContext(pCodecCtx->width, pCodecCtx->height,
                           pCodecCtx->pix_fmt,
                           pCodecCtx->width, pCodecCtx->height, AV_PIX_FMT_RGB24, SWS_BICUBIC,
                           NULL, NULL, NULL);
                   if (swsContext == NULL) {
                    fprintf(stderr, "Cannot initialize the conversion context!\n");
                     exit(1);
                     };


                   sws_scale(swsContext, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, pFrameRGB->data, pFrameRGB->linesize);
                   glGenTextures(1, &VideoTexture);
                   glBindTexture(GL_TEXTURE_2D, VideoTexture);
                   glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
                   glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
                   glTexImage2D(GL_TEXTURE_2D, 0, 3, pCodecCtx->width, pCodecCtx->height, 0, GL_RGB, GL_UNSIGNED_BYTE, pFrameRGB->data[0]);
    }
    }

    // Free the packet that was allocated by av_read_frame
    av_free_packet(&packet);
    if (f>1) break;

    Strangerly when I draw i get black screen, my video is not black.

    if (VideoTexture != 0)
       {
           glEnable(GL_TEXTURE_2D);
           glPushMatrix();
           glBindTexture(GL_TEXTURE_2D, VideoTexture);
           glBegin(GL_QUADS);
           glTexCoord2i(0, 0); glVertex2i(0, 0);
           glTexCoord2i(1, 0); glVertex2i(Width, 0);
           glTexCoord2i(1, 1); glVertex2i(Width, Height);
           glTexCoord2i(0, 1); glVertex2i(0, Height);
           glEnd();
           glPopMatrix();
           glDisable(GL_TEXTURE_2D);
       }