M
M
MrDudi2019-12-07 18:19:01
fmpeg
MrDudi, 2019-12-07 18:19:01

FFMPEG and output current video time?

How can ffmpeg overlay a video on how long the video is.
Let's start at the bottom to show the counter how long the video is and how long it should go.
Example: 0:12:58 - 1:58:00
0:12:58 - how much time has passed
1:58:00 - total video time
Or something similar.
Making ffmpeg on linux console

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bushwick, 2020-02-20
@bushwick

You can use the drawtext filter. It supports the timecode function, which allows you to display how much time has passed.

-vf drawtext="fontsize=15:fontfile=/Library/Fonts/DroidSansMono.ttf:\
timecode='00\:00\:00\:00':rate=25:text='TCR\:':fontsize=72:fontcolor='white':\
boxcolor=0x000000AA:box=1:x=10:y=10"

Link might be helpful: https://ffmpeg.org/ffmpeg-filters.html#drawtext-1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question