chrippa / python-librtmp

python-librtmp is a RTMP client library. It uses the implementation provided by librtmp via cffi.
BSD 2-Clause "Simplified" License
154 stars 33 forks source link

Long Delay Between Connect and Stream Start #24

Open bolunwang opened 9 years ago

bolunwang commented 9 years ago

Hi all,

Just noticed something strange. I'm using the following code to simulate the RTMP part of an application.

self.conn = librtmp.RTMP(rtmp_info['url'], playpath=rtmp_info['playpath'], app=rtmp_info['app'], tcurl=rtmp_info['tcurl'], live=rtmp_info['live']) self.conn.connect() self.stream = self.conn.create_stream()

And it seems there is a big delay between connect() and create_stream(), most time around 8s. I'm pretty sure this is not because of the server, cause there is no such delay for the application to connect to the same stream. I was wondering if I mis-config some parameters or there is something inside librtmp that I didn't understand. Thank you very much for your help!

tbfly commented 8 years ago

https://ffmpeg.org/pipermail/ffmpeg-devel/2015-February/169404.html

maybe can try this?