How chevy222/ytdlp-ffmpeg-gui works
影栈 is a Tauri desktop video toolbox whose shared-list workflow starts with a URL or local file, resolves metadata, then downloads, transcodes, or merges selected items back into the list. The map includes its UI/command boundary, domain engines, settings and persistence, and login/tool support. Unsampled subsystems are included where the README documents them; edges are limited to excerpted references or explicit README relationships.
Main entry points: commands.rs Tauri commands · probe.rs Metadata probe · exec.rs Process execution · download.rs Download engine
Components 21
Desktop interface
- Unified workbench
ui/app.js
Media workflows
- Metadata probe
crates/core/src/probe.rs - Download engine
crates/core/src/download.rs - Transcode engine
crates/core/src/transcode.rs - Merge engine
crates/core/src/merge.rs
Core foundation
- Items and states
crates/core/src/model.rs - History persistence
crates/core/src/history.rs - Settings
crates/core/src/config.rs - Process execution
crates/core/src/exec.rs - Portable paths
crates/core/src/paths.rs - Runtime logging
crates/core/src/log.rs
Application services
- Tauri commands
src-tauri/src/commands.rs - App state
src-tauri/src/state.rs - Cookie store
crates/core/src/cookies.rs - Tool management
crates/core/src/tool_download.rs - Login flow
src-tauri/src/login.rs
External integrations
- WebView cookie capture
src-tauri/src/login_win.rs - yt-dlp
- FFmpeg tools
- WebView2
Other components
- User
Connections 30
- User → Unified workbench: operates
README.md - Unified workbench → Tauri commands: invokes
README.md - Tauri commands → App state: uses
src-tauri/src/commands.rs - Tauri commands → Metadata probe: parses items
src-tauri/src/commands.rs - Tauri commands → Cookie store: resolves cookies
src-tauri/src/commands.rs - Tauri commands → Download engine: runs downloads
README.md - Tauri commands → Transcode engine: runs transcodes
README.md - Tauri commands → Merge engine: runs merges
README.md - Tauri commands → Items and states: updates items
src-tauri/src/commands.rs - App state → History persistence: persists
src-tauri/src/state.rs - App state → Settings: loads settings
src-tauri/src/state.rs - Metadata probe → yt-dlp: queries URLs
crates/core/src/probe.rs - Metadata probe → FFmpeg tools: probes files
README.md - Metadata probe → Process execution: spawns process
crates/core/src/probe.rs - Download engine → Metadata probe: probes output
crates/core/src/download.rs - Download engine → yt-dlp: downloads media
README.md - Download engine → Process execution: runs process
crates/core/src/download.rs - Transcode engine → FFmpeg tools: encodes media
README.md - Transcode engine → Process execution: runs process
crates/core/src/transcode.rs - Merge engine → FFmpeg tools: joins media
README.md - Merge engine → Transcode engine: normalizes inputs
crates/core/src/merge.rs - Tool management → Process execution: runs installer
crates/core/src/tool_download.rs - Tool management → Portable paths: installs in
crates/core/src/tool_download.rs - Settings → Cookie store: shares host parsing
crates/core/src/config.rs - Login flow → WebView cookie capture: opens login window
src-tauri/src/login.rs - WebView cookie capture → WebView2: hosts login
README.md - Login flow → Tauri commands: resumes parsing
src-tauri/src/login.rs - History persistence → Items and states: stores items
crates/core/src/history.rs - Process execution → Settings: resolves tool paths
crates/core/src/exec.rs - Runtime logging → Portable paths: writes under
crates/core/src/log.rs