fix: 修复ffmpeg 合并视频尺寸问题

This commit is contained in:
imeepos
2026-02-09 16:32:21 +08:00
parent e15a9d947b
commit ae71d6ab9e
2 changed files with 427 additions and 2 deletions

View File

@@ -40,4 +40,25 @@ py -m twine upload --config-file=.pypirc --repository=coding-pypi dist/*
```bash
uv pip install bowong-modal-functions --index-url=https://<用户名>:<密钥>@g-ldyi2063-pypi.pkg.coding.net/dev/packages/simple
```
已踩坑:
```
原因已经定位:你本机 modal 1.1.4 和这个项目写法不兼容,导致函数没有被注册,所以看起来是“空镜像”。
我本地验证结果:
- modal 1.1.4 下cluster.web 的 registered_functions = 0、registered_web_endpoints = 0
- modal 1.1.1 下:同一代码变成 registered_functions = 1、registered_web_endpoints = 1
- 用 1.1.1 部署时,能正常创建完整函数列表(我已实测成功)
直接可用命令(临时方案):
uv run --with modal==1.1.1 modal deploy -m cluster.app --env dev
你同事能正常部署,大概率就是因为他用的是 1.1.1。
根因代码点是:很多 @app.function 定义放在 with image.imports(): 里面,在你当前版本下不会按预期注册。长期建议是把函数定
义移出这个 with 块,只把 import 留在里面。
```