
Recherche avancée
Autres articles (112)
-
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 ;
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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" (...)
Sur d’autres sites (15305)
-
Revision 82959 : calcul des scores : on pondère le nombre d’occurence par une fonction ...
11 juin 2014, par cedric@… — Logcalcul des scores : on pondère le nombre d’occurence par une fonction inverse a la longueur du contenu (avoir 10 occurences dans un contenu fleuve n’est pas forcément plus pertinent que 2 occurences dans un contenu court)
Cette modification n’intervient que si pas de fulltext ou si on a activé l’option _FULLTEXT_FIELD_SCORE -
fluent ffmpeg node js command
12 janvier 2021, par Alanconst ffmpeg = require('fluent-ffmpeg');
const videoFile = './f1.mp4';

ffmpeg.ffprobe(videoFile, (err,metaData) => {
 const {duration} = metaData.format;


 const startingTime = parseInt(duration - 60);
 const clipDuration = 20;

 ffmpeg()
 .input(videoFile)
 .inputOptions([`-ss ${startingTime}`])
 .outputOptions([`-t ${clipDuration}`])
 .output('./result.mp4')
 .on('end', ()=> console.log('Done!'))
 .on('error',(err)=>console.error(err))
 .run();
});





So this is my node js code where I am cutting a clip of the video my choice and giving me an output. I run it by node index. js ( code is in index.js file)
I want to create a script that can run on the below command line


node index.js start_time end_time input/file/path.mp4 output/directory/


I mean it will be dynamic, as any input file from any directory and any output file from any directory like a function that will take user inputs and will accordingly. No manual set up.
Is there a way to do that ?? I have tried many but all are manually on the command line or a manual node setup. I am trying to create a dynamic js file that will run for any input




-
Révision 22619 : Complément à r20277 : la réécriture de la fonction build_while pour permettre l’im...
3 décembre 2015, par esj@rezo.netDonner aussi les informations issues de cette meta en cas d’échec de l’opération.