HLSProxy (Ross Finlayson)

lists at sergtech.com.au lists at sergtech.com.au
Sun Jul 5 16:33:48 PDT 2020


Thank you for your reply.

> No, the ?-t? option (stream using RTP/RTCP-over-TCP) is working just 
> fine - but it depends upon the RTSP server supporting it.  Perhaps 
> your RTSP server (IP camera) doesn?t support it?
>
> You can check this by changing ?RTSP_CLIENT_VERBOSITY_LEVEL? from 0 to 
> 1, and looking at the RTSP ?SETUP? commands and responses.

The camera source definitely supports TCP streams, and when I change 
line 169 from "continueAfterClientCreation1(rtspClient);" to 
"continueAfterClientCreation0(rtspClient, streamUsingTCP);" this does 
provide a TCP stream. Otherwise, it does not. Of course, it could be 
that my sources are broken, or they default to UDP, or something else. I 
will definitely look at this in the coming week.

>> 2. Something in the streaming functions used from hlsProxy (and my 
>> c++ is too limited to debug properly) does not appear to handle 
>> broken streams well
> That?s right.  The ?LIVE555 HLS Proxy? currently acts as a basic RTSP 
> client, and thus if the RTSP stream ends, it doesn?t attempt to 
> reconnect.  At some point in the future, I might add a ?retry? 
> mechanism (as such a mechanism currently exists for the ?LIVE555 RTSP 
> Proxy?), but this is not a high priority.
>
> For now, I suggest restarting the "LIVE555 HLS Proxy? whenever you 
> restart your router (or the back-end RTSP server).
I would have expected the hlsProxy to exit when the stream ends? It can 
then be restarted it in an automated fashion from external source.
>> 3. I have not tried any H.265 streams, but will do so in the future. 
>> I appreciate the addition of audio in recent code. I'm wondering if 
>> there is a DiscreteFramer I could use for something like alaw (PCM 
>> ALAW).
> The problem here is that there needs to be a standard MPEG Transport 
> stream type for this codec (to ensure that each web browser that ends 
> up playing the Transport Stream segments will understand what this 
> data means.
>
> If you have an example of a MPEG Transport Stream file (preferably, a 
> HLS segment) that contains this kind of data, let me know.

I hit record button in VLC when playing the RTSP stream. The output file 
is an avi, but the streams are untouched (with stream0 being audio).

When I tried segmenting this using ffmpeg, it was necessary to transcode 
the audio in order for the output files to contain it. I suppose 
transcoding is beyond the scope of the hlsProxy application. Thanks for 
helping me understand this

Serg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20200706/527ee8dc/attachment.htm>


More information about the live-devel mailing list