[FFmpeg-devel] [PATCH] lavfi/drawtext: Add localtime_ms for millisecond precision

Lingjiang Fang vacingfang at hotmail.com
Thu Jun 17 08:11:25 EEST 2021


On Wed, 16 Jun 2021 10:52:31 +0800
Steven Liu <lq at chinaffmpeg.org> wrote:

> > 2021年6月16日 上午9:56,Lingjiang Fang <vacingfang at hotmail.com>
> > 写道:
> > 
> > On Tue, 15 Jun 2021 11:42:44 +0800
> > Steven Liu <lingjiujianke at gmail.com> wrote:
> >   
> >> Thilo Borgmann <thilo.borgmann at mail.de> 于2021年6月15日周二
> >> 上午3:14写道:  
> >>> 
> >>> Am 08.06.21 um 18:42 schrieb Thilo Borgmann:    
> >>>> Hi,
> >>>> 
> >>>> add %{localtime_ms} function to the drawtext filter. Same as
> >>>> %{localtime} but with additional millisecond part.    
> >>> 
> >>> Ping for a volunteer to actually have a look at the patch for
> >>> review.    
> >> lgtm  
> > it has similar function with a previous patch from Zhao Zhili, but
> > is more unified with current logic, thank you all for adding this
> > 
> > I think it's very useful to adding millisecond timestamp at source
> > frames, makeing detecting frame lost, reorder, repeat much easier.
> > 
> > Hoping this patch can be merged soon :)
> > 
> > BTW, if we has an OCR filter to extract this, it will be perfect :)
> >  
> Do you mean : libavfilter/vf_ocr.c ?
yes, vf_ocr is almost what I want, but need a little bit improve,
supporting specify a sub region of the image, because I just want to
know the timestamp on it, not the content of the image : )

I am working on it, demo can work now

> >   
> >>   
> >>> 
> >>> Thanks,
> >>> Thilo
> >>> _______________________________________________
> >>> ffmpeg-devel mailing list
> >>> ffmpeg-devel at ffmpeg.org
> >>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >>> 
> >>> To unsubscribe, visit link above, or email
> >>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".    
> >> 
> >> Thanks
> >> Steven
> >> _______________________________________________
> >> ffmpeg-devel mailing list
> >> ffmpeg-devel at ffmpeg.org
> >> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> >> 
> >> To unsubscribe, visit link above, or email
> >> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".  
> > 
> > 
> > 
> > Regards,
> > Lingjiang Fang
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> > 
> > To unsubscribe, visit link above, or email
> > ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".  
> 
> Thanks
> 
> Steven Liu
> 
> 
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".



Regards,
Lingjiang Fang


More information about the ffmpeg-devel mailing list