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

About encoding, codec settings, muxers and filter usage
MathxH
New Cone
New Cone
Posts: 3
Joined: 27 Aug 2015 08:34

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

Postby MathxH » 11 Sep 2015 10:20

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 11 Sep 2015 11:01

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

MathxH
New Cone
New Cone
Posts: 3
Joined: 27 Aug 2015 08:34

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

Postby MathxH » 11 Sep 2015 12:04

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

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

Postby Rémi Denis-Courmont » 11 Sep 2015 13:26

Yes it is possible. With a custom sender and a custom receiver.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests