
Recherche avancée
Médias (2)
-
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 (64)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ) (...)
Sur d’autres sites (12312)
-
How to transcode flash movie to mp4, then upload to s3
13 octobre 2017, par user1790300I am using the fluent-ffmpeg library with node.js to transcode videos originally in a flash movie format to the mp3 format with multiple resolutions, 1080p, etc.. Once the transcoding is complete, I would like to move the transcoded video to an s3 bucket.
I pull the original .flv file from a source s3 bucket and pass the stream to the ffmpeg constructor function. The issue is after the transcoding completes, how do I then get the stream of the mp4 data to send to s3.
Here is the code I have so far :
var params = {
Bucket: process.env.SOURCE_BUCKET,
Key: fileName
};
s3.getObject(params, function(err, data) {
if (err) console.log(err, err.stack); // an error occurred
var format = ffmpeg(data)
.size('854x480')
.videoCodec('libx264')
.format('flv')
.toFormat('mp4');
.on('end', function () {
//Ideally, I would like to do the uploading here
var params = {
Body: //{This is my confusion, how do I get the stream to add here?},
Bucket: process.env.TRANSCODED_BUCKET,
Key: fileName
};
s3.putObject(params, function (err, data) {
});
})
.on('error', function (err) {
console.log('an error happened: ' + err.message);
});
});For the code above, where can I get the transcoded stream to add to the "Body" property of the params object ?
-
Using ffmepg wrapper to convert images to movie file
24 mai 2020, par rebornI have recently been using the ffmpeg wrapper by Vitaliy Fedorchenko called NReco.VideoConverter. It's pretty great and I have managed to write another application with it that I hope to release soon after some testing and I purchase the license for the wrapper (it's a cool watermarker for videos).



I am now trying to use that same wrapper to encode a video from still images, but sadly there is very little documentation available and I am feeling my way int he dark a little. I am hopeful that someone familiar with the wrapper might be able to help.



I collect the images using the fileOpenDialogue and picking images to populate a listView. When I am ready, I then take these images to build an array and create the movie.






void ConvertToMovie()
 {
 if(listImages.Items.Count > 1)
 {
 var ffMpeg = new NReco.VideoConverter.FFMpegConverter();

 NReco.VideoConverter.FFMpegInput[] ffMpegInputs = new NReco.VideoConverter.FFMpegInput[listImages.Items.Count]; 

 for (int i = 0; i < listImages.Items.Count; i++)
 {
 var SSAImage = new NReco.VideoConverter.FFMpegInput(listImages.Items[i].SubItems[2].Text.ToString());
 ffMpegInputs[i] = SSAImage;
 }


 ConvertSettings csettings = new ConvertSettings();
 csettings.SetVideoFrameSize((int)MovieWidth.Value, (int)MovieHeight.Value);
 csettings.VideoFrameCount = listImages.Items.Count;
 csettings.VideoFrameRate = (int)FPS.Value;

 /*
 string argument = " -profile:v high ";
 csettings.CustomOutputArgs = argument;
 */

 if (FormatChooser.SelectedIndex == 0)
 {
 //This just takes the first picture and converts that single frame into a movie.
 ffMpeg.ConvertMedia(ffMpegInputs, @"Converted.avi", Format.avi, csettings);
 //ffMpeg.ConvertMedia(listImages.Items[0].SubItems[2].Text.ToString(), ffMpegInput.Format, @"Converted.avi", Format.avi, csettings);
 }
 }
 else
 {
 MessageBox.Show("You need at least two images to make a movie.", Title);
 }
 }




Passing the images as an array to the function seems logical. At list of the methods are here : https://www.nrecosite.com/doc/NReco.VideoConverter/



However, the only method that allows you to pass an array of the inputs is here :
https://www.nrecosite.com/doc/NReco.VideoConverter/html/M_NReco_VideoConverter_FFMpegConverter_ConvertMedia.htm



So this makes sense to me that it would be the one to use.



This does generate a .avi file, but the movie only contains the first frame from the array.



I saw someone else had the same issue here : Nreco video converter make video from image sequence



However, the responses seemed to suggest using a different method that allows you to pass a single image file only, then somehow the ffmpeg.exe will sequence the rest of them ? I couldn't get that to work at all.



At this stage the only way I can see of making it work is creating a single frame movie file for each frame, and then concating all of the movie files together using :






That's a pretty ridiculous notion though.


-
lavfi/movie : Use filter thread count for decoding threads.
25 août 2019, par Carl Eugen Hoyos