[Live-devel] How framerate is passing to rtsp client
Paweł Domagalski
pawel.domagalski at mobica.com
Thu Mar 31 09:17:20 PDT 2016
Thanks for quick response.
Yes, there should be 110000. I have tested a few values and I left last
one by mistake. I am using camera so next frame never arrives earlier,
so this value doesn't matter.
I changed my code by adding non valid values
fPresentationTime.tv_sec = 1;
fPresentationTime.tv_usec = 1;
fDurationInMicroseconds = 1;
and rtsp client test have displayed valid values:
Stream "rtsp://192.168.1.82:8554/testStream/"; video/H264: Received
11132 bytes. Presentation time: 567993652.434189
Stream "rtsp://192.168.1.82:8554/testStream/"; video/H264: Received
12241 bytes. Presentation time: 567993652.474189
Stream "rtsp://192.168.1.82:8554/testStream/"; video/H264: Received
12237 bytes. Presentation time: 567993652.514189
Stream "rtsp://192.168.1.82:8554/testStream/"; video/H264: Received
12093 bytes. Presentation time: 567993652.554189
Stream "rtsp://192.168.1.82:8554/testStream/"; video/H264: Received
11752 bytes. Presentation time: 567993652.594177
I am curious what time is printed above. Is it packet delivery time from
my PC ? I expected something like this:
Stream "rtsp://192.168.1.82:8554/testStream/"; video/H264: Received
11132 bytes. Presentation time: 1.1
Stream "rtsp://192.168.1.82:8554/testStream/"; video/H264: Received
11132 bytes. Presentation time: 1.1
Seems like fPresentationTime is not used to build rtp response. I
suspected that every rtp packet should be timestamped.
BR
Paweł
On 31/03/16 16:31, Ross Finlayson wrote:
>> I am using testOnDemandRTSPServer example code from live555. I have wrote my implementation of DeviceSource class. I have set presentation time properly:
>>
>> gettimeofday(&fPresentationTime, NULL);
>> fDurationInMicroseconds = 1100000;
> That’s your problem. You’re telling the server to wait 1100000 microseconds - i.e., 1.1 seconds - between sending each NAL unit. I think you mean 110000 (or perhaps, to be more accurate: 111222).
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
--
Paweł Domagalski
Software Engineer
Mobica Ltd.
www.mobica.com
Mobica is a provider of innovative, cutting-edge software engineering, testing and consultancy services. Based in the UK, Poland, the USA and Mexico, Mobica has a worldwide customer base and a proven track record in delivering complex solutions to global leaders in a range of sectors including automotive, mobile, semiconductor, finance, TV & broadcasting, telecommunications, connected devices, marine and aviation.
Mobica Limited is a limited company registered in England and Wales with registered number 05169596 and VAT registered number 845117630. Our registered office is at Crown House, Manchester Road, Wilmslow, Cheshire, SK9 1BH, UK.
This message is intended solely for the addressee(s) and may contain confidential information. If you have received this message in error, please send it back to us, and immediately and permanently delete it. Do not use, copy or disclose the information contained in this message or in any attachment.
More information about the live-devel
mailing list