python-librtmp icon indicating copy to clipboard operation
python-librtmp copied to clipboard

Long Delay Between Connect and Stream Start

Open bolunwang opened this issue 10 years ago • 1 comments
trafficstars

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!

bolunwang avatar Sep 04 '15 22:09 bolunwang

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

maybe can try this?

tbfly avatar Aug 25 '16 11:08 tbfly