v30

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(ctx context.Context, cfg MergeConfig) error

func ValidateOutputIntegrity added in v1.1.0

func ValidateOutputIntegrity(outputRoot string, features map[string]meta.FeatureSpec) error

ValidateOutputIntegrity checks merged dataset has data parquet and video files.

Types

type MergeConfig

type MergeConfig struct {
	StagingRoot     string
	OutputRoot      string
	RobotType       string
	FPS             int
	Features        map[string]meta.FeatureSpec
	Locator         video.Locator
	Stats           stats.Options
	MaxWorkers      int
	DataFileSizeMB  int
	VideoFileSizeMB int
}

type StagingConfig

type StagingConfig struct {
	Dir       string
	Episode   int
	FPS       int
	Features  map[string]meta.FeatureSpec
	Locator   video.Locator
	VCodec    string
	CRF       int
	UseVideos bool
	Streaming bool
	Stats     stats.Options
	TempRoot  string
	H264Remux bool
}

type StagingWriter

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

func NewStagingWriter

func NewStagingWriter(cfg StagingConfig) (*StagingWriter, error)

func (*StagingWriter) AddFrame

func (w *StagingWriter) AddFrame(ctx context.Context, frame map[string]any) error

func (*StagingWriter) AppendRGBVideoFrame added in v1.1.0

func (w *StagingWriter) AppendRGBVideoFrame(ctx context.Context, key string, frame video.VideoFrameRGB24) error

AppendRGBVideoFrame writes one RGB frame into a lazily-created encoder (decode fallback path).

func (*StagingWriter) Close

func (w *StagingWriter) Close() error

func (*StagingWriter) SaveEpisode

func (w *StagingWriter) SaveEpisode(ctx context.Context) (manifest.Episode, error)

func (*StagingWriter) SetH264Remux added in v1.1.0

func (w *StagingWriter) SetH264Remux(ctx context.Context, tracks map[string][][]byte) error

Jump to

Keyboard shortcuts

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