3. API Reference¶
3.1. Gif Abstract Class¶
-
class
vcgif.GifAbstract.
GifAbstract
[source]¶ Gif Abstract Class
This class is gif abstract class, all convert class(video or picture) should inherit from this class.
- Args:
video
(string): video path.start_timestamp
(int): set the start timestamp of the video.gif_duration
(int): set the gif duration length.fps
(int): set the gif file frame rate.quality
(string:high, string:low): set the gif file quality.destination
(string): set the gif file output path.gif_name
(string): set the gif filename.
-
destination
¶ string: return gif output file path.
Parameters: path – string
-
fps
¶ int: return gif fps number.
Parameters: number – integer
-
generate_gif
()[source]¶ Abstract method for generate gif
All class should implement this method, even using pass.
-
gif_duration
¶ int: return gif duration length.
Parameters: length – integer
-
name
¶ string: return gif output filename.
Parameters: name – string
-
quality
¶ string: return gif file quality.
Parameters: quality – string
-
start_timestamp
¶ int: return start timestamp length.
Parameters: time – integer
-
video
¶ string: return video path.
Parameters: path – string