Ubuntu ffmpeg 无法使用 libx264

Ubuntu ffmpeg can't use libx264

命令

ffprobe rtsp://localhost/myvideo -codec:v libx264 -show_frames -of csv

输出

Failed to set value 'libx264' for option 'codec:v': Option not found

但是libx264好像安装了- sudo apt install libx264-dev:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libx264-dev is already the newest version (2:0.152.2854+gite9a5903-2).

libx264是一个编码器。 ffprobe 仅探测和打印有关现有媒体输入的信息 - 没有指定编码器的范围。删除 -codec:v libx264.