[Live-devel] How to implement upload multiple audio streaming to rtsp server?
Eric_Hsieh at alphanetworks.com
Eric_Hsieh at alphanetworks.com
Thu Apr 13 00:27:10 PDT 2017
Hi Ross
Thanks for your reply.
After past few days struggling, I think we found the key point.
The key point is server side always use same port to handle RTP/RTCP packet.
Transport: RTP/AVP;unicast;destination=127.0.0.1;source=127.0.0.1;client_port=46774-46775;server_port=6970-6971
Server always return server_port=6970-6971. When two client upload rtp packet at same time,
both data are received from same port, only one packet will be handled.
We change the server_port assign rule, now, anything seems to work well.
We need to do more test. Thanks for your help.
> Ross Finlayson <finlayson at live555.com> 於 2017年4月13日 14:38 寫道:
>
>> We would like to ask a question about schedule. Thanks.
>> We use following flow to receive data from client.
>> MultiFramedRTPSource —> WAVFileSink
>> If we run one client to upload audio stream, we can receive correct data.
>> If we run two clients to upload audio stream. First one will be blocking.
>> Second one write data into file. When second one done, first one start writing data to file.
>> I print out the task from BasicTaskScheduler/select, looks like it always pick same client(second) to handle.
>> My question is how to let both work together, not always pick one client to handle?
>
> “BasicTaskScheduler” will select and handle packets on all sockets on which ‘background read handling’ has been requested. Also, it will alternate through all of the readable sockets (so that one socket cannot ‘starve out’ the others). Therefore, if your scheduler is never handling a socket, then that means that either (1) there are no incoming packets for that socket, or (2) ‘background read handling’ was not requested for that socket.
>
>
> 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
This electronic mail transmission is intended only for the named recipient. It contains information which may be privileged,confidential and exempt from disclosure under applicable law. Dissemination, distribution, or copying of this communication by anyone other than the recipient or the recipient's agent is strictly prohibited. If this electronic mail transmission is received in error, Please notify us immediately and delete the message and all attachments of it from your computer system. Thank you for your cooperation.
More information about the live-devel
mailing list