Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodeRequest ¶
type EncodeRequest struct {
Reader io.Reader `json:"-"`
// Output is the output container format and any format-level options
// (e.g. muxer flags), e.g. profile.OutputWithName("mp4").
Output *profile.Output `json:"output" help:"Output container format." required:"true"`
// Audio, Video and Subtitle are the encoding targets for this request.
// Each is optional, but at least one must be set; when set, the first
// stream of that type found in the input is transcoded into it.
Audio *profile.AudioProfile `` /* 126-byte string literal not displayed */
Video *profile.VideoProfile `` /* 126-byte string literal not displayed */
Subtitle *profile.SubtitleProfile `` /* 135-byte string literal not displayed */
}
func (*EncodeRequest) Task ¶
func (r *EncodeRequest) Task() string
Task identifies this task's kind, for Status.Task.
func (*EncodeRequest) Validate ¶
func (req *EncodeRequest) Validate() error
Validate checks that req is well-formed: a non-nil Reader, a resolved Output, and at least one of Audio/Video/Subtitle set. Called by Manager.Add before the task is even registered, and again by Run itself as a safety net for any caller that builds a task without going through Add (e.g. Run called directly in a test).
type EncodeResponse ¶
type EncodeResponse struct {
// Path is the location of the encoded output.
Path string `json:"path" help:"Path to the encoded output file." example:"/tmp/gomedia-encode-123456.mp4"`
}
Click to show internal directories.
Click to hide internal directories.