video2animatedGIF
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 4.6, Creation date: 2019-06-10, Last change: 2025-09-14
creates an animated GIF from a video file
Description
Since Peter Corke advised me to use animated GIFs for documentation, this function has been written for this purpose. Written in Tokyo visiting Hajime Asama's Lab at The University of Tokyo.
See Also: image2video
, videoCopyCutMovies
, video2video
Example Illustration
Syntax
video2animatedGIF([fname,WName,sizecr,cutt,frames,accel])
Input Parameter
fname: | | Video file; default is ''=> selection by browser |
WName: | | Name for animated GIF file; default is same as Video file name |
sizecr: | | size columns by rows; default is unchanged; if scalar<10 => ratio if scalar>10 =>rows |
cutt: | | [start time end time]; default is [0 inf] |
frames: | | fps; default is unchanged; 10 is a useful value; |
accel: | | integer acceleration factor > 1; default is 1 |
Examples
Just try
video2animatedGIF('','',[1024 768],[2 3]) % select any video and cut between 2 and 3 seconds
video2animatedGIF('','',0.5,[2 3]) % scaling ration 0.5
video2animatedGIF('','',720 lines,[2 3]) % use 720 lines
video2animatedGIF('','',720 lines,[2 3],10) % use 720 lines and 10 fps
Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21