Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (40)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

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

  • How to scale watermark in percent with ffmpeg ? [duplicate]

    31 décembre 2015, par user3390767

    This question already has an answer here :

    I run a video site, but watermark logo still in different sizes in every video with different resolution.
    My question : is there a way to scale watermark image in every video by some kind of percentage ?
    I use next command :

    /usr/bin/ffmpeg -i video_in.mp4 -f mp4 -vcodec libx264 -r 30 -movflags
    faststart -profile:v baseline -vf "movie=logo.png, scale=200:37
    [watermark] ; [in][watermark] overlay=10:10 [out]" -s 640x360 -acodec
    libfaac -ab 128k -ar 44100 video_out.mp4

    So as you see the scale of watermark is static, but I want to make it dynamic. Is there way to do this in percentage by depending of video resolution ?

    Cheers !

  • ffmpeg : RGB to YUV conversion loses color and scale

    27 avril 2015, par learner

    I am trying to convert RGB frames to YUV420P format in ffmpeg/libav. Following is the code for conversion and also the images before and after conversion. The converted image loses all color information and also the scale changes significantly. Does anybody have idea how to handle this ? I am completely new to ffmpeg/libav !

    // Did we get a video frame?
      if(frameFinished)
      {
          i++;
          sws_scale(img_convert_ctx, (const uint8_t * const *)pFrame->data,
                    pFrame->linesize, 0, pCodecCtx->height,
                    pFrameRGB->data, pFrameRGB->linesize);                  

          //==============================================================
          AVFrame *pFrameYUV = avcodec_alloc_frame();
          // Determine required buffer size and allocate buffer
          int numBytes2 = avpicture_get_size(PIX_FMT_RGB24, pCodecCtx->width,                                
                                             pCodecCtx->height);
          uint8_t *buffer = (uint8_t *)av_malloc(numBytes2*sizeof(uint8_t));

          avpicture_fill((AVPicture *)pFrameYUV, buffer, PIX_FMT_RGB24,
                          pCodecCtx->width, pCodecCtx->height);


          rgb_to_yuv_ctx = sws_getContext(pCodecCtx->width, pCodecCtx->height,  
                                          PIX_FMT_RGB24,
                                          pCodecCtx->width,pCodecCtx->height,
                                          PIX_FMT_RGB24,
                                          SWS_BICUBIC, NULL,NULL,NULL);

          sws_scale(rgb_to_yuv_ctx, pFrameRGB->data, pFrameRGB->linesize, 0,
                    pCodecCtx->height, pFrameYUV->data, pFrameYUV->linesize);

          sws_freeContext(rgb_to_yuv_ctx);

          SaveFrame(pFrameYUV, pCodecCtx->width, pCodecCtx->height, i);

          av_free(buffer);
          av_free(pFrameYUV);
      }

    original RGB24 frame

    frame after RGB24- width='300' height='220' />YUV420P conversion

  • I want to scale three videos and one background image using ffmpeg

    24 octobre 2016, par Bhushan kumar

    I have three video’s and a image i have combined all four together using ffmpeg overlay filter but don’t know how to arrange theme like this :

    enter image description here

    I’m currently doing like this

    ffmpeg -i bk.jpg -i Movie1.mp4 -i Movie2.mp4 -i Movie3.mp4
    -filter_complex "[0:v]pad=1280:720 [ov1],[1:v][ov1]overlay=25:25 [ov2],[2:v][ov2]overlay=20:20 [ov3],[3:v][ov3]overlay=20:20 [ov4]" -s
    1280*720 -map [ov4] output.mp4`

    Thanks any help will be appreciated