Thread: FFMPEG duration
View Single Post
Old 10-24-2017, 10:46 AM  
mikeworks
Confirmed User
 
Join Date: Apr 2010
Posts: 272
FFMPEG duration

When I run /usr/local/bin/ffmpeg -i "video.mp4"

I can see data like: Duration: 00:01:17.92, start: 0.023220, bitrate: 1593 kb/s

I want to use that duration value later on in the ffmpeg command, for example duration/2, so drawtext will show watermark in middle of video.

Anyone know the variable to use to show duration, perhaps some like this %duration%?
mikeworks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote