Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The -t option of ffplay won't stop playback

Tags:

ffmpeg

Just getting started with ffmpeg and ffplay. I do this: ffplay -t 5 somesong.mp3 and it gets to about 5 seconds and then just starts making a clicking noise?

I'm using the latest version I just downloaded from their site.

(Windows 7 64-bit)

like image 411
bleahy Avatar asked Apr 27 '15 03:04

bleahy


1 Answers

To make ffplay exit automatically when the maximum duration is reached you need to use the autoexit option, otherwise it just cuts the input and waits:

ffplay -autoexit -t 5 somesong.mp3

like image 151
aergistal Avatar answered Sep 21 '22 03:09

aergistal