Documentation
¶
Index ¶
- func GetVideoLength(inVideoPath string) (int, error)
- func MakeV117(inFramesLaptopDirectory, inFramesMobileDirectory, inAudioFile string, ...) error
- func ReadAudio(inVideoPath string) ([]byte, error)
- func ReadLaptopFrames(inVideoPath string, seconds int) ([]*image.Image, error)
- func ReadMobileFrames(inVideoPath string, seconds int) ([]*image.Image, error)
- func UpdateMeta(inVideoPath string, meta map[string]string, ...) error
- type MakeVideoLumpTemp
- type UniqueFrameDetails
- type VideoHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVideoLength ¶
This checks the length of the video using the frames itself It doesn't check against the audio data embedded in it
func MakeV117 ¶
func MakeV117(inFramesLaptopDirectory, inFramesMobileDirectory, inAudioFile string, meta map[string]string, tmpVideoDirectory, outFilePath string) error
MakeV117 is good for videos with a lot of stills eg. lyrics videos with a single background. the inFramesDirectory must contain png files numbered from 1.png upwards the framerate must be stored in the **meta** as a string
func ReadLaptopFrames ¶
Read frames for 1 seconds, starting from the 'seconds' parameter 'seconds' parameter starts from 0
func ReadMobileFrames ¶
Read frames for 1 seconds, starting from the 'seconds' parameter 'seconds' parameter starts from 0
Types ¶
type MakeVideoLumpTemp ¶
type MakeVideoLumpTemp struct { UniqueFrames []UniqueFrameDetails FramesPointerToUniqueFrames map[int]int }
type UniqueFrameDetails ¶
type VideoHeader ¶
type VideoHeader struct { Meta map[string]string LaptopUniqueFrames [][]int LaptopFrames map[int]int MobileUniqueFrames [][]int MobileFrames map[int]int AudioSize int LaptopVideoSize int MobileVideoSize int }
func ReadHeaderFromVideo ¶
func ReadHeaderFromVideo(inVideoPath string) (VideoHeader, error)
Click to show internal directories.
Click to hide internal directories.