Var identity = Guid.NewGuid().ToString() Ĭonverter.Invoke($"-i " + ex. MinimizedWidth = minimizedHeight / ratio out1. MinimizedHeight = minimizedWidth * ratio Input GIF Viewer Turn On the GIF Viewer View a GIF frame by frame at the speed you need. There are three output files specified, and for the first two, no -map options are set, so ffmpeg will select streams for these two files automatically. If (videoStream.Height > videoStream.Width) About screen capture limit it takes screen captures to make videos (nearly all desktop capture softwares doing same thing) and capturing 60 fps reliably not possible even with good computers and frame drops happens alot. Ratio = (double)videoStream.Width / (double)videoStream.Height If they want high fps and fullscreen then they are supposed to use FFmpeg not GIF so it is right choice what I did. Var ratio = (double)videoStream.Height / (double)videoStream.Width Share Improve this answer answered at 19:36 llogan 53. Var videoStream = (x => (x.Width != -1 & x.Height != -1)) Use the -loop option for the GIF muxer ffmpeg -i input -loop 2 output.gif -1 no loop (plays once) 0 infinite loop (default) 1 loop once (plays 2 times) 2 loop twice (plays 3 times) etc See ffmpeg -h muxergif. Var videoInfo = ffProbe.GetMediaInfo(url) public static byte ConvertToGif(string url, string watermarkImagePath, string documentsPath) ![]() Looking for the best way to speed up or maybe move from FFMpegConverter to another application for converting video to GIF, because it takes much time, will be much appreciate for code review and suggestions to improve converting performance.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |