Retrieving timestamp in RTP/RTSP
c++, ffmpeg, libav, rtp, rtsp
Solution
Finally I solved the problem.
I had to catch the RTSPState from the context, in order to get the RTSPStream array and get the video one, and after that get the RTPDemuxContext which contains the timestamp.
Problem
I am using libav/ffmpeg for connecting to IP cameras. I do need to extract the absolute timestamp from the frames, not pts/dts. How can I have this value? Using Wireshark I can see the following response from the camera (Axis P1355): RTP-Info: url=rtsp://xxx.dyndns.org:4378/axis-media/media.amp/trackID=1?fps=4&resolution=1280x720&compression=60;seq=32446;rtptime=3287715479\r\n