Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (102)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (5934)

  • 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);
       }
  • FFMPEG : How to reduce black sides in a vertical video

    2 juin 2016, par hari92114

    I’m using FFMPEG to rotate a vertical video using the below command

    ffmpeg -i input.mp4 -vf 'transpose=1,scale=-1:1080,pad=1920:1080:656:0,setsar=1' -metadata:s:v:0 rotate=0  output.mp4

    While doing the playback ,most of the screen is occupied by black sides which FFMPEG has added.

    Output image : roated-video

    Is there any provision to reduce them ?

  • how can I fix a video which has a smaller width and black sides when a pad is added with ffmpeg

    24 mai 2019, par eliud nyamai

    im aplying a pad to a video but the video is displaying with black sides after i add a pad with ffmpeg instead of being full screen.can somebody help me correct it or give me an alternative of using a pad

    ffmpeg is on an ubuntu server

    ffmpeg -i IMG_9079.mov -ss 00:00:20.0 -vcodec libx264 -vf "pad=width=1280:height=1280:x=0:y=280:color=white" -acodec copy -t 20 output_withpad.mov

    I expect the video to be full screen with a pad at the bottom