facebookresearch / facebookresearch/sam2
Unable to Upload Video via Frontend in Docker - "Uh oh, we cannot process this video" Error
- Dominant language
- Jupyter Notebook
- Stars
- 19.9k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
Hello all.
I am seeing an issue with uploading any video, similar to the trouble raised in [361](https://github.com/facebookresearch/sam2/issues/361) where uploading video on the Sam 2 local deployment fails. This previous issue appears to have been [resolved](https://github.com/facebookresearch/sam2/pull/364) but I'm seeing very similar behavior, with an "Uh oh, we cannot process this video" Error for any clip I attempt to upload.
I have tried local backend deployments via both Docker and waitress and have the same issue.
testing an upload to the backend via curl is giving me what looks like a failed upload:
C:\>curl -F "operations={\"query\": \"mutation($file: Upload!){ uploadVideo(file: $file) { path } }\", \"variables\": { \"file\": null } }" -F "map={ \"file\": [\"variables.file\"] }" -F "file=@C:\my_video.mp4" http://localhost:7263/graphql
{"data": null, "errors": [{"message": "'av.video.codeccontext.VideoCodecContext' object has no attribute 'side_data'", "locations": [{"line": 1, "column": 27}], "path": ["uploadVideo"]}]}
Per [364](https://github.com/facebookresearch/sam2/pull/364) I saw that I was running the current strawberry-graphql 0.254.0. I have also tried older versions such as 0.239.0 and removed the `multipart_uploads_enabled=True` parameter, but this hasn't worked either.
Contributor guide
Assessment
This issue has not been assessed yet.