2017-07-25 163 views
0

用ffprobe获得持续时间。如何在视频结束时关闭ffplay?

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

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

ffplay -t '231' test.mp3 

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

回答

0

添加-autoexit

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