How omrajnexus31173/nexus-cam-studio works
Nexus Cam Studio is a native desktop screen, camera, and audio recorder. The main workflow is to choose sources, preview a shared composition, record with pause/resume, then finalize and save a video. Separate branches support Android camera/microphone streaming, background effects, device diagnostics, and persistent settings. The graph reflects the README and source-index references; unsampled implementations are represented only where documented, and uncertain connections are omitted.
Main entry points: main_window.py Main window · worker.py Recording worker · server.py Phone receiver · frames.py Frame and scene state
Components 26
Desktop workflow
- Main window
app/ui/main_window.py - Setup and settings
app/ui/dialogs.py - Settings store
app/settings/store.py - Region picker
app/ui/region.py
Capture sources
- Device discovery
app/utils/devices.py - Screen capture
app/screen/capture.py - Camera capture
app/camera/capture.py - PC audio capture
app/audio/capture.py
Composition and preview
- Frame and scene state
app/utils/frames.py - Background effects
app/effects/background.py - Shared compositor
app/recorder/compositor.py - Live preview
app/ui/preview.py
Recording pipeline
- Audio session
app/audio/session.py - Pause timeline
app/recorder/timeline.py - Recording worker
app/recorder/worker.py - FFmpeg encoding
app/recorder/ffmpeg.py - Output and resources
app/utils/paths.py
Phone and support
- Phone receiver
app/phone/server.py - Phone networking
app/phone/network.py - Local certificates
app/phone/certificates.py - Phone audio conversion
app/phone/audio.py - Diagnostics
app/utils/diagnostics.py - Pairing QR
app/utils/qr.py
Other components
- Operator
- Android phone
- Saved recording
Connections 36
- Operator → Main window: operates
README.md - Main window → Setup and settings: opens
app/ui/main_window.py - Main window → Settings store: loads and saves
app/ui/main_window.py - Main window → Device discovery: refreshes
app/ui/main_window.py - Device discovery → Screen capture: enumerates
app/utils/devices.py - Device discovery → Camera capture: enumerates
app/utils/devices.py - Device discovery → PC audio capture: enumerates
app/utils/devices.py - Main window → Screen capture: starts capture
app/ui/main_window.py - Main window → Camera capture: starts capture
app/ui/main_window.py - Main window → PC audio capture: starts capture
app/ui/main_window.py - Screen capture → Frame and scene state: stores frames
app/screen/capture.py - Camera capture → Frame and scene state: stores frames
app/camera/capture.py - Main window → Phone receiver: starts receiver
app/ui/main_window.py - Phone receiver → Phone networking: uses networking
app/phone/server.py - Phone receiver → Local certificates: uses certificates
app/phone/server.py - Phone receiver → Phone audio conversion: converts audio
app/phone/server.py - Android phone → Phone receiver: streams audio and video
README.md - Phone receiver → Frame and scene state: stores video frames
app/phone/server.py - Main window → Background effects: selects effect
app/ui/main_window.py - Background effects → Frame and scene state: uses frame utilities
app/effects/background.py - Main window → Shared compositor: configures composition
app/ui/main_window.py - Main window → Frame and scene state: updates scene
app/ui/main_window.py - Live preview → Shared compositor: renders composition
app/ui/preview.py - Main window → Region picker: opens picker
app/ui/main_window.py - Main window → Live preview: shows preview
app/ui/main_window.py - Main window → Recording worker: starts recording
app/ui/main_window.py - Recording worker → Frame and scene state: reads composition
app/recorder/worker.py - Recording worker → Audio session: collects audio
app/recorder/worker.py - Recording worker → Pause timeline: tracks recording time
app/recorder/worker.py - Recording worker → FFmpeg encoding: encodes and muxes
app/recorder/worker.py - Recording worker → Output and resources: creates output
app/recorder/worker.py - FFmpeg encoding → Saved recording: writes recording
README.md - Setup and settings → Pairing QR: displays pairing QR
app/ui/dialogs.py - Setup and settings → Diagnostics: runs checks
app/ui/dialogs.py - Diagnostics → FFmpeg encoding: checks encoder
app/utils/diagnostics.py - Diagnostics → Output and resources: uses data paths
app/utils/diagnostics.py