命令
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
。