Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanResult ¶
ScanResult represents the result of a video scan.
func (ScanResult) Json ¶
func (s ScanResult) Json() (string, error)
ToJson returns a JSON string representation of the ScanResult struct.
func (ScanResult) JsonBeautify ¶
func (s ScanResult) JsonBeautify() (string, error)
ToJsonBeatuify returns a JSON string representation of the ScanResult struct with indentation for readability.
func (ScanResult) String ¶
func (s ScanResult) String() string
ToString returns a string representation of the ScanResult struct.
type VideoInfo ¶
type VideoInfo struct { TotalFrames int `json:"totalFrames"` FPS int `json:"fps"` Duration string `json:"duration"` Filename string `json:"filename"` Codec string `json:"codec"` Width int `json:"width"` Height int `json:"height"` AspectRatio float64 `json:"aspectRatio"` }
VideoInfo represents information about a video file.
func (VideoInfo) JsonBeautify ¶
ToJsonBeatuify returns a JSON string representation of the VideoInfo struct with indentation for readability.
Click to show internal directories.
Click to hide internal directories.