ai-video-generator icon indicating copy to clipboard operation
ai-video-generator copied to clipboard

Error: Failed to generate video

Open kumarshantanu opened this issue 7 months ago • 1 comments

I ran the app as suggested in the README (I have Docker+compose, Python/3, Go/1.24 installed on Ubuntu 24.04 on an AMD box with RTX 4060Ti and Nvidia drivers installed/configured to use with Docker/Ollama):

make start

Ran the Curl:

curl --location 'http://localhost:8080/api/v1/generate' \
--header 'Content-Type: application/json' \
--data '{
    "message": "Tell me a story about Bahia"
}'

Response:

{"error":"Failed to generate video"}

Logs in make start terminal:

...
ollama-1  | INFO [main] model loaded | tid="130336644931712" timestamp=1745164759
ollama-1  | time=2025-04-20T15:59:19.224Z level=INFO source=server.go:630 msg="llama runner started in 2.64 seconds"
ollama-1  | [GIN] 2025/04/20 - 15:59:43 | 200 | 26.676129407s |      172.18.0.3 | POST     "/api/generate"
worker    | 2025/04/20 16:00:22 Error executing command python: exit status 1
worker    | 2025/04/20 16:00:22 Argumentos video [./scripts/captions.py attach /tmp/ai-video-generator3517024686/cropped-length-video.mp4 dscqkyk.mp4]
worker    | {"time":"2025-04-20T16:00:22.793881401Z","level":"ERROR","prefix":"echo","file":"generate.go","line":"31","message":"Failed to generate video: error executing runAutocap: error running autocap: exit status 1"}
worker    | {"time":"2025-04-20T16:00:22.793917291Z","id":"","remote_ip":"172.18.0.1","host":"localhost:8080","method":"POST","uri":"/api/v1/generate","user_agent":"curl/8.5.0","status":500,"error":"","latency":66225696356,"latency_human":"1m6.225696356s","bytes_in":48,"bytes_out":37}
ollama-1  | [GIN] 2025/04/20 - 16:02:03 | 200 | 26.099070309s |      172.18.0.3 | POST     "/api/generate"
worker    | 2025/04/20 16:02:46 Error executing command python: exit status 1
worker    | 2025/04/20 16:02:46 Argumentos video [./scripts/captions.py attach /tmp/ai-video-generator831814476/cropped-length-video.mp4 hcrrrhi.mp4]
worker    | {"time":"2025-04-20T16:02:46.632331041Z","level":"ERROR","prefix":"echo","file":"generate.go","line":"31","message":"Failed to generate video: error executing runAutocap: error running autocap: exit status 1"}
worker    | {"time":"2025-04-20T16:02:46.632352501Z","id":"","remote_ip":"172.18.0.1","host":"localhost:8080","method":"POST","uri":"/api/v1/generate","user_agent":"curl/8.5.0","status":500,"error":"","latency":69415037596,"latency_human":"1m9.415037596s","bytes_in":50,"bytes_out":37}

What am I missing?

kumarshantanu avatar Apr 20 '25 16:04 kumarshantanu