Skip to content

Commit 50c3f0a

Browse files
authored
Merge pull request #4 from egliette/develop
docs/update_README
2 parents 5b62de8 + 09896bf commit 50c3f0a

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,9 @@ curl -X DELETE "http://localhost:8000/api/streams/camera1"
231231

232232
## 6. TODO
233233

234-
- [x] Handle edge case where the requested time range is currently being recorded
235-
- [x] Handle edge case where the requested time range overlaps on the left with existing recorded videos (start_time < oldest_video_start_time < end_time)
236-
- [x] Allow recording in the future (end time in the future)
237-
- [x] Add route to request from time + duration
238-
- [ ] Update logger to use standard methods
239-
- [ ] Update to async implementation
240-
- [ ] Auto generate documentation
234+
- [ ] Auto generated documentation
235+
- [ ] Add stress test
236+
- [ ] Add perfomance test
237+
- [ ] Add Fallback mechanism for crashed cameras
238+
- [ ] Check number of workers and ffmpeg workers, CPU percentages usage
239+
- [ ] Add Hardware requirements

app/api/routers/video_process.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _get_video_uri(task: VideoProcessTask) -> str:
3636

3737

3838
@router.post("/tasks", response_model=VideoProcessResponse)
39-
async def create_video_task(request: VideoProcessRequest):
39+
def create_video_task(request: VideoProcessRequest):
4040
"""Create a new video processing task (trim/merge)."""
4141
try:
4242
start_time = request.start_time
@@ -70,7 +70,7 @@ async def create_video_task(request: VideoProcessRequest):
7070

7171

7272
@router.get("/tasks", response_model=List[VideoProcessStatus])
73-
async def list_video_tasks():
73+
def list_video_tasks():
7474
"""List all video processing tasks."""
7575
try:
7676
tasks = video_service.list_all_tasks()
@@ -90,7 +90,7 @@ async def list_video_tasks():
9090

9191

9292
@router.get("/tasks/{task_id}", response_model=VideoProcessStatus)
93-
async def get_video_task_status(task_id: str):
93+
def get_video_task_status(task_id: str):
9494
"""Get the status of a specific video processing task."""
9595
try:
9696
task = video_service.get_task_status(task_id)
@@ -109,7 +109,7 @@ async def get_video_task_status(task_id: str):
109109

110110

111111
@router.delete("/tasks/{task_id}")
112-
async def delete_video_task(task_id: str):
112+
def delete_video_task(task_id: str):
113113
"""Delete a specific video processing task by id.
114114
115115
Stops active processing if running, removes pending tasks, and deletes the record.
@@ -127,7 +127,7 @@ async def delete_video_task(task_id: str):
127127

128128

129129
@router.delete("/tasks/{task_id}/video")
130-
async def delete_video_file(task_id: str):
130+
def delete_video_file(task_id: str):
131131
"""Delete the video file associated with a specific task.
132132
133133
Deletes the actual video file from storage (local filesystem or MinIO).

0 commit comments

Comments
 (0)