Documentation ¶
Index ¶
- type Video
- func (v *Video) Duration() float64
- func (v *Video) End() float64
- func (v *Video) Filepath() string
- func (v *Video) Height() int64
- func (v *Video) Render(output string)
- func (v *Video) SetEnd(end float64)
- func (v *Video) SetHeight(height int64)
- func (v *Video) SetSize(width int64, height int64)
- func (v *Video) SetStart(start float64)
- func (v *Video) SetWidth(width int64)
- func (v *Video) Start() float64
- func (v *Video) Trim(start float64, end float64)
- func (v *Video) Width() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Video ¶
type Video struct {
// contains filtered or unexported fields
}
The structure that defines the Video structure. All the values in this structure will be filled when MakeVideo is called.
func MakeVideo ¶
MakeVideo takes in the filepath of any videofile supported by FFMPEG. It will return a Video structure with all of the values parsed from FFPROBE. Note: This will not load the video into memory.
func (*Video) Render ¶
This function will take the configuration set in the Video structure and properly apply it to the rendered video. Currently supports trimming, scaling, and video format conversion.
Click to show internal directories.
Click to hide internal directories.