Documentation ¶
Overview ¶
Package processor contains mp4 file processor which can only do segmentation for now.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Logger *zap.Logger Notificator *notificator.Notificator Store MediaStore VideoAPIEndpoint string VideoAPIToken string InputPathPrefix string OutputPathPrefix string SegmentDuration time.Duration VideoCheckPeriod time.Duration }
type MediaStore ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor is worker-style app that polls videoapi for uploaded videos, processes them and notifies videoapi about results.
Processing includes - segmentation - MPD generation Segments and static MPD are stored in MediaStore (s3).
func (*Processor) ProcessFileFromReader ¶
func (p *Processor) ProcessFileFromReader(ctx context.Context, rs io.ReadSeeker, location string) (*meta.Meta, error)
ProcessFileFromReader segments mp4 file provided as reader using specified segment duration and writes resulting segments to segment writer. It also generates StaticMPD schema.
Click to show internal directories.
Click to hide internal directories.