bleahy
bleahy

Reputation: 123

The -t option of ffplay won't stop playback

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)

Upvotes: 11

Views: 5633

Answers (1)

aergistal
aergistal

Reputation: 31209

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

Upvotes: 21

Related Questions