harbor run -t openthoughts/tasktrove-exp-rpt-stack-dockerfile-gpt5mini-v3-stack-dockerfile-gpt4o-8798harbor download openthoughts/tasktrove-exp-rpt-stack-dockerfile-gpt5mini-v3-stack-dockerfile-gpt4o-8798Create a small Node.js video-processing service in /app that accepts an uploaded video, uses ffmpeg (installed in the environment) to produce an adaptive HLS (multiple-bitrate) output, stores the result under /media/output, and serves that output over HTTP.
Requirements
Expected behavior / test examples
After starting the service (npm start), the following curl command uploads a sample video and triggers processing:
curl -F "file=@/path/to/sample.mp4" http://localhost:3000/convert
Successful response (HTTP 200): { "master": "/output/9f3a2b/master.m3u8", "files": ["master.m3u8","360/seg0001.ts","360/index.m3u8","480/index.m3u8","720/index.m3u8"] }
The master playlist should be playable by a video player that supports HLS (point it at http://localhost:3000/output//master.m3u8).
If ffmpeg fails, the server should return an error and not leave a partial upload file in /app/uploads (clean up the uploaded file).
Hints / implementation notes
Acceptance criteria (automated or manual)