Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (104)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (5169)

  • Document new ’blocksize’ option of ’pipe’ protocol

    31 juillet 2013, par Andrey Utkin
    Document new ’blocksize’ option of ’pipe’ protocol
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] doc/protocols.texi
  • Image pipe from php to ffmpeg

    30 avril 2013, par Angus

    I'm tring to feed FFMpeg whith an image sequence through PHP in order to get a video out of it. I'm using this shell command to read from a text file the image filenames :

    cat $(cat " . $image-list-file . ") | ffmpeg -f image2pipe ...

    I would like to output to the pipe prom php, maybe after modifying the images through imagemagik or gd.

    How can I do this in PHP ?

    Edit :

    SOLUTION

    Using a combination of proc_open and buffer did the job.
    Here's a working test script using some GD generated pictures.

    &lt;?php
    set_time_limit(0);
    $descriptors = array(
       0 => array("pipe", "r")
    );

    $command = "ffmpeg -f image2pipe -pix_fmt rgb24 -r 30 -c:v png -i - ".
                   "-r 30 -vcodec libx264 -pix_fmt yuv420p ".
                   "-y test.mp4";

    $ffmpeg = proc_open($command, $descriptors, $pipes);

    if (is_resource($ffmpeg)){
       for ($i = 0; $i &lt; 180; $i++) {
           $im = @imagecreate(300, 300) or die("GD error");
           $background_color = imagecolorallocate($im, 0, 0, 0);
           $line_color = imagecolorallocate($im, 233, 14, 91);
           $x = rand(0, 300);
           imageline ($im, $x, 0, $x, 300, $line_color);
           ob_start();
           imagepng($im);
           fwrite($pipes[0], ob_get_clean());
           imagedestroy($im);
       }
       fclose($pipes[0]);
    }
  • ffmpeg in a bash pipe

    5 mai 2014, par Martin Wang

    I have a rmvb file path list, and want to convert this files to mp4 files. So I hope to use bash pipeline to handle it. The code is

    Convert() {
       ffmpeg -i "$1" -vcodec mpeg4 -sameq -acodec aac -strict experimental "$1.mp4"
    }

    Convert_loop(){
       while read line; do
          Convert $line
       done
    }

    cat list.txt | Convert_loop

    However, it only handle the first file and the pipe exits.

    So, does ffmpeg affect the bash pipe ?