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?
用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?
添加-autoexit
即
ffplay -autoexit -t '231' test.mp3