
Recherche avancée
Autres articles (93)
-
Ecrire une actualité
21 juin 2013, parPré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 ) (...) -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (7282)
-
ffmpeg image + audio to video, file size is very large ?
10 juin 2019, par HoopesI have a single image and a single audio file, and I’m trying to combine them into a video. The image is
186k
and the audio is242k
, and the resultingmp4
file is928k
. Is this just one of those "Yeah, that’s how that works", or can I do something to make the resulting video file smaller with my ffmpeg command ? I’d like my output to beh264
video, and the audio to have the same quality as the input. The image in the video should ideally be as high quality as the input.My command is :
ffmpeg -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -tune stillimage -c:a mp3 -b:a 192k -pix_fmt yuv420p -shortest result.mp4
Are there any interesting flags I’m missing, or using any of those flags incorrectly ? If the input file is
m4a
, do I still need to use mp3 for anmp4
file ?Any help is very much appreciated, thanks !
-
Disable image file name correction by default. Closes #3332
2 septembre 2014, par blueimpDisable image file name correction by default. Closes #3332
To enable image file correction, the option `correct_image_extensions`
can be set to `true`.
This applies the exif_imagetype function on all files if available and
corrects the file extension if it doesn’t match. -
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]);
}