Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

699 B
Raw Blame
package storage

import (
	"context"
	"os/exec"
)

var (
	FfmpegPath        string
	FfprobePath       string
	YtdlpPath         string
	YtdlpPrefixArgs   []string
	FasterwhisperPath string
	WhisperXPath      string
	WhisperKitPath    string
	WhispercppPath    string
	EdgeTtsPath       string
	VttToSrtPath      string
)

func YtdlpCommand(args ...string) *exec.Cmd {
	commandArgs := append(append([]string{}, YtdlpPrefixArgs...), args...)
	return exec.Command(YtdlpPath, commandArgs...)
}

func YtdlpCommandContext(ctx context.Context, args ...string) *exec.Cmd {
	commandArgs := append(append([]string{}, YtdlpPrefixArgs...), args...)
	return exec.CommandContext(ctx, YtdlpPath, commandArgs...)
}