Jatin917/riverside-clone
### ð Feature: Generate Edited Video for Client Download
ãªãŒãã³
#13 opened on 2025/07/17
enhancementgood first issuehelp wantednextJSnodejstypescript
Repository metrics
- Stars
-  (4 åã®ã¹ã¿ãŒ)
- PR merge metrics
- Â (PR metrics pending)
説æ
ð¯ Goal
Allow clients to download a fully edited video of their recorded session by merging all individual participant recordings, using backend session metadata (e.g. join/leave times).
ðŠ Context
Each participant's local video/audio is recorded in chunks and uploaded to cloud storage. The backend already tracks:
- Session ID
- Participant IDs
- When each participant joined and left the session
All this info is stored in:
sessionstableparticipantstableparticipant_sessionstable (containsjoined_atandleft_at)
â Acceptance Criteria
-
Create a backend job/process that:
- Fetches all uploaded chunks for a session
- Uses backend metadata to determine layout timeline (who was visible when)
- Merges participant videos into one final
.webmor.mp4 - Stores the final video in cloud storage
- Generates a public or signed URL for the user to download
-
Expose an endpoint or UI link:
GET /sessions/:id/downloadâ triggers or fetches the final video.
ð¡ Notes
- Backend should generate a layout manifest based on
joined_at/left_at - Use
ffmpeg(or similar) to merge and render the final output - Add retry/failure handling if any chunk is missing
ð Related
- Chunk upload handling
- Participant session tracking
- Manifest generation logic