v21

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 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, info meta.DatasetInfo, features map[string]meta.FeatureSpec) error

ValidateOutputIntegrity checks merged v2.1 dataset has per-episode parquet and video files.

Types

type MergeConfig

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

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
	Stats          stats.Options
	TempRoot       string
	H264Remux      bool
	ExternalVideos 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

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

func (*StagingWriter) SetVideoFiles added in v1.2.0

func (w *StagingWriter) SetVideoFiles(ctx context.Context, files map[string]string) error

Jump to

Keyboard shortcuts

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