
Recherche avancée
Autres articles (72)
-
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 (13090)
-
ffmpeg extract subclips from video at 10s ; 30% ; 60% ; last 30s of a video
2 juillet 2018, par martinsI am writing Bash command on a Mac Terminal. To be able to use a loop, I’d like to extract 4 subclips of different inputfile .mp4 videos : 1st subclip (from second 10 to 20), 2nd subclip (10 seconds starting at a 33% stage of the inputfile), 3rd subclip (10 seconds starting at a 66% of the inputfile), and a 4th subclip (10 seconds starting 30seconds before the end of the inputfile).
So far I only know how to make it work with fixed timings (i.e. seconds) but these correspond only to my first video (I have +200) :
#!/bin/bash
for file in *.mp4; do ffmpeg -i "$file" -vf "select='between(t, 10, 20) + between(t, 197, 207) + between(t, 393, 403) + between(t, 570,580)',
setpts=N/FRAME_RATE/TB" -qscale 0 -af "aselect='between(t, 10, 20) +
between(t, 197, 207) + between(t, 393, 403) + between(t, 570, 580)',
asetpts=N/SR/TB" ${file%.mp4}_1.mp4; doneFor the first subclip, I always want from second 10 to 20, so I can leave it as it is, but for the 2nd to 4th subclip I need some formulas, but no idea which ones. Any suggestions ?
Thanks for your time
-
Download a stream via ffmpeg in Node.js
16 juillet 2018, par loretoparisiI’m using
ffmpeg
to download an audio stream in Node.js. I usechild_process
for that :var downloadStream = function(uri,opath) {
var self=this;
// defaults
var loglevel= self.logger.isDebug() ? 'debug' : 'warning';
return new Promise((resolve, reject) => {
const args = [
'-y',
'-loglevel', loglevel,
'-v', 'quiet',
'-i', uri,
opath
];
const opts = {
cwd: self._options.tempDir
};
cp.spawn('ffmpeg', args, opts)
.on('message', msg => self.logger.info(msg))
.on('error', reject)
.on('close', resolve)
.on('exit', function (code, signal) {
console.log('child process exited with ' +
`code ${code} and signal ${signal}`);
resolve(code);
});
});
}//downloadStreamWhat happens is that the
close
event is called before the file has been written to the disk. I have also registered theexit
that is called with theclose
. While executing the command inbash
I get the stream saved in theopath
as expected. Which event listener shall I register for that ? -
How to import fluent-ffmpeg in aws lamdba ?
3 octobre 2019, par FookI’m trying to use fluent-ffmpeg in AWS Lambda, but cannot get it setup correctly. At the top of my index.js :
import ffmpeg from "fluent-ffmpeg";
But it is always undefined.
ffmpeg === undefined
.I’m using Serverless and have ffmpeg included as a layer.
serverless.yaml
functions:
createGifFromVideo:
handler: src/services/createGifFromVideo/index.handler
layers:
- { Ref: FfmpegLambdaLayer }
events:
- sns: arn:aws:sns:us-east-1:${self:custom.accountId}:NewVideoPostContentTopic-${self:provider.stage}
layers:
ffmpeg:
path: src/layerspackage.json
{
"name": "createGifFromVideo",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"dependencies": {
"fluent-ffmpeg": "^2.1.2"
}
}The uploaded lambda seems to be constructed correctly from what I can tell. Webpack builds the file with fluent-ffmpeg merged in and it is linked to the ffmpeg layer.
I can load other packages. It’s just fluent-ffmpeg that comes back
undefined
.From the docs it mentions passing
FFMPEG_PATH
andFFPROBE_PATH
as environment variables. Are these necessary with a layer ?I would be grateful to see a configuration that works.