DEV Community

Discussion on: RTSP stream to Web Browser using FFMPEG

Collapse
 
tejasvi2 profile image
Tejasvi Shinde • Edited

Hey, try this command to generate timestamp

ffmpeg -i test.mp4 -vf \ "drawtext=fontfile=arialbd.ttf:text='%{pts\:gmtime\:0\:%H\\\:%M\\\:%S}'" test.avi

This produces a stamp in the HH:MM:SS format; you can change it to whatever you'd like, using
strftime