You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loopint// For GIFs only. -1=no loop, 0=infinite loop, >0=number of loops.
94
-
Delayint// Delay for final frame of GIFs.
95
-
Macroint// Macroblock size for determining how to resize frames for codecs.
96
-
FPSfloat64// Frames per second for output video.
97
-
Qualityfloat64// If bitrate not given, use quality instead. Must be between 0 and 1. 0:best, 1:worst.
98
-
Codecstring// Codec for video.
99
-
Formatstring// Pixel Format for video. Default "rgb24".
100
-
Audiostring// File path for extra stream data.
92
+
Bitrateint// Bitrate.
93
+
Loopint// For GIFs only. -1=no loop, 0=infinite loop, >0=number of loops.
94
+
Delayint// Delay for final frame of GIFs.
95
+
Macroint// Macroblock size for determining how to resize frames for codecs.
96
+
FPSfloat64// Frames per second for output video.
97
+
Qualityfloat64// If bitrate not given, use quality instead. Must be between 0 and 1. 0:best, 1:worst.
98
+
Codecstring// Codec for video.
99
+
Formatstring// Pixel Format for video. Default "rgb24".
100
+
StreamFilestring// File path for extra stream data.
101
101
}
102
102
```
103
103
104
-
The `Options.Audio` parameter is intended for users who wish to process a video stream and keep the audio. Instead of having to process the video and store in a file and then combine with the original audio later, the user can simply pass in the original file path via the `Options.Video` parameter. This will combine the video with all other streams in the given file (Audio, Subtitle, Data, and Attachments Streams) and will cut all streams to be the same length. Note that `vidio` is not a audio/video editing library.
104
+
The `Options.StreamFile` parameter is intended for users who wish to process a video stream and keep the audio (or other streams). Instead of having to process the video and store in a file and then combine with the original audio later, the user can simply pass in the original file path via the `Options.StreamFile` parameter. This will combine the video with all other streams in the given file (Audio, Subtitle, Data, and Attachments Streams) and will cut all streams to be the same length. **Note that `Vidio` is not a audio/video editing library.**
105
105
106
-
Note that this means that adding extra stream data from a file will only work if the filename being written to is a container format.
106
+
This means that adding extra stream data from a file will only work if the filename being written to is a container format.
107
107
108
108
## Images
109
109
110
-
Vidio provides some convenience functions for reading and writing to images using an array of bytes. Currently, only `png` and `jpeg` formats are supported. When reading images, an optional `buffer` can be passed in to avoid array reallocation.
110
+
`Vidio` provides some convenience functions for reading and writing to images using an array of bytes. Currently, only `png` and `jpeg` formats are supported. When reading images, an optional `buffer` can be passed in to avoid array reallocation.
0 commit comments