mirror of
https://github.com/volcengine/mediakit-cli.git
synced 2026-09-14 20:06:30 +08:00
feature/mediakit-open-source-sync
MediaKit CLI
mediakit-cli is the MediaKit command-line interface. It supports local and cloud execution modes, generated domain commands, and multi-platform binary distribution.
Install
npm
npm install -g @volcengine/mediakit-cli
mediakit-cli version
npx
npx @volcengine/mediakit-cli version
curl
curl -fsSL https://raw.githubusercontent.com/volcengine/mediakit-cli/main/scripts/install.sh | bash
mediakit-cli version
Install a specific version or custom path:
VERSION=v0.1.0 INSTALL_DIR="$HOME/.local/bin" \
curl -fsSL https://raw.githubusercontent.com/volcengine/mediakit-cli/main/scripts/install.sh | bash
Commands
mediakit-cli version
mediakit-cli init
mediakit-cli doctor
mediakit-cli config show
mediakit-cli --domains
Development
Build
make build
Build All Platforms
make build-all
Snapshot Release
make snapshot
The local build writes the binary to .mediakit/build/dev/mediakit-cli.
Release
- GitHub Releases are produced with
.goreleaser.yml - npm distribution uses
package.json,scripts/install.js, andscripts/run.js - curl installation uses
scripts/install.sh - the GitHub Actions entry is
.github/workflows/mediakit-cli-release.yml
Local Tool Admission
Current local tool allowlist:
ffmpeg: required,5.1.x,LGPL v2.1 or later, commercial use allowedffprobe: required,5.1.x,LGPL v2.1 or later, commercial use allowed- optional FFmpeg features:
openh264,demuxer,libmp3lame,libass,libfreetype,libfontconfig,libfribidi,libharfbuzz,zlib,libpng,libjpeg-turbo - approved optional feature version anchors:
libass 0.17.3,libfreetype 2.13.3,libfontconfig 2.15.0,libfribidi 1.0.16,libharfbuzz 10.2.0 - built-in local helper:
fetch-filedownloads HTTP/HTTPS URLs toMEDIAKIT_OUTPUT_PATHand returns local paths unchanged
Admission boundary:
- Only use external process execution via
os/exec - Do not statically link or dynamically link local tools into the Go binary
- Do not modify upstream source code
- Keep FFmpeg in LGPL mode by default
- Do not introduce
non-freecomponents by default - Do not keep local intermediate artifacts; only final user outputs and
fetch-filedownloads are retained
Local File Output
MEDIAKIT_OUTPUT_PATHoverrides the local file output directory- Default output directory:
~/.mediakit/temp
Description
byted-mediakit-audio: 面向音频文件或视频中的音轨,处理语音边界定位、音频媒资信息探测、音频转码与码流封装适配、人声与背景声分离等目标。若对象和目标族已明确属于音频内容理解、音频转码、音频格式治理或音轨分离,但具体做法不确定,可先加载本 Skill 探索。; byted-mediakit-video: 面向视频文件的智能处理、媒资理解、画质治理与画质检测、抽帧、隐私保护、语音转字幕、字幕提取、字幕擦除、水印处理、精彩片段与高光拆条分析生成、剧情结构化与剧本整理、场景与语义分段、画面文字识别、视频转码转封装及抠像换脸等目标。若对象和目标族已明确属于视频增强、视频分析理解、视频内容结构化、从视频提取字幕、语音转字幕、视频…; byted-mediakit-image: 面向单张或批量图片的视觉处理、质量优化、内容理解与基础编辑目标,适用于图片尺寸缩放与体积治理、元信息探测、裁剪旋转翻转与圆角、颜色与锐化清晰度调整、负片、模糊与打码、水印、背景移除、文字识别、画质评估与智能裁剪等。若对象和目标族已明确属于图片优化、图片理解或图片隐私保护,但具体做法不确定,可先加载本 S…
Languages
Go
93.4%
JavaScript
4.8%
Shell
1.2%
Makefile
0.6%