Look at this video for an explaination of the Short Term Memory, Long Term Memory Working Memory query feature https://x.com/tinycrops/status/1910105664589799515
This application watches a folder for new video recordings from OBS, sends them to Google's Gemini AI for analysis, and builds a dataset of AI-generated labels and descriptions.
- Automatic Video Detection: Monitors a specified folder for new video recordings
- AI Analysis: Sends videos to Gemini for detailed analysis
- Dataset Building: Creates a structured dataset of AI-generated labels
- Web Interface: View and explore the generated dataset
- Node.js 18.x or higher
- Google Gemini API key
- OBS Studio configured to save recordings to a specific folder
- Clone this repository
- Install dependencies:
npm install
- Create a
.env
file in the project root with the following variables:Note: Update the paths to match your system configuration.VITE_GEMINI_API_KEY=your_gemini_api_key_here VIDEO_WATCH_FOLDER=Q:\\ VIDEO_DATASET_FOLDER=C:\\Users\\YourUsername\\video-dataset
-
Start the application:
npm run dev
-
The server will start watching the specified folder for new video recordings
-
Record a video in OBS and save it to the watched folder (Q:\ by default)
-
The application will automatically detect the new video, send it to Gemini for analysis, and add it to the dataset
-
Open your browser to http://localhost:8001 to view the web interface
- The application uses
chokidar
to watch the specified folder for new video files - When a new video is detected, it is uploaded to Google's Gemini AI
- A structured prompt asks Gemini to analyze the video and provide detailed information
- The response is parsed and saved to the dataset folder as a JSON file
- The web interface displays all analyzed videos and their AI-generated metadata
- To modify the prompt sent to Gemini, edit the
DEFAULT_PROMPT
inserver/video-processor.mjs
- To change the watched folder or dataset location, update the environment variables in
.env
/server
: Backend Node.js server code/src
: Frontend React application/server/video-processor.mjs
: Core module for video analysis with Gemini