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

Failed to start RTMP playback

Open SSJKiDo opened this issue 10 years ago • 3 comments
trafficstars

I've tried SO MANY RTMP links, none of them worked, I even extracted this one: rtmp://179.43.158.196:1935/stream/0f5Bo1917y0yBobZcQBIw.stream from some website manually which is working perfectly now, but still not working, I'm getting this error:

File "C:\Python27\lib\site-packages\librtmp\rtmp.py", line 226, in create_stream raise RTMPError("Failed to start RTMP playback") RTMPError: Failed to start RTMP playback

And this is the code:

import librtmp
conn = librtmp.RTMP("rtmp://179.43.158.196:1935/stream/0f5Bo1917y0yBobZcQBIw.stream", live=True)
conn.connect()
data = stream.read(1024)

SSJKiDo avatar Oct 21 '15 16:10 SSJKiDo

Did you do stream = conn.create_stream()?

Also, be aware that some servers require you to do some other stuff as sending various connect parameters and other stuff, and by other stuff I mean unsecure ways of avoiding people from downloading the stream directly. This can easily be reverse engineered, though.

ghost avatar Oct 24 '15 08:10 ghost

Yes, I did the exact sample code: import librtmp conn = librtmp.RTMP("rtmp://your.server.net/app/playpath", live=True) conn.connect() stream = conn.create_stream() #This line was deleted by mistaked when I posted the issue. data = stream.read(1024)

And the URLs I've used were ALL public.

IFF it's possible, can you give me any working RTMP URL? if any URL will work, then the problem is with the ones I've been using!

SSJKiDo avatar Oct 24 '15 08:10 SSJKiDo

You might not be setting the correct information for the connection, see the documentation.

ghost avatar Oct 24 '15 08:10 ghost