How openshot/openshot-qt works
OpenShot is a desktop video editor. Users assemble media on a multitrack timeline, edit clips and effects, preview the result, then export a rendered video; the README also documents titles, animation, audio, format interchange, and experimental hardware acceleration. The graph includes the application shell, editing and preview surfaces, AI generation, and the agent-based editing/export path. Source-index references and excerpts establish only some connections; unsampled feature modules are shown without guessed wiring.
Main entry points: app.py Application · main_window.py Main window · host.py Agent host · service.py Editing commands
Components 20
Application shell
- Application
src/classes/app.py - Main window
src/windows/main_window.py - Project data
src/classes/project_data.py - Theme manager
src/themes/manager.py
Editing and preview
- Timeline editing
src/windows/views/timeline_backend/qwidget/base.py - Project queries
src/classes/query.py - Playback preview
src/windows/preview_thread.py
Media and generation
- Format interchange
src/classes/importers - Text and titles
src/classes/direct_text.py - AI generation
src/classes/generation_service.py - Generation service
src/classes/comfy_client.py
Agent and export
- Agent host
src/classes/agent/host.py - Editing commands
src/classes/agent/service.py - Agent protocol
src/classes/agent/protocol.py - Export validation
src/classes/agent/export_check.py - Render timeline
src/classes/agent/render.py - Export worker
src/classes/agent/export_worker.py
Platform services
- Qt binding
src/qt_api.py - Theme base
src/themes/base.py
Other components
- Editor user
Connections 15
- Editor user → Application: uses
- Application → Main window: shows
src/classes/app.py - Application → Project data: creates
src/classes/app.py - Application → Theme manager: instantiates
src/classes/app.py - Application → Agent host: starts
src/classes/app.py - Theme manager → Theme base: applies themes
src/themes/manager.py - Agent host → Editing commands: uses
src/classes/agent/host.py - Agent host → Agent protocol: uses
src/classes/agent/host.py - Editing commands → Project queries: queries project
src/classes/agent/service.py - Editing commands → Agent protocol: uses
src/classes/agent/service.py - Export worker → Render timeline: builds timeline
src/classes/agent/export_worker.py - Export worker → Export validation: checks settings
src/classes/agent/export_worker.py - AI generation → Generation service: uses client
src/classes/generation_service.py - Main window → Timeline editing: offers editing
- Main window → Playback preview: offers preview