
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (55)
-
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 (7569)
-
Accord.Video.FFMPEG getting error for long video
30 novembre 2022, par wahyuI use Accord.Video.FFMPEG to extract images every 10 frames from a video. Total frames for this video is 38194 frames. First run is good, I can save image every 10 frames but after run of about 38185 frames i got null return from this code
Bitmap bmpBaseOriginal = vReader.ReadVideoFrame();
, if I see in the video there is no problem at the end of video.

I do something like this


using (var vReader = new VideoFileReader())
{
 vReader.Open(files[0]);
 TotalFrame = vReader.FrameCount;
 countin = Convert.ToInt32(TotalFrame / Convert.ToDouble(countAsset));
 Fps = vReader.FrameRate.Value; 
 int a = 0;
 for (int i = 0; i < vReader.FrameCount; i++)
 {
 if(i < vReader.FrameCount - 1)
 {
 Bitmap bmpBaseOriginal = vReader.ReadVideoFrame();
 if (i%10 == 0)
 {
 a++;
 bmpBaseOriginal.Save(string.Format("{0}\\{1}.jpeg", dirVideo.FullName, a), ImageFormat.Jpeg);
 }
 bmpBaseOriginal.Dispose();
 }
 else
 {
 a++;
 Bitmap bmpBaseOriginal = vReader.ReadVideoFrame();
 bmpBaseOriginal.Save(string.Format("{0}\\{1}.jpeg", dirVideo.FullName, a), ImageFormat.Jpeg);
 bmpBaseOriginal.Dispose();
 }
 }
 vReader.Close();
}



this problem occurs again on another video if the video has a lot of frames, but no problem if the video has a less frames.


How to solve it ?


-
FFmpeg for automatic video generation from images ?
22 janvier 2018, par Dionisis KI want to implement an automatic video generation from images, like facebook’s anniversary video. And I would also like to add some filters. I’ve been searching a lot and read FFmpeg’s documentation which is pretty amazing.
In the future I want to have 10-20 "bashscripts" with different filters leading to different themes (e.g. fade-in, zoom, overlay images, left-to-right, etc..)
So my biggest concern is having an interface which offers readable code and provides scalability. Since ffmpeg is a bashscript i searched for a wrapper
There are wrappers in
- https://github.com/PHP-FFMpeg/PHP-FFMpeg for php ,which doesn’t support image convertion to videos and complex filters .
- https://github.com/fluent-ffmpeg/node-fluent-ffmpeg which looks promising but also difficult to go with complex filters
- and https://github.com/kkroening/ffmpeg-python for python.I think that it s pretty good
Are there any other wrappers worth to check ?
Would you recommend something from the above ?
Is there any pros and cons using a specific programming language for this particular case ?
Is there anything else i should bear in mind before I make a decision ? -
Add a fixed size image on a video, regardless of the video width & height FFMPEG [duplicate]
30 juillet 2017, par RitaThis question already has an answer here :
This is my code that that is use is following
$info = pathinfo($file) ; $out = "$info[’dirname’]/ss_$info[’basename’]" ; exec("ffmpeg -i ’".$file."’ -i ’".SS_ROOT."".$ss->settings[’watermark_image’]."’ -filter_complex ’overlay=main_w-overlay_w-10:main_h-overlay_h-10’ ’".$out."’") ;
that works very well, but it doesn’t keep the logo aspect ratio. I tried this code on two videos with different resolution and this is the result