Documentation ¶
Index ¶
- func CreatePreviews(videoPath string) error
- func DisplayPreview(videoPath string)
- func GetShowDuration(ctx context.Context, inputFilePath string) (time.Duration, error)
- func Preview(ctx context.Context) error
- func RemoveAds(ctx context.Context) error
- type Markers
- type Segment
- type Segments
- type Timestamp
- type Timestamps
- type TivoClipMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePreviews ¶
func DisplayPreview ¶
func DisplayPreview(videoPath string)
func GetShowDuration ¶
Types ¶
type Markers ¶
type Markers struct { Segments Segments `json:"segments,omitempty"` Timestamps Timestamps `json:"timestamps,omitempty"` }
func ImportSkipFile ¶
func ImportTivoClipMetadata ¶
func ImportVideoRedoV3Skip ¶
type Segments ¶
type Segments []Segment
func (Segments) Invert ¶
Invert will, given a list of non-overlapping continuously increasing segments, returns a list of segments that captures the inversion of the input list. For example, if the input segment is a list of time frames to cut out of a video, then the inversion would be a list of time frames to keep:
input: {5:10}, {15:20}, {30:40} inverted: {0:5}, {10:15}, {20:30}, {40:end}
func (Segments) Remove ¶
ffmpeg -y -i example.mp4 -vf select='between(t\,10\,20)+between(t\,30\,40\),setpts=N/FRAME_RATE/TB' -af aselect='between(t\,10\,20)+between(t\,30\,40\),asetpts=N/SR/TB' test_output.mp4 ffmpeg -y -i intTestTransportStream.ts -vf select='between(t\\,0\\,413)+between(t\\,607\\,970)+between(t\\,1166\\,1679)+between(t\\,1903\\,1980),setpts=N/FRAME_RATE/TB' -af aselect='between(t\\,0\\,413)+between(t\\,607\\,970)+between(t\\,1166\\,1679)+between(t\\,1903\\,1980),asetpts=N/SR/TB'"
type Timestamps ¶
type Timestamps []Timestamp