
Recherche avancée
Autres articles (20)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne 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 2011Documentation 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 (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users.
Sur d’autres sites (5462)
-
What is the best way to implement ffmpeg for mp3 compression with php on the fly ? [on hold]
11 décembre 2015, par Akash BoseI am trying to compress mp3 files to 92 kbps on the fly when a user uploads a mp3 file. It looks like conversion takes my 35% of CPU for a single file. So if three conversion process happens together it takes my entire CPU recourse. i am using the following command :
$cmd = 'ffmpeg -i ' . $mp3path . ' -ab 92k ' . $smp3path . '.mp3';
exec($cmd); -
Image pipe from php to ffmpeg
30 avril 2013, par AngusI'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.<?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 < 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]);
} -
Anomalie #3708 (Nouveau) : .select dans menu lateral
18 février 2016, par Maïeul RouquetteDans SPIP 3.1
le fichier form.css.html contient la ligne.lat .formulaire_spip select width:auto ;padding:1px 0 ;
ce qui surcharge la propriété width de
.formulaire_spip select font-size:1em ;padding : 3px ; width : 100% ; -webkit-box-sizing : border-box ; -moz-box-sizing : border-box ;-ms-box-sizing : border-box ; box-sizing : border-box ;
Conséquent : un select dans la colonne de gauche peut dépasser. Cf par exemple le "presse-papier" de SPIP bible (voir http://contrib.spip.net/SPIP-Bible-5#forum486046).