
Recherche avancée
Autres articles (56)
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
Configuration spécifique d’Apache
4 février 2011, parModules spécifiques
Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
Création d’un (...)
Sur d’autres sites (5393)
-
ffmpeg php video basic uses and types
15 mai 2014, par HackerManiacCan anyone give a code on how do i covert a video using ffmpeg.
As thought currently i have only uploading system.
vu.php(only a part is shown)
define('UPLOAD','../../videos/');
$fileName = time().$file['name'];
$target = UPLOAD.$fileName;
if(move_uploaded_file($file['tmp_name'],$target)){
exec("ffmpeg -i ".UPLOAD." ".UPLOAD.$filename.".flv");
}This pice of code block just uploads the video on video folder but does not converts it to
.flv
.
I am not sure how to use ffmpeg.My diretory looks like this
www[localhost]->videos[videos folder]
www[localhost]->pictures[pictures folder]
www[localhost]->resources[folder]->php[folder]->vu.phpI also want to return a
.jpg
image of any frame of video through json by converting via ffmpeg and uploading it topictures
folder.return json_encode(array("thumbnail"=>$image_src));
UPDATE 1
The above stuff was solved but now i have a question regarding video conversion.
Suppose i have a file.avi and i want to convert it in 3 sizes of.flv
format -> Low(320p) ,Medium (720p)and HD(1080p)what commands will i have to send to
shell_exec();
and will that be fast enough ?
CUrrently what i have is$vidSize = "640x480";
$ffmpeg -i $videoFile -ar 22050 -ab 32 -f flv -s $vidSize $vidFileAnd i am not sure what
-ar
and-ab
means and what value will be good for all those 3 sized videos ? -
Basic FFmpeg Conversion Error ?
26 mars 2018, par Sarah SzaboI’m trying to convert an .mp4 to a .opus file using ffmpeg. I have a directory on my desktop called
Indexing
which has a test file called40.mp4
. I’ve tried using the commandffmpeg -i 40.mp4 -b:a 320k 40.opus
which always works from a terminal set in the Indexing directory, but trying the same thing using Java always fails :NOTE : I’m running on Kubuntu 17.10
private static final Path INDEXING_PATH = Paths.get("/home/sarah/Desktop/Indexing");
Process proc = new ProcessBuilder("ffmpeg -i 40.mp4 -b:a 320k 40.opus")
.directory(INDEXING_PATH.toFile()).inheritIO().start();Yields :
Exception in thread "main" java.io.IOException: Cannot run program "ffmpeg -i 40.mp4 -b:a 320k 40.opus" (in directory "/home/sarah/Desktop/Indexing"): error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) -
Anomalie #2194 (Nouveau) : Modifier le titre d’un document + une traduction manquante
28 juillet 2011, par Johan PustochDans ecrire/ ?exec=document_edit&id_document=N , même si mon document n’est pas une image, on me propose de modifier le « Titre de l’image ». « Ce document est lié à » : il y a une chaîne spip_bonux:id_rapide dans prive/formulaires/selecteur/picker-ajax.html Je fais un autre ticket pour la partie (...)