[FFmpeg-devel] print pts as min:sec
Ulf Zibis
Ulf.Zibis at CoSoCo.de
Wed Jun 26 13:58:37 EEST 2019
Am 26.06.19 um 12:26 schrieb Moritz Barsnick:
> This list is for the development *of* ffmpeg and its libraries. For the
> use of the libraries and the development *with* them, please turn to
> the mailing list "libav-user".
Sorry, if I misunderstood.
I'm in progress to develop a new filter and will provide a patch if I'm
ready. So I'm wrong on this list?
> Regarding your request, you can look at libavfilter/vf_showinfo.c.
> filter_frame() has an av_log() line which should show the calculation
> you are looking for:
>
> av_log(ctx, AV_LOG_INFO,
> "n:%4"PRId64" pts:%7s pts_time:%-7s pos:%9"PRId64" "
> [...]
> av_ts2str(frame->pts), av_ts2timestr(frame->pts, &inlink->time_base), frame->pkt_pos,
Great! Much thanks!
-Ulf
More information about the ffmpeg-devel
mailing list