services

package
v0.0.0-...-a9dc3e9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: MIT Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GcsClient

type GcsClient struct {
	// contains filtered or unexported fields
}

Client Main struct

func (*GcsClient) CreateClient

func (gcs *GcsClient) CreateClient() error

Create and retrieve google cloud storage client

func (*GcsClient) CreateSelfSignedUrlForFile

func (gcs *GcsClient) CreateSelfSignedUrlForFile(bucket string, filename string, serviceAccount string) (string, error)

func (*GcsClient) GetClient

func (gcs *GcsClient) GetClient() storage.Client

func (*GcsClient) UploadStreamToGcs

func (gcs *GcsClient) UploadStreamToGcs(tempPath string, parameters *models.Parameters, public bool) error

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, parameters []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) Process

func (t Transcoder) Process() *exec.Cmd

Process Get transcoding process

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

func (*Transcoder) Stop

func (t *Transcoder) Stop() error

Stop Ends the transcoding process

Jump to

Keyboard shortcuts

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