[FFmpeg-devel] [FFmpeg-cvslog] vf_drawtext: Add pkt_pos, pkt_duration, pkt_size as variables

Gyan ffmpeg at gyani.pro
Wed Jul 10 23:47:48 EEST 2019



On 11-07-2019 02:01 AM, greg Luce wrote:
>> Yes, but it's not needed. These are constants, so they have to be
>> referenced within a function. There are two suitable ones: e and eif
>>
>> e.g.
>>
>> drawtext=text='pos %{e\:pkt_pos}, dur %{e\:pkt_duration}, size
>> %{e\:pkt_size}'
> Oh my goodness gracious that's amazing! Thanks, I'll try that out now!
> So I guess does that mean %{e\:n} does the same thing as %{n} ?
Almost, e will output as a float, so %{eif\:n\:d} will do the same thing.

Gyan


More information about the ffmpeg-devel mailing list