ffmpeg

package
v0.0.0-...-d5b31fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 17 Imported by: 0

README

FFmpeg

a tool to convert video files to hls segments for video streaming by ffmpeg

Methods

  • probe video file
  • extract video jpg & gif images
  • convert to hls segments

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Probe(file string) (*ProbeData, error)
	ExtractJpg(file string) (string, error)
	ExtractGif(file string) (string, error)
	ToHLS(in, out string, encrypt bool) (<-chan models.Progress, <-chan error, error)
}

func NewHandler

func NewHandler() Handler

type ProbeData

type ProbeData struct {
	Size            float64       `json:"size"`
	Duration        time.Duration `json:"duration"`
	VideoResolution string        `json:"video_resolution"`
	VideoCodec      string        `json:"video_codec"`
	AudioCodec      string        `json:"audio_codec"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL