CAPTION STUDIO - SETUP GUIDE  (v1.2.3)
=====================================

A local captioning app for Windows 10/11 and Mac. Your videos never leave your
computer - transcription and rendering both run on your own machine.


FIRST TIME - WINDOWS
--------------------
1. Extract the complete ZIP to a short path, for example:
     C:\CaptionStudio
   Do not run the app from inside the ZIP or from Google Drive preview.

2. Connect to the internet.

3. Double-click SETUP.bat.
   The setup checks or installs Python 3.12, Node.js LTS and FFmpeg, then
   downloads the local transcription and video-rendering components.
   Keep the setup window open until it says "Setup complete".

4. Double-click Caption Studio.vbs.
   The app opens at http://localhost:8756 in your browser.


FIRST TIME - MAC  (Intel or Apple Silicon)
------------------------------------------
1. Unzip the folder somewhere simple, for example your Documents folder.

2. Double-click "Setup Mac.command".
   * macOS may say it cannot be opened: right-click the file -> Open -> Open.
     (Or in Terminal:  xattr -dr com.apple.quarantine <folder>  )
   * It installs Python 3.12, Node.js and FFmpeg through Homebrew if they are
     missing (it asks before installing Homebrew), then the app components.
   * Keep the window open until it says "Setup complete". 5-15 minutes.

3. Double-click "Caption Studio.command".
   A Terminal window opens (keep it open) and the app opens at
   http://localhost:8756 in your browser.

4. To stop: close that Terminal window, or double-click
   "Stop Caption Studio.command".


EVERYDAY USE
------------
1. Drop a reel into the app.
2. Pick Language (Hinglish is the default) and Roman / Native output.
   Pasting the exact spoken script is OPTIONAL - it just makes the words
   perfect and takes ~2 seconds. Without a script the captions are created
   automatically from the audio.
3. Click Transcribe.
4. Fix words if needed, choose a template (89 of them - try "Designer" or the "Animated"
   filter) and a transition.
5. Position the captions: DRAG them in the preview, or use Move X / Move Y and
   Left / Center / Right.
6. Timing: click any word in the Words list to set its exact Start / End, or drag
   the blocks on the timeline under the video.
7. Sound tab: add sound effects (built-in or your own mp3 / wav) on the timeline.
8. Export MP4.


AUTO-CAPTION TIPS
-----------------
* "Speed: Accurate" on the first screen uses a bigger speech model - better words,
  slower on computers without an NVIDIA graphics card.
* For the cleanest Hinglish add a free Gemini key (Gmail only, see below) - the app then
  corrects the spelling automatically right after transcribing.


OPTIONAL BUT RECOMMENDED: FREE AI (GMAIL LOGIN)
----------------------------------------------
The app works without any account. For much better automatic captions, add a FREE
Google Gemini key (needs only a Gmail account, no card):
  1. In the app click "AI Settings" (top right) -> "Key kahan se milegi".
  2. Log in with Gmail on the Google AI Studio page, click "Create API key", copy it.
  3. Paste it in the app and click "Save & test".
Gemini then listens to the audio, writes the Hinglish words, and fixes the spelling.
(ChatGPT / Claude free chat accounts cannot be used by other apps; their paid API
keys also work in the same box if you have one.) The key is stored in your user
folder (~/.caption-studio), never inside the app folder.


STOPPING THE APP (Windows)
--------------------------
Double-click Stop Caption Studio.bat.


IMPORTANT
---------
- The first transcription can be slower because the speech model downloads.
- Preview/export uses Google Fonts and needs internet access.
- Setup and models need several GB of free disk space.
- CPU transcription can take longer on older computers; an NVIDIA GPU is used
  automatically when available.
- Uploaded and rendered files are stored temporarily in the "work" folder inside
  the app folder. Old job files are cleaned when a later transcription starts.


TROUBLESHOOTING
---------------
- Windows: if setup says winget is missing, install "App Installer" from the
  Microsoft Store. If a newly installed tool is not found, restart Windows and run
  SETUP.bat again.
- Mac: if a .command file will not open, right-click -> Open. If Homebrew install
  fails, install it from https://brew.sh and run "Setup Mac.command" again.
- If localhost does not open, run start.bat (Windows) / "Caption Studio.command"
  (Mac) to see the error log.
- If port 8756 is already in use, run the Stop script, then start again.
- Keep the folder path short. Very long paths can cause Node installation errors.
- First export: keep the internet on - it downloads the rendering browser once (~100 MB).
  If antivirus removed it, the next export downloads it again automatically.
