[FFmpeg-devel] print pts as min:sec

Paul B Mahol onemda at gmail.com
Wed Jun 26 17:19:54 EEST 2019


On 6/26/19, Ulf Zibis <Ulf.Zibis at cosoco.de> wrote:
>
> 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?

Some questions due to question nature belong to different mailing list.
Is this so hard to grasp?

>
>> 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
>
> _______________________________________________
> 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".


More information about the ffmpeg-devel mailing list