
Recherche avancée
Autres articles (101)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
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 -
Participer à sa documentation
10 avril 2011La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
Pour ce faire, vous pouvez vous inscrire sur (...)
Sur d’autres sites (4727)
-
FFMPEG : Creating video using drawtext along with word wrap and padding
11 octobre 2022, par Chaitanya SaiI'm working to create a video from text with drawtext filter. Output video i can see the text is overflowing instead of coming in new line.



Is there any way i can archive word wrapping and also set the internal padding to video ?



Below is the snippet I'm using to generate video from text



ffmpeg.exe -f lavfi -i color=c=white:s=640x480:d=5.396 -vf "[in] drawtext=fontfile=font.ttf:fontsize=20:fontcolor=black:x=0+0*print(tw):y=0+0*print(th):text='this is new whiteboard te':enable='between(t,6.634,6.818)',drawtext=fontfile=font.ttf:fontsize=20:fontcolor=black:x=0+0*print(tw):y=0+0*print(th):text='this is new whiteboard testing':enable='between(t,0.0,2.032)',drawtext=fontfile=font.ttf:fontsize=20:fontcolor=black:x=0+0*print(tw):y=0+0*print(th):text='this is new whiteboard testing no padding and the text is overflowing from the video frame check this need to acheve word wrapping':enable='between(t,2.032,5.396)'"[out] -c:v libx264 -t 30 -crf 30 ../output.mp4






-
NodeJs watch file Chokidar and create Thumbnail with FFMPEG, Code is hanging. Memory jam ?
30 juillet 2021, par MertI'm trying watch file Chokidar. Mp4 files in Folder. And I'm trying watch folder with create thumnail. But My code is hanging. It's getting stuck. I'm waiting ten min but i didnt get error and my code worked more little. Again, I'm waiting more ten min. But no change anything.


Code :


let fs = require('fs');
var chokidar = require('chokidar');
const ffmpegInstaller = require('@ffmpeg-installer/ffmpeg');
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegInstaller.path)

var counter = 0

var Mywatcher = chokidar.watch('Z:\\WatchFolder', {ignored: /^\./, persistent: true, usePolling: true});
Mywatcher
 .on('add', function(path) {
 worder = '.mp4'
 if(path.includes(worder)){
 
 counter = counter + 1 
 
 console.log('added' + counter)

 ffmpeg({ source: path })
 .on('filenames', (filenames) => {
 console.log('Created file names', filenames);
 })
 .on('end', () => {
 console.log('Job done');
 })
 .on('error', (err) => {
 console.log('Error', err);
 })
 .takeScreenshots({
 filename: counter +'.jpg',
 timemarks: [ 2 ],
 
 }, 'public/images/thumbnail/');
 
 }

 })

 .on('change', function(path) {console.log('File', path, 'has been changed');})



 .on('unlink', function(path) {

 })




 .on('error', function(error) {console.error('Error happened', error);})



First Result : 1300 thumbnail completed. But not yet created. Thumbnail's folder is empty. My code is stuck.


added13023
Created file names [ '13023.jpg' ]
added13024
Created file names [ '13024.jpg' ]
added13025
Created file names [ '13025.jpg' ]
added13026
Created file names [ '13026.jpg' ]
added13027
Created file names [ '13027.jpg' ]
added13028
Created file names [ '13028.jpg' ]
added13029
Created file names [ '13029.jpg' ]
added13030
Created file names [ '13030.jpg' ]
added13031
Created file names [ '13031.jpg' ]
added13032
Created file names [ '13032.jpg' ]
added13033
Created file names [ '13033.jpg' ]
added13034
Created file names [ '13034.jpg' ]
added13035
Created file names [ '13035.jpg' ]
added13036
Created file names [ '13036.jpg' ]



Again I'm trying, i write 'nodemon start' and Result :


Created file names [ '13026.jpg' ]
added13027
Created file names [ '13027.jpg' ]
added13028
Created file names [ '13028.jpg' ]
added13029
Created file names [ '13029.jpg' ]
added13030
Created file names [ '13030.jpg' ]
added13031
Created file names [ '13031.jpg' ]
added13032
Created file names [ '13032.jpg' ]
added13033
Created file names [ '13033.jpg' ]
added13034
Created file names [ '13034.jpg' ]
added13035
Created file names [ '13035.jpg' ]
added13036
Created file names [ '13036.jpg' ]
added13037
Created file names [ '13037.jpg' ]



How can i fix it ? Thanks all. Regards.


-
Data Privacy Day 2020
27 janvier 2020, par Matthieu Aubry — Privacy