What actually the video_data::timestamp is? How to convert it to unix timestamp?

leyley

New Member
I'm trying to stream the video and audio to an rtc network, so that I write a output plugin to do so, the question is:
I need a unix timestamp(as milliseconds) as PTS, and I found the struct video_data has a member which is called timestamp.
I try to use it, but its not a real timestamp.

So what actually the video_data::timestamp is? How to convert it to unix timestamp?
 
Top