Recherche avancée

Médias (1)

Mot : - Tags -/punk

Autres articles (63)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

  • FFMPEG add circular mask to videos, convert to black and white and concatenate

    3 mai 2018, par Yassine

    Hello everyone i’m a beginner and i would appreciate your help.

    I’m making a mobile application that generates custom video resumes based on the user’s videos taken from his phone, the user has to upload 5 different videos to the server from the mobile application, in the server side i want to :

    • Add a .png circular mask to each video.
    • Make each video black and white.
    • Concatenate the videos with other already existing title videos
      (e.g [userVideo1] [title1] [userVideo2] [title2]...) Visual Example

      [Edit : I would like more features]

    • Add background music
    • Add watermark logo in the middle
    • Remove silent footage from the beginning and from the end
    • Some input videos might be rotated, i want to rotate videos back to normal if they are rotated.

    So far i managed to add the circular mask, make the videos black and white and concatenate 3 videos including a premade title video, but the second user video has no sound in the output.

    This is the script i ended up with :

    ffmpeg -i uservid1.mov -i uservid2.mp4 -i mask.png -i title1.mp4  -preset
    ultrafast -filter_complex "

    [2:v][0:v]scale2ref[s1][s2];    
    [s2][s1]overlay[vid1];  
    [2:v][1:v]scale2ref[s3][s4];
    [s4][s3]overlay[vid2];  
    [vid1]hue=s=0[v0];
    [vid2]hue=s=0[v1];  
    [v0]scale=720x400[in0];
    [v1]scale=720x400[in1];
    [3:v]scale=720x400[in3];
    [in0]setsar=sar=0[final0];
    [in1]setsar=sar=0[final1];      
    [in3]setsar=sar=0[final3];
    [final0][final3][final1]concat=n=3;"

    -codec:a copy finalCV.mp4  
  • blank transparent pngs behave like black canvas

    10 novembre 2015, par Anay Bose

    I am trying to create a scrolling image with imagemagick’s roll and crop functions. Its a frame-by—frame animation. The source image is a transparent png with some text written on it. The following code works and it creates the required frames, including some blank png images at first for a nice, smooth effect. These blank pngs are what creating problems when I am trying to convert my image frames into video with ffmpeg. FFMPEG is seemingly considering these blank pngs as black/dark images, so the resulting video contains a blackout for a few seconds in the beginning—which I do not want.

    I am using png codec with bgra pixel format. My ffmpeg command (shown below) creates smooth, clear animation with images that have some text on it.

    "ffmpeg -i trans/trans-%d.png -vcodec png -pix_fmt bgra overlay-0.mov";

    The blank pngs behave like black canvas, but as I try to write some text on them or surround them with a border (i.e. colorize in some way) the problem disappears—which seems very strange. I have tested all my images ; they are all transparent. For the past few hours, I have been searching for a solution, no luck so far. Please note those blank pngs are required in the beginning for a smooth effect, and I cannot omit them. I have uploaded a sample video in Youtube. Please note the black fade out.

    https://www.youtube.com/watch?v=Te3LuItxcDk&feature=youtu.be

    https://youtu.be/Te3LuItxcDk

    PHP code :

      $increment = 40;
      $count = 0;

      for ($x=40; $x <= 640 ; $x+=$increment)
      {
        $roll = new Imagick(DOCROOT . '/composite-0.png');
        $roll->rollImage($x, 0);
        $roll->writeImage(DOCROOT . '/roll/roll-' . $x . '.png');

       $crop = new Imagick(DOCROOT . '/roll/roll-' . $x . '.png');
       $crop->cropImage($x, 720, 0, 0);
       $crop->writeImage(DOCROOT . '/roll/crop-' . $x . '.png');

       $extent = new Imagick(DOCROOT . '/roll/crop-' . $x . '.png');
       # $extent->setImageBackgroundColor(new ImagickPixel('none'));
       $extent->setImageBackgroundColor(new ImagickPixel('transparent'));
       $extent->extentImage(640, $extent->getImageHeight(), 0, 0);
       $extent->setImageFormat('png');
       $extent->writeImage(DOCROOT . '/trans/trans-' . $count . '.png');

       $count++;
      }
  • avfilter/avf_showcwt : do not return initial black frames with negative timestamps

    11 novembre 2023, par Paul B Mahol
    avfilter/avf_showcwt : do not return initial black frames with negative timestamps
    
    • [DH] libavfilter/avf_showcwt.c