Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (78)

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

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

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

Sur d’autres sites (7193)

  • Improve ffmpeg CPU usage by compromising quality

    29 septembre 2016, par Hardik Juneja

    I am using FFMpeg for screen capturing.
    I am looking for a screen capturing tool that will run on 1000 of VMs (windows and mac).The VMs have limited CPU (1 core) and 2GB ram and No GPU.

    Currently I invoke ffmpeg with

    ffmpeg  -y -framerate 8 -f dshow -f gdigrab -i "desktop"  -c:v libx264  -crf 0 -preset ultrafast -threads 0 temp.mkv

    I am using gdigrab to capture screen ? Is there any better options that might reduce cpu usage ? or changing the encoder or format ?

    I am aiming for 4-5% reduction in CPU usage.

    Thanks in advance

  • ffmpeg fails on conversion from .mov to .mp4 fails aT 98%

    3 avril 2013, par user2241249

    Our code is below. When converting a uploaded .mov to .mp4 the conversion halts at 98%.

    Almost all of our other preferred formats encode flawlessly. Anyone has any clue on where we went wrong ? We are struggling on this for a while now so we want to ask the experts, thanks in advance for any help.

    <?php
    $Path = dirname(__FILE__) . "/";
    $url = "http://" . $_SERVER['SERVER_NAME'] . str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME'])) . "/";

    session_start();
    include_once 'inc/config.inc.php';
    include_once 'common.php';
    include_once 'inc/ffmpegprogressbar.class.php';

    ob_flush();
    ?>


       
       
       <?php

    // Specifie Inputfile for FFMPEG
       $count = count($_SESSION['Files']);
    // $file  = array_pop($_SESSION['Files']);

       $FileInstance = array_pop($_SESSION['Files']);
       //$FileInstance = $_SESSION['Files'][0];
       $file = $FileInstance['FileName'];
       $passNeeded = $FileInstance['PassNeeded'];
       $fmt = $FileInstance['fmt'];

       $FFMPEGInput = $Path . 'data/' . $_SESSION['OldSession'] . "/" . $file;

       $timeUnique = time();
       //echo "Start:Session holds: ".$_SESSION["cstatus"].", cstatus var =   $cstatus";


     /*  if ($FileInstance['PassNeeded'] == 5) {
           $FFMPEGParams = "-r 1000 -ar 11025 -ab 32 -f $fmt -sameq -g 15 -s 1920x1080";
       } else if ($FileInstance['PassNeeded'] == 4) {
           $FFMPEGParams ="-r 1000 -ar 11025 -ab 32 -f $fmt -sameq -g 15 -s 1280x720";
       } else if ($FileInstance['PassNeeded'] == 3) {
           $FFMPEGParams = "-r 1000 -ar 11025 -ab 32 -f $fmt -sameq -g 15 -s 854x480";
       } else if ($FileInstance['PassNeeded'] == 2) {
           $FFMPEGParams = "-r 1000 -ar 11025 -ab 32 -f $fmt -sameq -g 15 -s 640x360";
       }
       */
    if($fmt=="flv"){
    if ($FileInstance['PassNeeded'] == 5) {
           $FFMPEGParams = "-r 1000 -ar 11025 -ab 32 -f $fmt -sameq -g 15 -s 1920x1080";
       } else if ($FileInstance['PassNeeded'] == 4) {
           $FFMPEGParams ="-r 1000 -ar 11025 -ab 32 -f $fmt -sameq -g 15 -s 1280x720";
       } else if ($FileInstance['PassNeeded'] == 3) {
           $FFMPEGParams = "-r 1000 -ar 11025 -ab 32 -f $fmt -sameq -g 15 -s 854x480";
       } else if ($FileInstance['PassNeeded'] == 2) {
           $FFMPEGParams = "-r 1000 -ar 11025 -ab 32 -f $fmt -sameq -g 15 -s 640x360";
       }
    }elseif($fmt=="mp4"){
    $FFMPEGParams = " -pix_fmt yuv420p -s 640x360";

    }elseif($fmt=="ogv"){
    $FFMPEGParams = " -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b 125k -s 640x360";

    }elseif($fmt=="webm"){
    $FFMPEGParams = " -acodec libvorbis -ac 2 -ab 96k -ar 44100 -b 125k -s 640x360";
    //}elseif($fmt!==""){
    //-i %1 -s qvga -acodec libfaac -ar 22050 -ab 128k -vcodec libx264 -threads 0 -f   ipod %2
    //-vcodec mpeg4 -acodec aac output.mp4
    //$FFMPEGParams = "-r 20 -ar 44100 -ab 196 -f $fmt -s 480x351";
    }
       if ($FileInstance['PassNeeded'] > 2) {
           $FileInstance['PassNeeded'] = $FileInstance['PassNeeded'] - 1;
           array_unshift($_SESSION['Files'], $FileInstance);
       }

       $flv_rpath = 'data/' . $_SESSION['OldSession'] . "/" . $file. $timeUnique . ".".$fmt;

        $FFMPEGOutput = $FFMPEGInput . $timeUnique . ".$fmt";

       $_SESSION['ConvertedFiles'][$file][] = array('Pass' => $passNeeded, 'OutFile' => $file . $timeUnique . ".$fmt","fmt"=>$fmt);



       if (!$_GET["pkey"]) {
           $pkey = rand();
       } elseif (file_exists('log/' . $_GET["pkey"] . '.ffmpeg')) {
           $pkey = $_GET["pkey"];
       } else {
           $pkey = rand();
       }

    // initializing and create ProgressBar
       flush();
       $FFMPEGProgressBar = &new FFMPEGProgressBar();
       flush();
    // Show Progressbar
       if ($count > 0) {
           if ($FileInstance['PassNeeded'] < 3) {
           define('FFMPEG_LIBRARY', '/usr/local/bin/ffmpeg ');
           $extension = "ffmpeg";
           $extension_soname = $extension . "." . PHP_SHLIB_SUFFIX;
           $extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;
               if (!extension_loaded($extension)) {
                   dl($extension_soname) or die("Can't load extension $extension_fullname\n");
               }
               exec(FFMPEG_LIBRARY . " -y -i '" . $FFMPEGInput . "' -vframes 1 -ss 00:00:03 -an -vcodec png -f rawvideo -s 160x90 '$FFMPEGInput.png'");
           }
           $FFMPEGProgressBar->Show($pkey, $count, $url, $passNeeded, $file, $timeUnique,$fmt);
           if (!$_GET["pkey"] || !file_exists('log/' . $_GET["pkey"] . '.ffmpeg')) {
               flush();
               $FFMPEGProgressBar = &new FFMPEGProgressBar();
               flush();
               @$FFMPEGProgressBar->execFFMPEG($FFMPEGInput, $FFMPEGOutput, $FFMPEGParams, $pkey);

               flush();
               $_SESSION['new_space']["video"] = 'data/' . $_SESSION['OldSession'] . "/" . $file;
               $_SESSION['new_space']["{$FileInstance['name']}"] = $flv_rpath;
               $_SESSION['new_space']["session"] =   $_SESSION['OldSession'];
           }
       //echo "End:Session holds: ".$_SESSION["cstatus"].", cstatus var = $cstatus";
       } else {
    //  header("Location: $url" . "index.php" );
           echo "<code class="echappe-js">&lt;script type=\&quot;text/javascript\&quot;&gt;window.location.href=&amp;#39;&quot; . $url . &quot;&amp;#39;;&lt;/script&gt;

    No Input" ;
    }
    // ShowProgressbar
     ?>

  • Improve ffmpeg CPU usage by compromising quality

    29 septembre 2016, par Hardik Juneja

    I am using FFMpeg for screen capturing.
    I am looking for a screen capturing tool that will run on 1000 of VMs (windows and mac).The VMs have limited CPU (1 core) and 2GB ram and No GPU.

    Currently I invoke ffmpeg with

    ffmpeg  -y -framerate 8 -f dshow -f gdigrab -i "desktop"  -c:v libx264  -crf 0 -preset ultrafast -threads 0 temp.mkv

    I am using gdigrab to capture screen ? Is there any better options that might reduce cpu usage ? or changing the encoder or format ?

    I am aiming for 4-5% reduction in CPU usage.

    Thanks in advance