[FFmpeg-user] Converting PTS to seconds

tarun singhal tsinghal18 at gmail.com
Wed May 17 15:34:48 EEST 2017


Hi,

I am able to extract PTS of each frame in a video using mkvtimestamp_v2.

Now since eventually i am trying to find timestamp in seconds of that
frame. Can you please help me how to convert PTS into seconds?

I got to know that mkvtimestamp_v2 provides PTS in timebase of 1/1000 is it
same for all formats of content. How to use this timebase to convert PTS
value to seconds

Regards,
Tarun Singhal

Senior Software Engineer

Accenture - India
( - +91-8105061683 | *  tsinghal18 at gmail.com


More information about the ffmpeg-user mailing list