JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 36
  • Score
    100M100P100Q39913F
  • License MIT

AI-powered video analysis and editing CLI tool for automatic video classification and Jianying draft generation

Package Exports

  • @mixvideo/cli
  • @mixvideo/cli/dist/index.js
  • @mixvideo/cli/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mixvideo/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@mixvideo/cli

๐ŸŽฌ AI-powered video analysis and editing CLI tool for automatic video classification and Jianying draft generation.

Features

  • ๐Ÿค– AI Video Analysis: Powered by Gemini AI for intelligent video content analysis
  • ๐Ÿ“ Automatic Classification: Smart categorization of videos into folders
  • ๐ŸŽฏ Intelligent File Naming: Content-based file naming with original name preservation
  • ๐Ÿ“‹ Jianying Integration: Generate draft files for Jianying video editor
  • ๐Ÿ”„ Caching System: Efficient caching to avoid duplicate processing
  • ๐Ÿ›ก๏ธ Safe Operations: Copy mode by default to preserve original files

Installation

npm install -g @mixvideo/cli

Quick Start

1. Analyze Videos

Analyze videos in a directory and automatically classify them:

mixvideo analyze ./videos

2. Generate Jianying Drafts

Generate draft files for Jianying from video directory:

mixvideo generate from-videos ./videos

Commands

analyze

Analyze video files and automatically classify them into folders.

mixvideo analyze <source> [options]

Options:

  • -o, --output <path>: Output directory (default: "outputs")
  • -m, --mode <mode>: Analysis mode - gemini|gpt4 (default: "gemini")
  • --temperature <number>: AI model temperature (0.0-1.0, default: "0.3")
  • --max-tokens <number>: Maximum output tokens (default: "4096")
  • --move-files: Move files instead of copying (default: false)
  • --create-backup: Create backup files (default: false)
  • --confidence <number>: Minimum confidence for file movement (0.0-1.0, default: "0.4")

Example:

mixvideo analyze ./my-videos -o ./organized --mode gemini --confidence 0.6

generate

Generate Jianying draft files from videos or templates.

generate from-videos

Generate draft from video directory:

mixvideo generate from-videos <source> [options]

Options:

  • -o, --output <path>: Output file path (default: "draft_content.json")
  • --title <title>: Project title (default: "่ง†้ข‘้กน็›ฎ")
  • --fps <number>: Frame rate (default: "30")
  • --resolution <resolution>: Resolution - 1080p|720p|4k (default: "1080p")

generate from-template

Generate draft from template:

mixvideo generate from-template <dir> [options]

Options:

  • -t, --template <template>: Template file path (default: "draft_content.json")

login / logout

Authentication commands (coming soon):

mixvideo login -u <username> -p <password>
mixvideo logout

Configuration

The CLI tool automatically creates the following folder structure for video classification:

  • ๐Ÿ“ ไบงๅ“ๅฑ•็คบ (Product Display)
  • ๐Ÿ“ ไบงๅ“ไฝฟ็”จ (Product Usage)
  • ๐Ÿ“ ็”Ÿๆดปๅœบๆ™ฏ (Life Scenes)
  • ๐Ÿ“ ๆจก็‰นๅฎžๆ‹ (Model Photography)
  • ๐Ÿ“ ๆœ่ฃ…้…้ฅฐ (Fashion & Accessories)
  • ๐Ÿ“ ็พŽๅฆ†ๆŠค่‚ค (Beauty & Skincare)
  • ๐Ÿ“ ๅ…ถไป– (Others)

Environment Variables

Set up your AI API credentials:

export GOOGLE_APPLICATION_CREDENTIALS="path/to/your/credentials.json"

Examples

Basic Video Analysis

# Analyze videos in current directory
mixvideo analyze ./videos

# Analyze with custom output directory
mixvideo analyze ./raw-videos -o ./organized-videos

# Use GPT-4 mode with higher confidence
mixvideo analyze ./videos --mode gpt4 --confidence 0.8

Generate Jianying Drafts

# Generate draft from video directory
mixvideo generate from-videos ./organized-videos/ไบงๅ“ๅฑ•็คบ

# Generate with custom settings
mixvideo generate from-videos ./videos --title "ๆˆ‘็š„ไบงๅ“่ง†้ข‘" --fps 60 --resolution 4k

# Generate from template
mixvideo generate from-template ./materials -t ./templates/product-template.json

Supported Video Formats

  • MP4, MOV, AVI, MKV
  • WEBM, FLV, WMV, M4V
  • 3GP, TS

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and questions, please visit our GitHub repository.