
Recherche avancée
Autres articles (35)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Les images
15 mai 2013 -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)
Sur d’autres sites (2519)
-
TimeSpan in Aforge.Net, set time for each image in a video
23 décembre 2020, par Siddhant SinghI have a query I am creating a video from the set of images using the Aforge.net framework but the video is playing very fast I want at least 5 seconds for each image in the video, I have tried using timeSpan but I didn’t get the desired result.
could anyone please suggest me or help me to find out my solution.


here is my code


TimeSpan timeSpan = new TimeSpan(0, 0, 5);
string[] paths = Directory.GetFiles(basePaths);
int imagesCount = paths.Length;
using (var vFWriter = new VideoFileWriter())
{

vFWriter.Open(@”D:\videosss.avi”, 1920, 1080,1,VideoCodec.MPEG4,4000000);

for (int i = 0; i < imagesCount; i++)
{
var imagePath = string.Format(paths[i]);
using (Bitmap image = Bitmap.FromFile(imagePath) as Bitmap)
{
vFWriter.WriteVideoFrame(image,timeSpan);

}

}
}
}



if I use timespan the first image plays the whole time of timespan, if I don't use timespan the video plays well but fast. the directory contains 15 images I want 5 or 6 sec at least for each image in the video. where the 45 sec is my total time.


thanks


-
How to get specific start & end time in ffmpeg by Node JS ?
3 novembre 2017, par Santosh SuryawanshiI want to cut a video in specific start & end time & save it. I cant understand how to cut specific time of that video by Node JS.
Video copy code :
return new Promise(function(resolve ,reject){
var ffmpeg = require('fluent-ffmpeg');
ffmpeg(fs.createReadStream(path.join(__dirname,'..','..','/video.mp4')))
.seekInput('01:00')
.duration('02:00')
.outputOptions('-strict experimental')
.on('start', function(commandLine) {
console.log('Spawned Ffmpeg with command: ' + commandLine);
}).on('end', function(err) {
if (!err) {
console.log('conversion Done');
//res.send("conversion Done");
resolve();
}
}).on('error', function(err) {
console.log('error: ', +err);
reject(err);
}).save(path.join(__dirname,'..','..','/test.mp4'));
}); -
Random time and positioning of a watermark FFmpeg
5 mai 2020, par necakaranfilHow can i restrict this code just to show the watermark on the Top,bottom:Left/right position in a random sequence. And how can i change the time interval when the logo pops up to random ? Or if anyone has a better one, that can do this, that could be useful to.



for %%a in ("*.mp4") do ffmpeg -i "%%a" -loop 1 -i logo.png -filter_complex "[1]trim=0:30,fade=in:st=0:d=1:alpha=1,fade=out:st=9:d=1:alpha=1,loop=999:750:0,setpts=N/25/TB[w];[0][w]overlay=shortest=1:x=if(eq(mod(n\,200)\,0)\,sin(random(1))*W\,x):y=if(eq(mod(n\,200)\,0)\,sin(random(1))*H\,y)" "1%%~na.mp4"



Thanks