Page 1 of 1

get video stream the UTC time(presentation time,pts) of every frame

Posted: 11 Sep 2015 10:20
by MathxH
I have Requirement:
Get the UTC time of every video frame and print it to screen with video.

I just check the Document of Libvlc, Maybe It Does not explicitly export the API for getting UTC of every frame. anyway, I cannot find any information about this. so , I just search the issue on stackoverflow and find out that http://stackoverflow.com/questions/2309 ... encv-mat-c http://stackoverflow.com/questions/2645 ... ay-a-frame ,

video-postrender-callback function just passed the presentation time into int64_t pts I saw from above two question on stackoverflow. this paramter pts present what? It is UTC? Can I implement my requirement in this way? Because the live555(libvlc just called this) just do not care about RTP timestamp ,NTP timestamp things like that(http://lists.live555.com/pipermail/live ... 12207.html). I just looked testRTSPClient(this is official Demo on live555)code, and found out that the presentation time is just UTC.

Re: get video stream the UTC time(presentation time,pts) of every frame

Posted: 11 Sep 2015 11:01
by Rémi Denis-Courmont
The UTC timestamp of a video frame was recorded is usually not stored in the media. Therefore, it is impossible for VLC to determine it.

Re: get video stream the UTC time(presentation time,pts) of every frame

Posted: 11 Sep 2015 12:04
by MathxH
reply to @ Rémi Denis-Courmont :

Thank you for your reply. First, I want to ask a Question, Is There another way to get other timestamp or something of every frame(NTP,PTP) to complete the requirement and It could Convert to UTC? and Whats the presentation time in video-postrender-callback function?? presentation time is just UTC Time in live555 Demo(testRTSPClient).

Is there another 3rd-party library to fit my goal?? smaller code and easier understander code could be better, because live555 is too lower in layers and it cannot play video and display it. FFMPEG is better library to fit my goal??

I think there are a lot of solution on the world, Because it need to be display real time(UTC) with video from IP Camera in many fields. Is there OpenSource Demo can do this? if it is, Can you post a link of the project? I need to read the Code.

Re: get video stream the UTC time(presentation time,pts) of every frame

Posted: 11 Sep 2015 13:26
by Rémi Denis-Courmont
Yes it is possible. With a custom sender and a custom receiver.