2017-07-25 89 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