Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (57)

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

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (10320)

  • Need help working ffmpeg in php

    15 mars 2015, par Lukas Kane

    I am working on a video uploading site. I have never converted videos from other users though. All signs point towards using ffmpeg, but I am honestly lost. I have installed it properly within my htdocs folder in my xampp folder, and I have the upload file php setup correctly, because it does upload the video file and moves the file to the right folder. I do have what I would think to be working ffmpeg code within the php code, but it is not working. I need to make all the files .mp4 no matter what the input file format is. I would appreciate someone helping to figure out my problem so much.

    "htdocs\new-video\upload\index.php" is where I have the code for ffmpeg and uploading the file. The htdocs\phpffmpeg\ folder is just the regular structure of phpffmpeg and ffmpeg installation.

    This is the code for the uploading and ffmpeg exec.

           $name = $_FILES["file"]["name"];
           $temp = explode(".", $_FILES["file"]["name"]);
           $extension = end($temp);

           move_uploaded_file($_FILES["file"]["tmp_name"],
           "(my file location that I move the file to)" . $_FILES["file"]["name"]);

           shell_exec("ffmpeg -i $name.$extension -b 1500k -vcodec libx264 -vpre slow -vpre baseline -g 30 $name.mp4");

    Like I said, the uploading and moving to folder works just fine. It is the not converting that is the problem. All links, tips, and information are greatly appreciated. Hope everyone has a great day.

  • Java Runtime Command with disrupt/additonal command

    11 juin 2014, par oneofakind

    Actually the example below is not what I want to do, its sort of related to what I really wanna do. Its basically having to execute a shell command or a cmd command and executing another command relating to the first command. Somehow it stops/proceeds/respond to the first command executed.

    It’s actually ffmpeg execution what I wanna do, recording the screen. Problem is that I cannot execute a "q" key to stop the recording. Example above is sort of a simple, but I hope applicable, to my main problem.

    Here is the simplified problem :

    StringBuffer output = new StringBuffer();
    String domainName = "google.com";
    String command = "ping -t " + domainName;
    Process p;
    try {
       p = Runtime.getRuntime().exec(command);
       p.waitFor();
       BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));

                   String line = "";          
       while ((line = reader.readLine())!= null) {
           output.append(line + "\n");
       }

    } catch (Exception ec) {
       ec.printStackTrace();
    }


    System.out.println(output);

    What will happen here is that it will ping endlessly unless interrupted to end the ping, what will happen to the code is that it will get stuck in the line :

    p.waitFor();

    That is because, I believe, it is waiting for the command to finish before it releases it. What I want to do is to execute a "ctrl+C" or command that will stop this execution and then manipulate the result continuing through

    BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
    ........
    ........

    I hope you guys got what I am trying to say. :D

    Please help. Thanks.

  • Extract audio from video in mp3 format using android-ffmpeg-library

    28 mai 2014, par user2870161

    I want extrat audio from any type of video file and save it in mp3 format using android-ffmpeg-library.

    My most of work is done here i am create wav file using this code but problame is when i create mp3 file it make only 0kb file in sdcard.

    I hope I’ve made myself clear, and thanks for taking the time to read this.

       if (inputPath == null || outputPath == null) {
           throw new IllegalStateException("Need an input and output filepath!");
       }  

       final List<string> cmd = new LinkedList<string>();


       String baseDir = Environment.getExternalStorageDirectory().getAbsolutePath();
       String fileName = "3.mp4";
       String fileName1 = "2.mp3";

       String path  = baseDir + "/" + fileName;
       String path1  = baseDir + "/" + fileName1;

         File f = new File(path);

         if(f.exists()){
             System.out.println("File existed");
         }else{
             System.out.println("File not found!");
         }

         cmd.add(mFfmpegPath);
         cmd.add("-i");
         cmd.add(path);

         cmd.add("-vn");
         cmd.add("-acodec");
         cmd.add("copy");

         cmd.add(path1);








       final ProcessBuilder pb = new ProcessBuilder(cmd);
       return new ProcessRunnable(pb);
    </string></string>