Quick Start: Live Session Recording
30-Second Setup
What You Need
- β USB camera connected
- β Logged into NETRA
- β Any detection model selected
Record a Session
1. Open "Live Camera" tab
2. Check 1+ detection models (required)
3. Click "π¬ Start Camera"
β Recording starts automatically
β See "Recording live session..." message
4. Let it run 30+ seconds (or as long as needed)
5. Click "βΉοΈ Stop Camera"
6. Click "Yes" to confirm
7. Done! β
Session saved
Find Your Sessions
Same "Live Camera" tab:
β Scroll down to "π― Recent Detections"
β See thumbnails of your recorded sessions
β Most recent at top
β Click to view or download
What Gets Saved
| Item | What It Is |
|---|---|
| MP4 Video | Full recording with AI overlays (boxes, labels) |
| Thumbnail | First frame as preview image |
| Duration | How long you recorded (in seconds) |
| Detections | Count of all detected objects |
| Alerts | Count of triggered alerts |
| Timestamp | When session was created |
Where It's Stored
After you stop recording:
Server: webapp/processed/sessions/user_[yourID]/
βββ session_20260503_120000_abc.mp4 β Your video
βββ preview_20260503_120000_abc.jpg β Thumbnail
βββ ... (more sessions)
Database: LiveSession table records all metadata
Persistent: Survives logout/login
Common Actions
"How do I download a session?"
1. Find session in Recent Detections
2. Right-click thumbnail or video link
3. Select "Save video as..."
4. MP4 downloads to Downloads folder
"Where are my old sessions?"
1. Login to NETRA
2. Open "Live Camera" tab
3. Scroll to "Recent Detections"
4. ALL your sessions appear there (newest first)
5. Sorted by date recorded
"Can I share a session?"
Currently: No direct share feature
Workaround: Download MP4 and email/upload manually
Future: Cloud sharing coming soon
"How much disk space?"
Per hour of recording:
640x480: ~300 MB
1280x720: ~600 MB
1920x1080: ~1.2 GB
Monitor: webapp/processed/sessions/ folder size
"Why do I see timestamp error?"
Fixed! β
Error was: "Invalid isoformat string: '2026-05-03T09:06:30.890Z'"
Cause: Browser timezone format
Solution: Now handled automatically
Action: Just use normally, no action needed
Status Indicators
While Recording
- β "Recording live session..." (green/info badge)
- β Detections shown in real-time
- β Camera feed visible
When Saved
- β "Session saved!" message
- β Thumbnail appears in Recent Detections
- β Session shows: Duration β±οΈ, Detections π―, Alerts π¨
If Critical
- π¨ RED "CRITICAL INCIDENT" badge
- π¨ Means: weapons, violence, or anomalies detected
- π¨ Flag for immediate review
Troubleshooting
Session Not Recording
Check:
1. β USB camera connected and working?
2. β At least one model selected?
3. β Browser showing "Recording live session..."?
4. β Free disk space available?
If no "Recording" message: See browser console (F12)
Session Doesn't Appear in Recent Detections
Try:
1. Refresh the page (Ctrl+R or Cmd+R)
2. Logout and login again
3. Wait 5 seconds for database to sync
4. Check Recent Detections scroll area
Video Plays but Looks Wrong
If no overlays (boxes/labels):
- Recording might have been cut short
- Ensure camera runs fully before stopping
If stutters/lags:
- Normal for slow internet/old computer
- MP4 still fully saved and playable
If won't play:
- Browser might not support MP4
- Try different browser (Chrome recommended)
- Or download and play with VLC player
Sessions Take Up Too Much Space
Cleanup:
1. Go to webapp/processed/sessions/
2. Sort by date modified
3. Delete old user_[id]/ folders
4. Keep recent ones you need
Tip: Compress old sessions first:
- Right-click folder β Compress to ZIP
- Move ZIP to external drive
- Delete original folder
Tips & Tricks
Best Practices
- β Record full sessions (don't stop/start repeatedly)
- β Run 1-2 minute test first to verify recording works
- β Clean up old sessions monthly
- β Download critical recordings as backup
Performance Tips
- β Close other tabs/apps for smoother recording
- β Use 640x480 for fast recording, 1920x1080 for detail
- β Check "Processed Sessions" folder size periodically
- β Archive sessions older than 30 days
Security Tips
- β Keep login password strong
- β Logout when done (others can see sessions if logged in)
- β Don't record sensitive areas without consent
- β Delete recordings not needed for compliance
What's Different from Before?
Before
- β Live camera only for monitoring
- β No recording available
- β Detections only in gallery, not saved
After
- β Auto-records every session
- β Full MP4 with all overlays
- β Persistent storage
- β Download anytime
- β Survives logout/login
- β Detections metadata preserved
System Requirements
- Browser: Chrome, Firefox, Safari, Edge
- Camera: Any USB camera (webcam, IP camera, etc.)
- Storage: 500 MB - 1 GB per hour recommended
- Internet: Needed for upload, optional for playback (local)
Quick Reference
| Need | How To |
|---|---|
| Start recording | "Live Camera" β "Start Camera" |
| Stop recording | "Stop Camera" β Confirm |
| View sessions | Scroll to "Recent Detections" |
| Download video | Right-click thumbnail β Save |
| Delete session | Delete folder in webapp/processed/sessions/ |
| Find old session | Login β Live Camera β Recent Detections |
Support
- π Full guide: See LIVE_SESSION_RECORDING.md
- π§ Technical details: See LIVE_SESSION_IMPLEMENTATION.md
- π Issues: Check browser console (F12 β Console tab)
- πΎ Disk space: Monitor webapp/processed/sessions/
π¬ Ready to record? Start the camera now! π