Documentation
¶
Index ¶
- Constants
- func DurationSeconds(ctx context.Context, locator Locator, path string) (float64, error)
- func EncodeFromPNGDir(ctx context.Context, cfg EncodeConfig) error
- func ExtractSegment(ctx context.Context, locator Locator, src, dst string, fromSec, toSec float64, ...) error
- func FileSizeMB(path string) (float64, error)
- func GetVideoInfo(ctx context.Context, locator Locator, videoPath string) (map[string]any, error)
- func ImageDir(videoKey string, episode int, root string) string
- func SafeConcat(ctx context.Context, locator Locator, inputs []string, output string, ...) error
- type Config
- type EncodeConfig
- type Locator
Constants ¶
View Source
const DefaultCRF = 25
Variables ¶
This section is empty.
Functions ¶
func DurationSeconds ¶
func EncodeFromPNGDir ¶
func EncodeFromPNGDir(ctx context.Context, cfg EncodeConfig) error
func ExtractSegment ¶
func ExtractSegment(ctx context.Context, locator Locator, src, dst string, fromSec, toSec float64, overwrite bool) error
ExtractSegment copies a time range from src into dst using ffmpeg.
func FileSizeMB ¶
func GetVideoInfo ¶
GetVideoInfo mirrors lerobot.datasets.video_utils.get_video_info (v0.5.1).
Types ¶
type EncodeConfig ¶
Click to show internal directories.
Click to hide internal directories.