Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP 0.2

Autres articles (111)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (4854)

  • FFMPEG for Android does not work properly when overlaying picture

    12 mars 2020, par Alejandro Sanchez

    Whenever I run this FFMPEG command on Android to overlay a picture on a video using the FFMpeg Android library :

    "-i",
                   realPathVideo,
                   "-i",
                   realPathImage
                   ,
                   "-filter_complex",
                   "overlay=0:0",
                   "-codec:a",
                   "copy",
                   dest.getAbsolutePath()

    it never actually works, since it always ends up in "onFinish
    " and never "onSuccess". I don’t know why, but somehow this command doesn’t work properly, although it never shows me an error message. To ensure that the parameters are right I will show you how I get them :

    realpathvideo is : /storage/emulated/0video.mp4
    realpathimage is : /storage/emulated/0/VideoOverlay.jpg
    output directory is : /storage/emulated/0/appname/temporaryVideoFileWithOverlay.mp4

    realPathVideo is derived from a File which is made by moving the result of a camera activity to external storage with the method :

    public static void copyFile(File src, File dst) throws IOException
    {
       FileChannel inChannel = new FileInputStream(src).getChannel();
       FileChannel outChannel = new FileOutputStream(dst).getChannel();
       try
       {
           inChannel.transferTo(0, inChannel.size(), outChannel);
       }
       finally
       {
           if (inChannel != null)
               inChannel.close();
           if (outChannel != null)
               outChannel.close();
       }
    }

    where src is the video result saved in internal storage and dst the external storage file.

    The bitmap image overlay File is saved like this :

    realpathImage is derived from a bitmap File saved by using :

       private Uri saveOverlay(Bitmap bitmap) {
       File file;
       // Get the external storage directory path
       String path = Environment.getExternalStorageDirectory().toString();
       // Create a file to save the image
       file = new File(path, "VideoOverlay" + ".jpg");

       try {

           OutputStream stream = null;

           stream = new FileOutputStream(file);

           bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);

           stream.flush();


           stream.close();

       } catch (IOException e) // Catch the exception
       {
           e.printStackTrace();
       }

       // Parse the saved image path to uri
       Uri savedImageURI = Uri.parse(file.getAbsolutePath());
       return savedImageURI;
    }
  • ffmpeg dont work like console

    27 février 2014, par theroqco

    This works fine at console

    ffmpeg -y -i a.mp4 -codec:v libx264 -profile:v high -vf scale=-1:360 -b:v 300k -maxrate 500k -bufsize 500k c.mp4 2> output.txt

    then i try this live. didnt get a-log.txt file.

    Set WScript = Server.CreateObject("WSCRIPT.SHELL")

       WScript.Run("C:\Inetpub\wwwroot\ffmpegfile\bin\ffmpeg.exe -y -i C:\Inetpub\wwwroot\videos\a.mp4 -codec:v libx264 -profile:v high -vf scale=-1:360 -b:v 300k -maxrate 300k -bufsize 500k C:\Inetpub\wwwroot\videos\new\a.mp4 2> C:\Inetpub\wwwroot\videos\new\a-log.txt")

       Set WScript = nothing

    How can i run this.
    thanks.

  • FFMPEG works on Console but doesn't work in PHP script on Ubuntu

    16 novembre 2016, par Victor Ferreira

    I have this aplication where I need to convert video files to MP4 and then compress it. I’m trying to use FFMPEG to get this to work. Tried the command lines in the console and it works great

    Converting

    ffmpeg -i teste.avi teste.mp4

    Compressing

    ffmpeg -i teste.mp4 -acodec mp2 teste.mp4

    But when I do the same within a PHP script, it starts yelling that something called GLIBCXX is not installed. This is the error :

    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/i386-linux-gnu/libjack.so.0)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/i386-linux-gnu/libjack.so.0)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /usr/lib/i386-linux-gnu/libjack.so.0)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/i386-linux-gnu/libzmq.so.3)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/i386-linux-gnu/libzmq.so.3)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4)
    ffmpeg: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib/i386-linux-gnu/libopencv_core.so.2.4)

    This is my script

    $r = shell_exec("ffmpeg -i $file_path $output_path 2>&1"); //convert
    $r = shell_exec("ffmpeg -i $file_path -acodec mp2 $file_path 2>&1"); //compress

    I’m running the script on Ubuntu

    @edit
    I can run, for example, shell_exec(’ls’)