
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (63)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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, 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 ) (...) -
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 (8762)
-
Find the right path to my folder on server to execute cmd php
12 avril 2021, par Medsexec("ffmpeg -i $temp_name -r $FPS -vf scale='$resolutionWidth:$resolutionHeight' -b:v $bitrateVideo -bufsize $bitrateAudio videos/$videoURLnameTemp.mp4", $res);


This command works well locally, but once in production, the files are not stored in the video folder which is at the same level as the file in the server. Is there any way to get the output on the exec function to catch an error or something ? I tried the output by reference in the method but when I do a var_dump of the result, I get an array(0) {}.


I also tried to put the realpath in the path but it doesn't seem to work. ffmpeg is located at the same level as all files and the videos folder.


-
Fluent-FFmpeg Blocks any server activity
3 mars 2013, par user2009114I'm having an issue where fluent-ffmpeg will actually make the server hang until it has transcoded a video. I have a script checking if any files need transcoding with Meteor.js server and then calling a fluent-ffmpeg process if needed for those videos. However, when I do this, the server actually can't do anything until fluent-ffmpeg is down transcoding the videos. It just hangs. Is there a way I can get around this ? Can I spawn another thread with node.js for this ? Or maybe there is a setting in fluent ffmpeg that will allow a workaround ?
Here is my code :
var x = 0;
var transcodeAll = function(files){
console.log("X", x);
dead_transcode(files[x],function(){
x++;
console.log("In callback");
if(x/ Remove ".." etc
var rootfile = path.join(rootPath, file);
var output = file.substr(0, file.lastIndexOf('.')) || file;
newfile = path.join(rootPath, "/transcoded"+output +".mp4");
console.log(rootfile);
console.log(newfile);
lock=true;
var proc = new ffmpeg({ source: rootfile, priority: 10 })
.toFormat('mp4')
//.withVideoBitrate('1500k')
.withVideoCodec('libx264')
//.withSize('720x?')
//.withAudioBitrate('128k')
.withAudioCodec('libfaac')
.saveToFile(newfile, function(stdout, stderr) {
console.log('file has been converted succesfully');
lock = false;
console.log(stdout);
console.log(stderr);
callback();
});
} -
MAINTAINERS : remove myself as a server maintainer
26 février 2016, par Lou Logan