
Recherche avancée
Autres articles (82)
-
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
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 ;
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (13929)
-
Revision cdb322dd72 : Adapt ARNR filter length and strength. Adjust the filter length and strength fo
18 mars 2013, par Paul WilkinsChanged Paths : Modify /vp9/encoder/vp9_firstpass.c Modify /vp9/encoder/vp9_onyx_if.c Modify /vp9/encoder/vp9_onyx_int.h Modify /vp9/encoder/vp9_rdopt.c Modify /vp9/encoder/vp9_temporal_filter.c Adapt ARNR filter length and strength. Adjust the filter length and strength for each ARF group (...)
-
How do I get videoshow (or any other js package) to merge image and sound files to the length I specify rather than a constant length of 5 seconds ?
5 décembre 2023, par BragonI’m trying to take an image file and a sound file and merge them together into an mp4 file. To this end, I use videoshow.js which is basically a wrapper for fluent-ffmpeg.js. For some reason, videoshow always sets the duration of the output file to 5 seconds regardless of what I set the loop parameter to. And to top it all off, it fades out the sound towards the end of the clip.


I’m happy for any solution to this even if it doesn’t include the use of videoshow or fluent-ffmpeg.


const url = require('url');
const { smartLog } = require('../services/smart-log');
const { getFile, getDuration } = require('../services/file-service');
const videoshow = require('videoshow');
const path = require('path');
const FFmpeg = require('fluent-ffmpeg');
const fs = require('fs');

const imgToMP4 = (caption, sound, image, duration, output) => {
 smartLog('info', `Converting ${image}`);
 const images = [image];

 const videoOptions = {
 fps: 10,
 loop: duration,
 transition: false,
 videoBitrate: 1024,
 videoCodec: 'libx264',
 size: '640x?',
 audioBitrate: '128k',
 audioChannels: 2,
 format: 'mp4',
 pixelFormat: 'yuv420p',
 };

 videoshow([
 {
 path: image,
 },
 ])
 .audio(sound)
 .save(output)
 .on('start', function (command) {
 smartLog('info', `ffmpeg process started: ${image}`);
 })
 .on('error', function (err) {
 smartLog('error', err);
 })
 .on('end', function (output) {
 smartLog('info', `Video created: ${output}`);
 });
};




-
Changelog/RELEASE_NOTES : prepare for 2.4
14 septembre 2014, par Clément Bœsch