ffmpeg/ffprobe查看音频视频文件信息并输出为json格式,这是一个很实用的功能,特别是外部程序调用并处理音频视频信息时。 相关命令如下: ffprobe -v quiet -print_format json -show_format -show_streams #{source}