package
1.2.0
Repository: https://github.com/sweet-go/stdlib.git
Documentation: pkg.go.dev

# Functions

AddAudioToVideo adds audio to video and will repeat the audio if the video is longer than the audio.
ConcatMP4Videos concatenates mp4 videos using ffmpeg.
ConvertImage converts the image to the desired format.
ConvertWebmToMP4 converts webm to mp4 using ffmpeg.
DetermineVideoOrientation determines the orientation of the video.
GetVideoAspectRatio returns the width and height of the video.
GetVideoData returns the video data utilizing ffprobe.
IsVideoHasAudio returns true if the video has audio stream.
MergeImagesToVideos merges multiple images into a video.
ResizeAndEncodeVideo resizes and encodes the video using ffmpeg.
ScaleDownImageByWidth scales down the image by width while maintaining the aspect ratio.
ScaleUpAndFillImage scales up the image to the desired width and height while maintaining the aspect ratio.
ScaleUpImageByResolution scales up the image to the desired width and height while maintaining the aspect ratio.
ScaleVideo scales the video using ffmpeg.
SliceImage slices the image into multiple images with the given height.
TransformLandscapeVideoToPortrait transforms landscape video to portrait video.

# Constants

list of video orientations.
list of video orientations.
list of video orientations.

# Structs

AddAudioToVideoInput is the input for AddAudioToVideo function.
ConcatMP4VideosInput is the input for ConcatMP4Videos function.
ConvertImageInput is the input for ConvertImage function.
MergeImagesToVideosInput is the input for MergeImagesToVideos function.
ResizeAndEncodeVideoInput is the input for ResizeAndEncodeVideo function.
ScaleDownImageByWidthInput is the input for ScaleDownImageByWidth function.
ScaleUpAndFillImageInput is the input for ScaleUpAndFillImage function.
ScaleUpImageByResolutionInput is the input for ScaleUpImageByResolution function.
ScaleVideoInput is the input for ScaleVideo function.
SliceImageInput is the input for SliceImage function.
TransformLandscapeVideoToPortraitInput is the input for TransformLandscapeVideoToPortrait function.
WebmToMP4Input is the input for ConvertWebmToMP4 function.

# Type aliases

VideoOrientation is the orientation of the video.