
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (52)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (9920)
-
avfilter/af_headphone : increase max ir length
25 septembre 2017, par Paul B Mahol -
How to duplicate an audio file or trim it to a specific length in ffmpeg ?
21 octobre 2023, par Руслан ЛысенкоI want to combine a video file (with audio) and an audio file together to get one output file.


Most importantly, I need to do the following.


If the length of the video file is longer, then you need to increase the length of the audio file to this length.


If the audio file is longer than the video file, then make the audio file shorter to match the length of the video.


Example :


Video 2 minutes 5 seconds


Audio 1 minute -> duplicated to 2 minutes 5 seconds.


If


Video 1 minute


Audio 2 minutes 5 seconds -> trimmed to 1 minute.


But, I can't even increase the length of the audio file.


export async function overlayAudio(id: number, music: Music) {
 console.log('start')
 const videoPath = path.join(__dirname, `../../../uploads/movie/${id}/result/movie/predfinal.mp4`);
 
 if (music === null) {
 return videoPath.match(/\\uploads(.*)/)[0];
 } else {
 const audioPath = path.join(__dirname, `../../../${music.audio}`);
 const outputVideoPath = path.join(__dirname, `../../../uploads/movie/${id}/result/movie/output.mp4`);
 const matchPath = outputVideoPath.match(/\\uploads(.*)/);
 const cmd = `ffmpeg -i ${videoPath} -i ${audioPath} -filter_complex "[0:a]volume=1[a];[1:a]volume=0.2[b];[b]apad[looped_audio];[a][looped_audio]amix=inputs=2:duration=longest" -c:v copy -c:a aac -strict experimental -shortest ${outputVideoPath}`;

 try {
 await execPromise(cmd);
 console.log('end!')
 return matchPath[0];
 } catch (error) {
 console.error('Error:', error);
 throw error;
 }
 }
}




-
mpeg4videodec : only allow a positive length
22 avril 2015, par Andreas Cadhalpun