ASP SCREEN RECORDER — TRADING EDITION
======================================
Windows 10 / Windows 11, Python 3.11 or newer.

WHAT IS INCLUDED
- asp_screen_recorder.py : complete open source GUI application
- install_ffmpeg.ps1 : download FFmpeg to tools folder
- run_source.bat : open Python version
- build_windows.bat : create Windows .exe via PyInstaller
- tools folder : FFmpeg placed here after install

INSTALL AND BUILD ON YOUR WINDOWS COMPUTER
1. Install Python 3.11+ from https://www.python.org/downloads/windows/
   During setup, tick "Add python.exe to PATH".
2. Extract this ZIP folder to your PC.
3. In this folder, right-click install_ffmpeg.ps1 and choose Run with PowerShell,
   OR open PowerShell in this folder and run:
      powershell -ExecutionPolicy Bypass -File .\install_ffmpeg.ps1
4. Double-click run_source.bat to run directly.
5. Double-click build_windows.bat to generate:
      dist\ASP Screen Recorder.exe
   Keep dist\tools\ffmpeg.exe together with the EXE.

RECORDING
- Choose Full screen or Selected area.
- Select 30 or 60 FPS, and Original/1080p/720p resolution.
- Refresh audio and camera devices.
- Select Microphone / System audio (Stereo Mix) / Webcam overlay if available.
- Press START RECORDING, then PAUSE / RESUME as needed, then STOP & SAVE.
- MP4 files are saved in Videos\ASP Recordings unless changed.

NOTES
- The application records the screen; it DOES NOT upload or stream your video.
- Desktop audio capture depends on a Windows DirectShow loopback device such as
  Stereo Mix. If not available, enable it under Sound > Recording devices or
  use compatible audio loopback hardware/software. Some PCs don't support it.
- Webcam overlay requires a DirectShow webcam and may fail with incompatible
  camera drivers. Select "None" for a screen-only recording.
- Recording uses FFmpeg gdigrab on Windows, with H.264 video and optional AAC audio.
- Pausing closes a segment; resuming starts a new segment. On STOP, recorded
  segments are joined into a single MP4 file. Avoid changing monitor
  resolution or audio/camera device settings mid-recording.
- Some FFmpeg builds do not support every DirectShow input/encoder. Inspect
  the ffmpeg.log path displayed in an error message when capture fails.
- 1080p means *maximum height* (does not upscale a smaller screen).
- 720p always scales to height 720, and may enlarge a smaller capture.
- 60 FPS may require a powerful CPU; use 30 FPS for smoother performance.
- Windows protected content and DRM windows may appear black.
- Be careful not to expose private account info, wallet balances, passwords,
  exchange API keys, or notifications while recording trading charts.

LEGAL
This program launches a separate FFmpeg executable; FFmpeg is an independent
open-source project and carries its own copyright/license obligations.
See https://ffmpeg.org/legal.html before redistributing FFmpeg binaries.
PyInstaller is used solely to package the application's Python code.

TROUBLESHOOT
- FFmpeg not found: run install_ffmpeg.ps1.
- Screen not recorded: check folder permissions, stop other screen recorders.
- No desktop sound: enable/choose Stereo Mix or other DirectShow loopback.
- Audio device or camera errors: Refresh Devices and retry with None.
- The application is designed and packaged for Windows. EXE must be built
  on Windows (the included ZIP is source, not a prebuilt Windows executable).
