zoukankan      html  css  js  c++  java
  • ffmpeg 处理 http/https 文件时报 Segmentation fault (core dumped) 错误

    操作系统为 CentOS Linux release 8.4.2105

    ffmpeg 为 https://johnvansickle.com/ffmpeg 上下载的预编译程序,在处理 http/https 应用时报了  Segmentation fault (core dumped) 错误。

    经多番查找在 stack overflow 上找到相关贴子: 

    https://stackoverflow.com/questions/60528501/ffmpeg-segmentation-fault-with-network-stream-source

    总结如下:

    在 ffmpeg  的网站上,有构建说明, https://johnvansickle.com/ffmpeg/release-readme.txt 

    里面提到:

         Notes:  A limitation of statically linking glibc is the loss of DNS resolution. Installing
                 nscd through your package manager will fix this.
    
                 The vmaf filter needs external files to work- see model/000-README.TXT

    就是说 ffmpeg 的 DNS 解析需要 nscd 这个服务才能正常。

    所以解决方案有这么几个:
    1. 安装并启动 nscd 服务。

    dnf install nscd
    systemctl enable nscd
    systemctl start nscd

    2. 将 http/https 的 URL 自己手动把其中的域名部分替换成 IP 地址。(对于我来说并不适用于此

    3. 将 http/https 的资源转为本地资源,比如如果是 OSS 的文件的话,可以尝试使用 ossutil 把 OSS bucket 挂载到云主机上


    我用的方案1。

    人不写代码,和咸鱼有什么区别?
  • 相关阅读:
    bzoj4289
    bzoj3033
    bzoj3144
    896C
    bzoj4430
    bzoj4455
    bzoj5117
    BZOJ 1564: [NOI2009]二叉查找树
    BZOJ1261: [SCOI2006]zh_tree
    BZOJ1090: [SCOI2003]字符串折叠
  • 原文地址:https://www.cnblogs.com/kischn/p/15755043.html
Copyright © 2011-2022 走看看