小编Ben*_*min的帖子

ffprobe show_entries 的条目名称使用分号

我正在探索一个视频文件以获取一些基本信息。例如,以下使用 show_entries 标志来指定必要的数据。

> ffprobe -v error -show_entries format=size,duration:stream=codec_name,bit_rate video.mp4
Run Code Online (Sandbox Code Playgroud)

我还需要获取 TAG:rotate 条目,但这不起作用,因为分号与 show_entries 标志的语法混合在一起。

> ffprobe -v error -show_entries format=size,duration:stream=codec_name,bit_rate,TAG:rotate output.mp4
No match for section 'rotate'
Failed to set value 'format=size,duration:stream=codec_name,bit_rate,TAG:rotate' for option 'show_entries': Invalid argument
Run Code Online (Sandbox Code Playgroud)

有没有办法修复语法?唯一的其他解决方案是不指定单个条目而只获取所有数据。

ffmpeg ffprobe

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

ffmpeg ×1

ffprobe ×1