
Recherche avancée
Médias (3)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (46)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)
Sur d’autres sites (5120)
-
RTMP_ReadPacket, failed to read RTMP packet header
14 juin 2018, par Dilivio CatI am trying to livestream a 24/7 looping stream from my Ubuntu server to youtube.
I have a gif that is looping and my music gets shuffled from a music list.
for i in ./*.mp3 ; do echo "file '$i'" ; done | shuf >mp3list.txt ffmpeg -f
concat -i mp3list.txt -fflags +genpts -ignore_loop 0 -i giffilename.gif -f
flv rtmp://a.rtmp.youtube.com/live2/(mykeyhere)But I am getting this error when I run my script :
RTMP_ReadPacket, failed to read RTMP packet header : Unknown error
occutredm/live2/(mykeyhere)I did some research, but couldn’t find anything about this specific error. I opened port 1935 and it did not change anything.
The OS is Ubuntu 16.04 on a VPS.
Thanks for your help,Dilie
-
How to cut and concatenate the file so it is not off-beat when the file I got the bpm from is being muxed ?
27 janvier 2017, par P. DeeI am cutting files with ffmpeg based on the bpm I found in a music file. So let’s assume, the file’s bpm = 120. That means, there are 2 bps and 1 beat every 500ms.
So I cut a video file with multiples of 500ms length, ie 500ms, 1500ms, 3000ms etc. length. But cutting it using
ffmpeg -ss start -i fileorig.mp4 -t duration part_number.mp4
and finally creating a
mylist.txt
withfile 'part_1.mp4'
file 'part_2.mp4'
...and adding them via
ffmpeg -f concat -i mylist.txt -c copy output.mp4
and replacing the audio track with the music file, makes the video be off-beat after some time.
How to cut and concatenate the file so it is not off-beat when the file I got the bpm from is being muxed ?
-
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;
 }
 }
}