Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (87)

Sur d’autres sites (15971)

  • using wamp how to make video from any image by using ffmpeg comand in php

    17 septembre 2015, par Office

    I want to make video by ffmpeg from any image on wamp server using php
    But I can’t understand how to execute the command,any easy way to make video from any image by php with library ffmpeg use

    My form for choose any file

    <form action="" method="post" enctype="multipart/form-data">
       <input type="file" />
       <input type="submit" value="submit" />
       </form>

    and same page my action work

       &lt;?php

       if(isset($_POST['submit'])){
               $ffmpeg         = "c:\\ffmpeg\\bin\\ffmpeg";
    // ffmpeg .exe file located on my c disk on this directory

                $videofile         = $_FILES["video"]["name"];
    // I choose a image file having name a.png from desktop

               // I want to create video file from image by executing this command

    $cmd        = "ffmpeg -loop 1 -i $videofile -c:v libx264 -t 30 -pix_fmt yuv420p out.mp4";


    // But command not executed they print command not executed

    if(shell_exec($cmd)){

                   echo 'Comand Executed.....!';

                   }else{

                   echo 'Comand Not Executed....!';    
                   }

           }



       ?>
  • Creating a batch file for ffmpeg to combine image sequence to mkv

    13 août 2020, par Eric

    I have been doing some work remastering some videos by converting them to image sequences, editing them, then converting them back to videos. To do the last step, I have been just using the command prompt with ffmpeg. My goal is to create a batch file that I can just put into the folder with my image sequence and run it rather than needing to do it through the command prompt manually.

    &#xA;

    Here is the command I've been running :&#xA;"C:\Program Files (x86)\ffmpeg\bin\ffmpeg.exe" -framerate 23.97 -i "%06d.png" -c:v copy "B:\output.mkv"

    &#xA;

    ffmpeg is located on my C drive, the image sequences are on my Z drive, but I generally move to that folder to run the command, and the images are always named with 6 digits (000000.png-######.png). The output file is created on the B drive.

    &#xA;

    I assumed that I could just add that command to a .bat file

    &#xA;

    &#xA;"C:\Program Files (x86)\RipBot264v1.25.1\Tools\ffmpeg\bin\ffmpeg.exe" -framerate 23.97 -i "%06d.png" -c:v copy "B:\output.mkv"&#xA;&#xA;pause&#xA;

    &#xA;

    but I have not been able to get it to work. When I try to run it, I get an error that seems to be related to the name of the batch file itself :

    &#xA;

    &#xA;

    Z :\S09E19"Z :\S09E19_Output.bat6d.png -c:v copy B :\output.mkv : Invalid argument

    &#xA;

    &#xA;

    Any help on this would be greatly appreciated.

    &#xA;

  • fate : Use the correct, local path to samples for opus reference files

    12 juillet 2014, par Martin Storsjö
    fate : Use the correct, local path to samples for opus reference files
    

    This fixes running fate in configs where the samples are located
    in a different path on the target.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] tests/fate/opus.mak