Ansersion / myRtspClient

A RTSP client based on jrtplib
Apache License 2.0
163 stars 92 forks source link

WARNING: There are some RTSP packages unreceived when run inside docker #15

Open lattice0 opened 5 years ago

lattice0 commented 5 years ago

When I run the common example inside docker (which works outside it), I get this weird output:

root@3067b1df30ff:/home/orwell/myRtspClient/example# ./common_example rtsp://admin:123456@192.168.0.103:10554/tcp/av0_0
Start play rtsp://admin:123456@192.168.0.103:10554/tcp/av0_0
Then put video data into test_packet_recv.h264
MyRTP_SetUp TCP: 3
Adding destination
ERROR: Can't retrieve login name
start PLAY
SDP: v=0
o=VSTC 3758819840 3758819840 IN IP4 192.168.0.103
s=streamed by the VSTARCAM RTSP server
e=NONE
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
b=AS:1024
a=control:track0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4d002a;sprop-parameter-sets=Z00AKp2oHgCJ+WbgICAoAAADAAgAAAMAfCA=,aO48gA==
m=audio 0 RTP/AVP 8  
b=AS:64
a=control:track1
a=rtpmap:8 PCMA/8000/1

recv 38
ERROR: The RTP session was not created
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
WARNING: There are some RTSP packages unreceived
...

I've found the source of the string error. It happens when myRtpSession can't lock the mutex.

Do you have any reason why it has this problem inside docker?

cklxiaocui commented 5 years ago

look it "ERROR: Can't retrieve login name" libjrtp require a Linux user account, so you need to add a user inside docker ,for example "useradd xxx"

lattice0 commented 5 years ago

Thanks, that explains a lot

-------- Mensagem Original -------- Ativo 28 de fev de 2019 03:27, cklxiaocui escreveu:

look it "ERROR: Can't retrieve login name" libjrtp require a Linux user account, so you need to add a user inside docker ,for example "useradd xxx"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.