## 事象
`tape`ファイルに`Output demo.mp4`と指定して`vhs`コマンドを実行すると以下のエラー。
```error
ffmpeg version 7.0.1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration: --prefix=/home/tadashi-aikawa/.local/share/mise/installs/ffmpeg/7.0.1
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
Unrecognized option 'crf'.
Error splitting the argument list: Option not found
```
## 原因
[[libx264]]、[[libx265]]、[[libvpx]]を有効にしてビルドされた[[ffmpeg]]ではないから。[[mise]]からデフォルトでインストールした場合、これらのオプションは無効化されている。
## 解決方法
[[libx264]]、[[libx265]]、[[libvpx]]を有効化して[[mise]]のインストールを行う。
```bash
# libx264 (for mp4)
sudo apt install libx264-dev
# libx265 (for mp4) (なくてもいいかも...)
sudo apt install libx265-dev libnuma-dev
# libvpx (for WebM)
sudo apt install libvpx-dev
# --enable-xxx で上記を有効にしてインストール(ビルド)
export ASDF_FFMPEG_ENABLE="libx264 libx265 libvpx gpl"
mise use -g ffmpeg
```
> [!info]
> [[Ubuntuにffmpegをインストール]]
## 参考
<div class="link-card">
<div class="link-card-header">
<img src="https://trac.ffmpeg.org/chrome/common/trac.ico" class="link-card-site-icon"/>
<span class="link-card-site-name">trac.ffmpeg.org</span>
</div>
<div class="link-card-body">
<div class="link-card-content">
<p class="link-card-title">
CompilationGuide/Ubuntu – FFmpeg
</p>
</div>
</div>
<a href="https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu"></a>
</div>