[Live-devel] Duplicate data while create two rtsp clients to access the same live555 media server.

Johnnie Au-Yeung lanlamer at gmail.com
Wed Nov 30 22:30:22 PST 2011


Hi,everyone!
       I was asked to write a multiview media streaming client that can
playing multiple rtsp video stream concurrency. I encapsulated the openRTSP
into a C++ class that has it's own environment/taskscheduler /RTSPClient
and eventloop. While try to connect to the latest live555 media
server(testOnDemandRTSPServer.cpp),it works fine. But while access an IP
Camera that developed based on the live555 media server 2008.04.02
version,the following thread all received the duplicate data with the first
thread (as shown in the following log,all thread/instance received the same
data size,which was different while access to the latest live 555 media
server  ). And I also find that two Videolan process can access the IPC
concurrency and play the video fine. Can you please give me some
information/suggestion how to debug this issue? Which part of the code may
cause this problem? Thanks very much!

RtspMpeg4Sink::addData
<PlayPort:104><RtspMpeg4Sink:0258F2F0><datasize:19085><time:950916296.685595>
RtspMpeg4Sink::addData
<PlayPort:103><RtspMpeg4Sink:0251B990><datasize:19085><time:950916296.685595>
RtspMpeg4Sink::addData
<PlayPort:101><RtspMpeg4Sink:024B7E60><datasize:19085><time:950916296.685595>
RtspMpeg4Sink::addData
<PlayPort:102><RtspMpeg4Sink:0250F900><datasize:19085><time:950916296.685595>
RtspMpeg4Sink::addData
<PlayPort:104><RtspMpeg4Sink:0258F2F0><datasize:19197><time:950916296.752717>
RtspMpeg4Sink::addData
<PlayPort:103><RtspMpeg4Sink:0251B990><datasize:19197><time:950916296.752717>
RtspMpeg4Sink::addData
<PlayPort:102><RtspMpeg4Sink:0250F900><datasize:19197><time:950916296.752717>
RtspMpeg4Sink::addData
<PlayPort:101><RtspMpeg4Sink:024B7E60><datasize:19197><time:950916296.752717>
RtspMpeg4Sink::addData
<PlayPort:103><RtspMpeg4Sink:0251B990><datasize:19155><time:950916296.785950>
RtspMpeg4Sink::addData
<PlayPort:104><RtspMpeg4Sink:0258F2F0><datasize:19155><time:950916296.785950>
RtspMpeg4Sink::addData
<PlayPort:102><RtspMpeg4Sink:0250F900><datasize:19155><time:950916296.785950>
RtspMpeg4Sink::addData
<PlayPort:101><RtspMpeg4Sink:024B7E60><datasize:19155><time:950916296.785950>
RtspMpeg4Sink::addData
<PlayPort:104><RtspMpeg4Sink:0258F2F0><datasize:45747><time:950916296.818183>
RtspMpeg4Sink::addData
<PlayPort:102><RtspMpeg4Sink:0250F900><datasize:45747><time:950916296.818183>
RtspMpeg4Sink::addData
<PlayPort:103><RtspMpeg4Sink:0251B990><datasize:45747><time:950916296.818183>
RtspMpeg4Sink::addData
<PlayPort:101><RtspMpeg4Sink:024B7E60><datasize:45747><time:950916296.818183>
RtspMpeg4Sink::addData
<PlayPort:103><RtspMpeg4Sink:0251B990><datasize:15088><time:950916296.887105>
RtspMpeg4Sink::addData
<PlayPort:102><RtspMpeg4Sink:0250F900><datasize:15088><time:950916296.887105>
RtspMpeg4Sink::addData
<PlayPort:104><RtspMpeg4Sink:0258F2F0><datasize:15088><time:950916296.887105>
RtspMpeg4Sink::addData
<PlayPort:101><RtspMpeg4Sink:024B7E60><datasize:15088><time:950916296.887105>
RtspMpeg4Sink::addData
<PlayPort:104><RtspMpeg4Sink:0258F2F0><datasize:18333><time:950916296.909427>
RtspMpeg4Sink::addData
<PlayPort:103><RtspMpeg4Sink:0251B990><datasize:18333><time:950916296.909427>
RtspMpeg4Sink::addData
<PlayPort:102><RtspMpeg4Sink:0250F900><datasize:18333><time:950916296.909427>
RtspMpeg4Sink::addData
<PlayPort:101><RtspMpeg4Sink:024B7E60><datasize:18333><time:950916296.909427>
RtspMpeg4Sink::addData
<PlayPort:103><RtspMpeg4Sink:0251B990><datasize:19202><time:950916296.939149>
RtspMpeg4Sink::addData
<PlayPort:104><RtspMpeg4Sink:0258F2F0><datasize:19202><time:950916296.939149>
RtspMpeg4Sink::addData
<PlayPort:102><RtspMpeg4Sink:0250F900><datasize:19202><time:950916296.939149>
RtspMpeg4Sink::addData
<PlayPort:101><RtspMpeg4Sink:024B7E60><datasize:19202><time:950916296.939149>
RtspMpeg4Sink::addData
<PlayPort:104><RtspMpeg4Sink:0258F2F0><datasize:18801><time:950916296.969249>
RtspMpeg4Sink::addData
<PlayPort:102><RtspMpeg4Sink:0250F900><datasize:18801><time:950916296.969249>
RtspMpeg4Sink::addData
<PlayPort:103><RtspMpeg4Sink:0251B990><datasize:18801><time:950916296.969249>
RtspMpeg4Sink::addData
<PlayPort:101><RtspMpeg4Sink:024B7E60><datasize:18801><time:950916296.969249>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111201/0700ef27/attachment-0001.html>


More information about the live-devel mailing list