[Live-devel] Slow setup of h264 streams

Anders Sandven as at trafsys.no
Fri Sep 1 03:20:01 PDT 2017


Hi!

I am trying to implement a proxy using live555. This is a rewrite of an 
older version which also used live555. The proxy is used for a bunch of 
h264 streams which are created when needed.

The older version used some blocking socket calls, which made me try to 
rewrite the whole thing using a
newer version of live555. The old proxy used a heavily modified library 
version that I think proxied the rtp data without doing much with it. I 
am now trying to achieve the same thing using the current version of 
live555.

My problem with the current implementation is that the streams takes 
about 8-10 seconds to set up. This seems to be the case for the 
reference implementation in live555ProxyServer as well. The old proxy 
could do the same in 3-4 seconds. It seems that the time spent is when 
the H264/5VideoRTPSink class is trying to locate the NAL unit data. The 
old version of the proxy seems to ignore this stuff.

I have looked into the SimpleRTPSource/Sink classes which seems to be 
what I want, but when I try to use it I cant make it work.

How do I go about this thing? In short, I would like to make the proxy 
faster.

Best regards,
Anders Sandven




More information about the live-devel mailing list