小编Neo*_*les的帖子

FFMPEG - 将FFPROBE的持续时间输出存储为变量

我想在(t = 0,0)之间的"enable ="字段中使用视频的持续时间,以确保每次以视频持续时间的1/3覆盖图像.

根据FFMPEG在其网站上的信息,我需要使用它

ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 input.mp4
Run Code Online (Sandbox Code Playgroud)

它确实返回一个值,但我似乎无法将其设置为可用的变量,我已经尝试过使用

set duration=ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 input.mp4
Run Code Online (Sandbox Code Playgroud)

然后通过%duration%引用它,但没有运气.

有没有办法做到这一点,我做错了什么?

谢谢您的帮助.

video command-line cmd ffmpeg

2
推荐指数
1
解决办法
1280
查看次数

标签 统计

cmd ×1

command-line ×1

ffmpeg ×1

video ×1