Re: [FFmpeg-user] Float formatting in drawtext (Stop watch)

2017-05-29 Thread Wolfgang Hugemann
With a little more research (and somewhat more knowledge about ffmpeg) I came to the following solution for a stopwatch with a defined decimal precision: * get the framerate via ffprobe and store it in a variable (i.e. !W!) * divide the frame number by this rate * display the result in two

Re: [FFmpeg-user] Float formatting in drawtext

2017-02-03 Thread Wolfgang Hugemann
I have just had a look at the solution via subtitles: Pro: * It works and the SRT format is simple enough to be written by a script. Cons: * SRT subtitles are written time-based and not frame-based, which takes some calculations, starting the subtitles shortly before the frame and ending it

Re: [FFmpeg-user] Float formatting in drawtext

2017-01-27 Thread Moritz Barsnick
On Fri, Jan 27, 2017 at 11:05:04 +0100, Wolfgang Hugemann wrote: > So possibly there is another way to acchieve this? Could I for example > store a string in a user-defined frame-wise variable and display its > value by drawtext as is done when deciphering the VITC: I didn't take much of a look

Re: [FFmpeg-user] Float formatting in drawtext

2017-01-27 Thread Wolfgang Hugemann
OK, maybe I put my question the wrong way: I would like to display a stop watch starting at an arbitrary time in the video (usually the collision of two cars for accident reconstruction purposes). This can obviously be done via drawtext and pts, but the result looks nasty, and I seem to have