如何在视频结束时关闭ffplay?

时间:2017-07-25 04:40:42

标签: ffmpeg

使用ffprobe获取持续时间。

ffprobe test.mp3 2>&1 | awk -F'[ ,]' '/Duration/{print $4}'
00:03:51.05

使用-t参数设置持续时间。

ffplay  -t '231'  test.mp3

当test.mp3结束时,ffplay命令无法停止 如何在视频结束时关闭ffplay?

1 个答案:

答案 0 :(得分:0)

添加-autoexit,即

ffplay -autoexit -t '231'  test.mp3
相关问题