-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: docker内ffprobe段错误 #864
Comments
#859 我昨晚发过一个issue,确实存在这个问题。当前的docker版本 针对有域名的ffprobe结果 都不正常。 |
这是ffmpeg的问题,有可能是由于构建的版本较低导致,我可以尝试升级。 |
目前Dockerfile里面使用的静态ffmpeg是来自静态glibc的,glibc天生不适合静态编译。如果考虑静态编译建议使用基于musl-libc的alpine,同时能一定程度解决静态glibc导致dns问题。找到一个现成的镜像,可以从这个镜像里面copy出来需要的ffmpeg和ffprobe。 |
收到,感谢你的建议 |
可惜并不支持linux/arm/v7 |
如果是为了多架构支持,建议直接全部切换到alpine linux的docker base image上,ffmpeg 直接通过包管理器 APK 安装 |
官方 docker base image 支持架构:Supported architectures: (more info) |
如果用系统原生cron,找到个例子:https://github.com/keckelt/cron-alpine/blob/master/Dockerfile 可能需要定制一下entrypoint.sh |
应该不影响,dcron和cron的执行命令应该是一样的 |
上一个builder里面的错误看起来是编译Pillow时候缺少zlib依赖,apk add zlib-dev应该就可以了。 现在builder里面用的是ubuntu的,但是运行镜像却是alpine,估计pillow会报错 |
我以为是因为alpine缺少了太多依赖导致,干脆用最全的作为builder了,就怕不止缺少了zlib,还要逐个排查安装 |
还有个 jpeg-dev |
哈哈,我觉得还会有 |
编译终于过了 |
镜像已构建完成并推送,欢迎拉取试用(使用官方镜像命令,代理会有缓存) |
刚拉取最新镜像,完全全新建立的 也运行出现 |
我这会儿拉取也是同样的问题,你解决了嘛 |
已处理,待镜像构建完成后重新拉取 |
最新镜像提示 一些参考 gliderlabs/docker-alpine#437 (comment) |
正常启动了。谢谢。 现在在进行第一次重跑 看看情况如何。 |
Don't skip these steps | 不要跳过这些步骤
Occurrence environment | 触发环境
Bug description | 具体描述
docker内的ffprobe获取一些url的分辨率时存在段错误。
如
在容器内使用apt install ffmpeg重新安装ffmpeg,则没有段错误,获取分辨率正常
Error log | 报错日志
No response
The text was updated successfully, but these errors were encountered: