Thank you, Nicolas.<div><br></div><div>First of all, let me say a few more words about the camera. We are recording video by ourselves (using libav) and we only get a sequence of (bitmaps) from the camera (by the way, its GigE UI-5220SE). I know that in its API there are functions for getting timestamps but at first glance they have nothing to do with the video being recorded.</div>
<div><br></div><div>Speaking about the PTS I thought (after studying FFMpeg tutorial at <a href="http://dranger.com">dranger.com</a>) that these are only sequence numbers needed to correctly display frames which should be decoded in a different order (B-frames). After looking at the Wikipedia page about PTS I figured out that PTS may be indeed linked with real time. Thank you for this particular clue.</div>
<div><br></div><div>Could you please mention which libav-functions should I look at to use those arbitrary PTS?</div><div><br></div><div>And am I right that this stuff is somehow related to variable framerate (VFR)? I am curious because at the moment we are using constant frame rate to record videos (we set it equal to camera framerate). This raised a tough question for us even when we used a single camera: small inaccuracies in from-camera frames timings would not be taken into account when recording constant frame rate video. So using custom timestamps would be a panacea.</div>
<div><br></div><div>One last question is about the correct format for storing arbitrary timestamps. In fact the format we are using now is AVI, so I would like to ask you to suggest formats which are supported by libav* and are capable of storing those timestamps?</div>
<div><br></div><div>Thanks a lot.</div><div>Timour Khanipov.</div><div><br><div class="gmail_quote">2011/11/23 Nicolas George <span dir="ltr"><<a href="mailto:nicolas.george@normalesup.org">nicolas.george@normalesup.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Le tridi 3 frimaire, an CCXX, Timour Khanipov a écrit :<br>
<div class="im">> In our application we are recording several video streams from different<br>
> cameras and we need to synchronize them at replay stage. Besides that we<br>
> have some events which should be linked with specific camera and specific<br>
> time moment. So it would be very useful if there were some sort of<br>
> functionality in libav for writing real timestamps for each frame.<br>
<br>
</div>The PTS is almost exactly that. And, depending on the kind of camera you are<br>
recording from, it may be already set to the timestamp recorded by the<br>
hardware or the driver.<br>
<br>
You just need to make sure you use a format that correctly stores arbitrary<br>
timestamps, unlike AVI for example.<br>
<br>
Regards,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Nicolas George<br>
</font></span><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.11 (GNU/Linux)<br>
<br>
iEYEARECAAYFAk7NNewACgkQsGPZlzblTJPqSgCgqHLCgjRy0/vpq80vKC54WZ0n<br>
CYsAoI9gMc1zSlruu770BTB6OPYvkCzV<br>
=bZMy<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>