Documentation ¶
Index ¶
- type Transcoder
- func (t Transcoder) FFmpegExec() string
- func (t Transcoder) FFprobeExec() string
- func (t Transcoder) GetCommand() []string
- func (t *Transcoder) Initialize(inputPath string, outputPath string) error
- func (t Transcoder) MediaFile() *models.Mediafile
- func (t Transcoder) Output() <-chan models.Progress
- func (t Transcoder) Process() *exec.Cmd
- func (t *Transcoder) Run(progress bool) <-chan error
- func (t *Transcoder) SetConfiguration(v ffmpeg.Configuration)
- func (t *Transcoder) SetMediaFile(v *models.Mediafile)
- func (t *Transcoder) SetProcess(cmd *exec.Cmd)
- func (t *Transcoder) SetProcessStderrPipe(v io.ReadCloser)
- func (t *Transcoder) SetProcessStdinPipe(v io.WriteCloser)
- func (t *Transcoder) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transcoder ¶
type Transcoder struct {
// contains filtered or unexported fields
}
Transcoder Main struct
func (Transcoder) FFmpegExec ¶
func (t Transcoder) FFmpegExec() string
FFmpegExec Get FFmpeg Bin path
func (Transcoder) FFprobeExec ¶
func (t Transcoder) FFprobeExec() string
FFprobeExec Get FFprobe Bin path
func (Transcoder) GetCommand ¶
func (t Transcoder) GetCommand() []string
GetCommand Build and get command
func (*Transcoder) Initialize ¶
func (t *Transcoder) Initialize(inputPath string, outputPath string) error
Initialize Init the transcoding process
func (Transcoder) MediaFile ¶
func (t Transcoder) MediaFile() *models.Mediafile
MediaFile Get the ttranscoding media file.
func (Transcoder) Output ¶
func (t Transcoder) Output() <-chan models.Progress
Output Returns the transcoding progress channel
func (*Transcoder) Run ¶
func (t *Transcoder) Run(progress bool) <-chan error
Run Starts the transcoding process
func (*Transcoder) SetConfiguration ¶
func (t *Transcoder) SetConfiguration(v ffmpeg.Configuration)
SetConfiguration Set the transcoding configuration
func (*Transcoder) SetMediaFile ¶
func (t *Transcoder) SetMediaFile(v *models.Mediafile)
SetMediaFile Set the media file
func (*Transcoder) SetProcess ¶
func (t *Transcoder) SetProcess(cmd *exec.Cmd)
SetProcess Set the transcoding process
func (*Transcoder) SetProcessStderrPipe ¶
func (t *Transcoder) SetProcessStderrPipe(v io.ReadCloser)
SetProcessStderrPipe Set the STDERR pipe
func (*Transcoder) SetProcessStdinPipe ¶
func (t *Transcoder) SetProcessStdinPipe(v io.WriteCloser)
SetProcessStdinPipe Set the STDIN pipe
Click to show internal directories.
Click to hide internal directories.