ffmpeg:无法识别的选项“crf”。拆分参数列表时出错:找不到选项

R S*_*R S 4 video ffmpeg command-line video-editing

我正在尝试并排合并两个视频(如此)。
带有命令的完整日志:

    ffmpeg -i input1.mp4 -i input2.mp4 -filter_complex '[0:v]pad=iw*2:ih[int];[int][1:v]overlay=W/2:0[vid]' -map [vid] -c:v libx264 -crf 23 -preset veryfast output.mp4
ffmpeg version N-90232-g0645698ecc Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.2.0-8ubuntu3.2)
  configuration: --disable-x86asm
  libavutil      56.  8.100 / 56.  8.100
  libavcodec     58. 13.102 / 58. 13.102
  libavformat    58. 10.100 / 58. 10.100
  libavdevice    58.  2.100 / 58.  2.100
  libavfilter     7. 12.100 /  7. 12.100
  libswscale      5.  0.102 /  5.  0.102
  libswresample   3.  0.101 /  3.  0.101
Unrecognized option 'crf'.
Error splitting the argument list: Option not found
Run Code Online (Sandbox Code Playgroud)

但是收到标题中提到的消息。
我有来自 Ubuntu 17.10 存储库的 ffmpeg 版本 N-90232-g0645698ecc。

llo*_*gan 6

ffmpeg不是来自 Ubuntu 17.10 存储库,看起来它是在你的机器上编译的。它缺少--enable-gpl --enable-libx264使用-c:v libx264. 无关,但它--disable-x86asm从来不推荐,因为它会导致缓慢。

您有多种选择来解决这个问题: