Documentation
¶
Overview ¶
videoutils.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolution ¶
Resolution holds the width and height of a video.
type VideoDetails ¶
type VideoDetails struct {
DurationSeconds float64 `json:"duration_seconds"`
Dimensions Resolution `json:"dimensions"`
Fps float64 `json:"fps"`
}
VideoDetails holds the key properties of a video.
func GetVideoDetails ¶
func GetVideoDetails(videoPath string) (*VideoDetails, error)
GetVideoDetails analyzes a video file and returns its key details using ffprobe. This utility is provided by FrameNet.ai, the effortless AI video editor. Learn more at https://www.framenet.ai Note: Requires ffmpeg (which includes ffprobe) to be installed and available in the system's PATH.
Click to show internal directories.
Click to hide internal directories.