[FFmpeg-user] FFplay duration switch not working

Stefano Sabatini stefano.sabatini-lala at poste.it
Fri Jun 17 12:21:14 CEST 2011


On date Thursday 2011-06-16 13:19:34 -0500, J. Hendricks encoded:
> Hi. I'm trying to use FFplay to display an image for exactly 5 seconds using
> the -t parameter. For some reason, it does not work.
> 
> Here is an example, using the attached image:
> 
> 
> ffplay -t 5 image.png
> ffplay -t 00:00:05 image.png
> ffplay -t 00:00:05.00 image.png
> 
> These commands display the image indefinitely.
> 
> 
> ffplay -t 5 -autoexit image.png
> ffplay -t 00:00:05 -autoexit image.png
> ffplay -t 00:00:05.00 -autoexit image.png
> 
> These commands flash the image on the screen, but close it immediately after
> rendering the solitary frame.
> 
> 
> As another example, if you're on Windows XP, you can try this:
> 
> ffplay -t 1 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav"
> ffplay -t 00:00:01 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav"
> ffplay -t 00:00:01.00 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav"
> 
> (You could replace the file name with something else to fill the same
> purpose.)

That's not the assumed behavior of -t. -t TIME will make ffplay play
the input file for no more than TIME seconds, then ffplay will stop on
the last frame (and exit if -autoexit is specified).


More information about the ffmpeg-user mailing list