[Libav-user] [newbie] how to extract current timestamp of h264 avi file

Alex Cohn alexcohn at netvision.net.il
Wed Aug 1 06:30:13 CEST 2012


On 31 Jul 2012 21:34, "aa aaaa" <faliakis at yahoo.gr> wrote:
>
> Hello everyone, I am newbie to ffmpeg and I am trying to use it in
project I am working on.
>
> I am using OpenCv but the standar functions give wrong results so I
decided to try with ffmpeg.
>
> So I would like someone to help me out with the steps I need to do in
order to get the timestamp of a frame in a h264 avi file.
>
> for example , I would appreciate advice on how to do it.
>
> Which libraries must I use, and which steps or procedure must I do.
>
> Steps I mean something lik
>
> 1.load the video
> 2.parse video frame by frame
> 3.use command to get the timestamp.
>
>
> Any piece of code would be great to help me understand better.
>
> So thank everyone in advance for every info they can give me to solve my
problem.

Start with a classic tutorial http://dranger.com/ffmpeg/tutorial05.html,
look for "frame pts".

BR,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120801/069cff55/attachment.html>


More information about the Libav-user mailing list