Recherche avancée

Médias (91)

Autres articles (94)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

Sur d’autres sites (8995)

  • How to generate the images sequence for video

    24 mai 2014, par Albert Li

    I want to make a simple video editor to create the video from some images.
    It have some transform effects such as motion, scale, fade etc...

    I tried to create the images per frame using ImageMagick and create the video using ffmpeg.

    But it doens’t move smoothly, seems to be kind of jaggy when it moves.

    For example, for 10s x 30fps video, it needs 300 images. Source image should to move 300px.

    The image in the result video moved 1px by 1px.

    How to generate the images sequence for smooth motion effect to make a video ?

  • Pipe series of images from java application to ffmpeg subprocess

    20 juin 2014, par Marco

    I am looking for a way to stream series of images (jpegs) from java application into FFMpeg STDIN pipe.
    FFMpeg should process these images and create a video file as an output.

    FFMpeg is executed as sub process of java application with the following command "ffmpeg.exe -i pipe:0 out.avi"

    When i run "ffmpeg -i input.jpg out.avi" command in the console, i get the "out.avi" file as expected

    But when i use the following tester code in my java application, i got an error.

    Code in Java application :

    File ffmpeg_output_msg = new File("ffmpeg_output_msg.txt");
    ProcessBuilder pb = new ProcessBuilder(
           "ffmpeg.exe","-i","pipe:0","out.avi");
    pb.redirectErrorStream(true);
    pb.redirectOutput(ffmpeg_output_msg);
    pb.redirectInput(ProcessBuilder.Redirect.PIPE);
    Process p = pb.start();
    OutputStream ffmpegInput = p.getOutputStream();

    byte[] image;
    File file = new File("input.jpg");
    image = new byte[(int)file.length()];

    FileInputStream fileInputStream = new FileInputStream(file);
    fileInputStream.read(image);

    ImageInputStream iis = ImageIO.createImageInputStream(
           new ByteArrayInputStream(image));
    BufferedImage img = ImageIO.read(iis);

    ImageIO.write(img, "JPEG", ffmpegInput);

    FFMpeg output :

    ffmpeg version N-59664-g94cf4f8 Copyright (c) 2000-2014 the FFmpeg developers built on Jan 7 2014 22:07:02 with gcc 4.8.2 (GCC)
    configuration : —enable-gpl —enable-version3 —disable-w32threads —enable-avisynth —enable-bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libcaca —enable-libfreetype —enable-libgsm —enable-libilbc —enable-libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-librtmp —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvo-aacenc —enable-libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libx264 —enable-libxavs —enable-libxvid —enable-zlib

    libavutil      52. 62.100 / 52. 62.100
    libavcodec     55. 47.100 / 55. 47.100
    libavformat    55. 22.102 / 55. 22.102
    libavdevice    55.  5.102 / 55.  5.102
    libavfilter     4.  0.103 /  4.  0.103
    libswscale      2.  5.101 /  2.  5.101
    libswresample   0. 17.104 /  0. 17.104
    libpostproc    52.  3.100 / 52.  3.100

    pipe: : Invalid data found when processing input

    Any ideas how to make it work ?

    Thank you very much for your time.

  • Adding images to the end of the video

    13 janvier 2014, par Kaushik DB

    common_video.avi
    image1.jpg
    image2.jpg

    i want to insert these two images to the end of the video name common_video.avi programatically in c# so that the image shows for like 5 seconds after the video ends, what's the best way to achieve it ? I have looked in to ffmpeg, with and without c# wrappers, but still nothing works. I keep getting errors and exceptions.

    here's a piece of code i have tried

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading;
    //using AForge;
    //using AForge.Video.VFW;
    using AForge.Video.FFMPEG;
    using AviFile;
    using System.Drawing;

    namespace Ffmpeg
    {
       class Program
       {
           static void Main(string[] args)
           {






               var Strings = new string[] { "1.jpg", "2.jpg", "3.jpg" };

               //VideoFileWriter W = new VideoFileWriter();
               //W.Open("../../Out/new.avi", 1920, 1200, 1, VideoCodec.Raw, 4400);
               //foreach (var S in Strings)
               //{
               //    for (int I = 2 * 25; I > 0; I--)
               //        W.WriteVideoFrame((Bitmap)Image.FromFile(S));
               //}
               //W.Close();



               //load the first image
               Bitmap bitmap = (Bitmap)Image.FromFile(Strings[0]);
               //create a new AVI file
               AviManager aviManager =
                   new AviManager(@"..\..\out\new.avi", false);
               //add a new video stream and one frame to the new file
               VideoStream aviStream =
                   aviManager.AddVideoStream(false, 1, bitmap);

               //Bitmap bitmap;
               for (int n = 1; n < Strings.Length; n++)
               {
                   if (Strings[n].Trim().Length > 0)
                   {
                       bitmap =
                          (Bitmap)Bitmap.FromFile(Strings[n]);
                       //for (int I = 2 * 25; I > 0; I--)
                           aviStream.AddFrame(bitmap);
                       bitmap.Dispose();
                   }
               }
               aviManager.Close();
           }
       }
    }

    Ffmpeg throws : "error configuring filters" ;