Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OutputFormat ¶
type OutputFormat int
const ( FormatWebM OutputFormat = iota FormatFLV OutputFormat = iota + 1 )
type ProbeOutput ¶
func (*ProbeOutput) AudioStreams ¶
func (ffo *ProbeOutput) AudioStreams() (astrms []Stream)
func (*ProbeOutput) VideoStreams ¶
func (ffo *ProbeOutput) VideoStreams() (vstrms []Stream)
type Transcoder ¶
type Transcoder struct {
// contains filtered or unexported fields
}
func NewTranscoder ¶
func NewTranscoder(ffprobeExeName, ffmpegExeName string) (*Transcoder, error)
func NewTranscoderWithProber ¶
func NewTranscoderWithProber(ffmpegExeName string, prober *Prober) (*Transcoder, error)
func (*Transcoder) TranscodeFile ¶
func (s *Transcoder) TranscodeFile(filename string, format OutputFormat, offset, width, height, bitrate int) (ffStdOut io.Reader, ffStdErr io.Reader, err error)
Click to show internal directories.
Click to hide internal directories.