linux - 无法识别的选项 '-enable-libx264' 。拆分参数列表时出错 : Option not found

标签 linux ffmpeg

我正在尝试将 MP4 视频从我的服务器流式传输到 YouTube,因此我安装了 FFMPEG 版本。然后,当我查看 FFMPEG 的配置时,我会看到以下内容:

ffmpeg version 3.3.6 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --enable-cross-compile --arch=i686 --target-os=linux --disable-yasm --disable-static --enable-shared --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libsoxr --enable-version3 --enable-nonfree --enable-openssl --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-decoder=eac3 --disable-decoder=dca --disable-decoder=truehd --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-encoder=dca --disable-decoder=hevc --disable-decoder=hevc_cuvid --disable-encoder=hevc_nvenc --disable-encoder=nvenc_hevc --extra-ldflags='-L/root/daily_build/64_05/4.4.1/LinkFS/usr/lib -L/root/daily_build/64_05/4.4.1/Model/TS-X72/build/RootFS/usr/local/medialibrary/lib -Wl,--rpath -Wl,/usr/local/medialibrary/lib' --extra-cflags='-I/root/daily_build/64_05/4.4.1/LinkFS/usr/include -I/root/daily_build/64_05/4.4.1/Model/TS-X72/build/RootFS/usr/local/medialibrary/include -D_GNU_SOURCE -DQNAP' --prefix=/root/daily_build/64_05/4.4.1/Model/TS-X72/build/RootFS/usr/local/medialibrary
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100

但是,当我尝试
ffmpeg ---enable-libx264
然后我收到一条错误消息:
Unrecognized option '--enable-libx264'.
Error splitting the argument list: Option not found

我是否需要以某种方式更改 FFMPEG 的配置或首先运行另一个配置选项,或者我的调用是否有问题以启用 libx264?

最佳答案

您正在使用不支持 libx264 的版本(如 Nikos 提到的)(这也相当旧)

您必须使用所需的编解码器重新编译它。

您可以尝试使用以下脚本,或者自己编译。

我建议因为需要自己构建,如果您有最近的 NVIDIA 卡 --enable-nvenc 并使用 h264_nvenc 而不是 libx264 进行编码以减少 CPU 开销,您还需要添加对硬件编码器/解码器的支持。

最后的想法 - OBS 会满足您的需求吗?

OBS 流媒体信息

https://www.digitaltrends.com/computing/how-to-live-stream-on-youtube-with-obs/

编译资料..

https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

脚本

https://gist.github.com/silverkorn/db5451f836e2bf9dea2a8358475eb5f4

关于linux - 无法识别的选项 '-enable-libx264' 。拆分参数列表时出错 : Option not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60579432/

相关文章:

linux - Scapy 不发送具有全局范围目标地址的 IPv6 数据包

ffmpeg - 使用 AWS MediaConvert 根据视频大小生成缩略图数量

node.js - Heroku Discord.js ffmpeg

c++ - FFmpeg 不关闭输出文件

linux - 使用 unix 命令 "watch"的颜色?

linux - 如何将 vim 设置为默认的 cscope 编辑器?

linux - 请调试 SSH 代理命令,它无法在 PuTTY 上使用多跳 SSH 连接远程服务器

linux - 在虚拟机上使用 fork() 远程启动程序

video - libdash mpd 解析器与自定义播放器的集成

audio - 在 ffmpeg 中混合音轨的文件上添加另一个音频