Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (45)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7315)

  • Windows FFMPEG will not find my files at all [migrated]

    22 mars 2014, par user2441247

    I have a folder full of images that go from 0 to whatever number, and I need to turn these images to a video. They are all .PNG files. Here is my command I am using :

    ffmpeg.exe -f image2 -framerate 30 -pattern_type sequence -start_number 1 -r 30 -i "img%%04d.jpg" -s 1280x720 test.avi

    When I run this I get this error :

    [image2 @ 002be580] Could find no file with path 'img%04d.jpg' and index in the range 1-5

    img%04d.jpg: No such file or directory

    What can I change to get this to work ?

  • find text cointain in folder name and skip it's

    27 février 2014, par pasaico
    for subdir in */ ; do
    cd $subdir
    ffmpeg -i mycode

    how do I exclude the ffmpeg command if the folder name contains foo ?

    i use command find, is correctly ?

    find . -name *foo* -print

    but I can not implement it in bash for loop.

    I tried this code :

    for subdir in */ ; do
    foo=$(find -type d -name '*foo*')
    if [[ $subdir =~ $foo ] ; then
       echo yes
       ffmpeg -i mycode
    else
       echo no
    fi
    done
  • PHP Run FFMPEG in background, and find out when it's done [closed]

    27 septembre 2012, par toms900

    Possible Duplicate :
    Run a ffmpeg process in the background

    I was wondering if there's any easy way to runn and ffmpeg process in the background so people can leave the page. And if you do that, then tell if the ffmpeg process is running, and when it's done, update the database to "finished". I'll post my code if I need to. Thanks !
    Here's the code on the processing page :

    <?php
    $name = $_FILES['upload_file']['name'];
    $type = $_FILES['upload_file']['type'];
    $size = $_FILES['upload_file']['size'];
    $tmpname = $_FILES['upload_file']['tmp_name'];

    if (!$title) {
       $title = $name;
    }

    if (!$description) {
       $description = "No description available.";
    }

    $string = substr(str_shuffle(str_repeat('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',10)),0,10);
    $videoname = "$string.mp4";
    $date = date("F d, Y"); // October 09, 2010
    $srcFile = $tmpname;
    mkdir("users/$usercode/uploads/$string");
    mkdir("users/$usercode/uploads/$string/HD");
    mkdir("users/$usercode/uploads/$string/regular");
    mkdir("users/$usercode/uploads/$string/mobile_upload");
    mkdir("users/$usercode/uploads/$string/thumbnails");
    $destFile1 = "/users/$usercode/uploads/$string/HD/$string.mp4";
    $destFile2 = "/users/$usercode/uploads/$string/regular/$string.mp4";
    $destFile3 = "/users/$usercode/uploads/$string/mobile_upload/$string.mp4";
    $ffmpegPath = "/usr/local/bin/ffmpeg";
    $flvtool2Path = "/usr/bin/flvtool2";
    $yamdiPath = "/usr/bin/yamdi";
    $mp4boxPath = "/usr/local/bin/MP4Box";
    // Create our FFMPEG-PHP class
    $ffmpegObj = new ffmpeg_movie($srcFile);
    // Save our needed variables
    $srcWidth = $ffmpegObj->getFrameWidth();
    $srcHeight = $ffmpegObj->getFrameHeight();
    $srcFPS = $ffmpegObj->getFrameRate();
    $srcAB = $ffmpegObj->getAudioBitRate();  
    $srcAR = $ffmpegObj->getAudioSampleRate();
    $res = $srcWidth . "x" . $srcHeight;
    // Call our convert using exec()
    $iphone1 = getcwd().$destFile1;
    $iphone2 = getcwd().$destFile2;
    $iphone3 = getcwd().$destFile3;
    $low = "854x480";
    $local_img = "/users/$usercode/uploads/$string/thumbnails/$string.jpg";
    $img = getcwd().$local_img;
    $img = preg_replace('/ /','\ ',$img);
    $thumb = "$string.jpg";
    $cmd = "$ffmpegPath -i $tmpname 2>&1";  
    if (preg_match('/Duration: ((\d+):(\d+):(\d+))/s', `$cmd`, $time)) {  
       $total = ($time[2] * 3600) + ($time[3] * 60) + $time[4];  
       $interval = rand(0, $total);  
    }  

    $img = shell_exec("$ffmpegPath -ss $interval -i $tmpname 2>&1 -s 120x90 -f mjpeg -vframes 1 $img");


    if ($srcWidth >= 1280 && $srcHeight >= 720) {
       $out1 = shell_exec("$ffmpegPath -i $tmpname -f mp4 -vcodec libx264 -vpre normal -ab $srcAB -ar $srcAR -b 5000k -r $srcFPS -s $res -acodec libfaac $iphone1");
       $out2 = shell_exec("$mp4boxPath -inter 0.5 $iphone1");
       $out3 = shell_exec("$ffmpegPath -i $tmpname -f mp4 -vcodec libx264 -vpre normal -ab $srcAB -ar $srcAR -b 2000k -r $srcFPS -s $low -acodec libfaac $iphone2");
       $out4 = shell_exec("$mp4boxPath -inter 0.5 $iphone2");
       $out5 = shell_exec("$ffmpegPath -i $tmpname -f mp4 -vcodec libx264 -vpre slow -ab 64k -ar 44100 -b 500k -r 30 -s $low -acodec libfaac $iphone3");
       $out6 = shell_exec("$mp4boxPath -inter 0.5 $iphone3");
       echo 1;
    }
    else {
       $out3 = shell_exec("$ffmpegPath -i $tmpname -f mp4 -vcodec libx264 -vpre normal -ab 64k -ar 44100 -b 500k -r 30 -s $low -acodec libfaac $iphone2");
       $out4 = shell_exec("$mp4boxPath -inter 0.5 $iphone2");
       $out5 = shell_exec("$ffmpegPath -i $tmpname -f mp4 -vcodec libx264 -vpre slow -ab 64k -ar 44100 -b 500k -r 30 -s $low -acodec libfaac $iphone3");
       $out6 = shell_exec("$mp4boxPath -inter 0.5 $iphone3");          
       echo 1;
    }
    function generate_random($number_of_characters)
    {
           $characters = array();
           $randomchar = "";
           $x = 0;
           for($i = 48; $i < 123; $i++)
           {
                   if(ctype_alnum(chr($i)))
                   {
                           $characters[$x] = chr($i);
                           $x++;
                   }
           }
           for($i = 0; $i < $number_of_characters; $i++)
           {
                   $randomchar .= $characters[rand(0, count($characters) - 1)];
           }
           return $randomchar;
    }
    ?>