Giter VIP home page Giter VIP logo

python-librtmp's People

Contributors

athoik avatar chrippa avatar mcsimp avatar schrobby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-librtmp's Issues

Long Delay Between Connect and Stream Start

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!

Ship librtmp.dll on Windows

>>> import librtmp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\librtmp\__init__.py", line 8, in <module>
    from ._librtmp import ffi, lib as librtmp
ImportError: DLL load failed: The specified module could not be found.
>>>

_librtmp.pyd is there, but it requires librtmp.dll, which is nowhere to be found.

Core dumped on Stop publishing

while(1): chunk = f.read(64) if not chunk: break data = stream.write(chunk) ./rtmp.py 111 Segmentation fault (core dumped)

On server side:

2014/04/11 13:33:40 [debug] 32250#0: *285 AMF write (27) 4E 65 74 53 74 72 65 61 6D 2E 55 6E 70 75 62 6C 'NetStream.Unpubl'
2014/04/11 13:33:40 [debug] 32250#0: *285 AMF write (2) 00 0B '??'
2014/04/11 13:33:40 [debug] 32250#0: *285 AMF write (11) 64 65 73 63 72 69 70 74 69 6F 6E 'description'
2014/04/11 13:33:40 [debug] 32250#0: *285 AMF write (1) 02 '?'
2014/04/11 13:33:40 [debug] 32250#0: *285 AMF write (2) 00 0F '??'
2014/04/11 13:33:40 [debug] 32250#0: *285 AMF write (15) 53 74 6F 70 20 70 75 62 6C 69 73 68 69 6E 67 'Stop publishing'
2014/04/11 13:33:40 [debug] 32250#0: *285 AMF write (2) 00 00 '??'
2014/04/11 13:33:40 [debug] 32250#0: *285 AMF write (1) 09 '?'
2014/04/11 13:33:40 [debug] 32250#0: *285 RTMP prep amf_cmd (20) fmt=0 csid=5 timestamp=0 mlen=108 msid=1 nbufs=1
2014/04/11 13:33:40 [debug] 32250#0: *285 RTMP send nmsg=1, priority=0 #7
2014/04/11 13:33:40 [debug] 32250#0: *285 live: delete empty stream 'mystream'
2014/04/11 13:33:40 [debug] 32250#0: *285 record: close_stream

Failed to start RTMP playback

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)

Win10 Py35 can't install

I can't install use commad
pip install python-librtmp
said need Microsoft Visual C++ 14.0.
who can give me a file by py35 on windows10?
Now, I try to install Microsoft Visual C++ 14.0.

I tried.
change to this last

Installation fails

Hi, I'm trying to install librtmp on a python 3.5 environment with pip 19.1.1, but keep getting the following error, Any clue how to solve it?:

` ERROR: Complete output from command python setup.py egg_info:
ERROR: cl : Command line error D8003 : missing source filename
cl : Command line error D8003 : missing source filename
cl : Command line error D8003 : missing source filename

    No working compiler found, or bogus compiler options passed to
    the compiler from Python's standard "distutils" module.  See
    the error messages above.  Likely, the problem is not related
    to CFFI but generic to the setup.py of any Python package that
    tries to compile C code.  (Hints: on OS/X 10.8, for errors about
    -mno-fused-madd see http://stackoverflow.com/questions/22313407/
    Otherwise, see https://wiki.python.org/moin/CompLangPython or
    the IRC channel #python on irc.freenode.net.)

    Trying to continue anyway.  If you are trying to install CFFI from
    a build done in a different context, you can ignore this warning.

Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\_msvccompiler.py", line 384, in compile
    self.spawn(args)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\_msvccompiler.py", line 503, in spawn
    return super().spawn(cmd)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\spawn.py", line 38, in spawn
    _spawn_nt(cmd, search_path, dry_run=dry_run)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\spawn.py", line 81, in _spawn_nt
    "command %r failed with exit status %d" % (cmd, rc))
distutils.errors.DistutilsExecError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\core.py", line 148, in setup
    dist.run_commands()
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\bdist_egg.py", line 161, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\bdist_egg.py", line 147, in call_command
    self.run_command(cmdname)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
    self.build()
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\command\install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\dist.py", line 974, in run_command
    cmd_obj.run()
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\build_ext.py", line 75, in run
    _build_ext.run(self)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\command\build_ext.py", line 338, in run
    self.build_extensions()
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\command\build_ext.py", line 447, in build_extensions
    self._build_extensions_serial()
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\command\build_ext.py", line 472, in _build_extensions_serial
    self.build_extension(ext)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\build_ext.py", line 196, in build_extension
    _build_ext.build_extension(self, ext)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\command\build_ext.py", line 532, in build_extension
    depends=ext.depends)
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\_msvccompiler.py", line 386, in compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 158, in save_modules
    yield saved
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 199, in setup_context
    yield
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 254, in run_setup
    _execfile(setup_script, ns)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 48, in _execfile
    exec(code, globals, locals)
  File "C:\Users\user\AppData\Local\Temp\easy_install-8dx52k_5\cffi-1.12.3\setup.py", line 248, in <module>
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\easy_install.py", line 1105, in run_setup
    run_setup(setup_script, args)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 257, in run_setup
    raise
  File "c:\users\user\appdata\local\programs\python\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 199, in setup_context
    yield
  File "c:\users\user\appdata\local\programs\python\python35\lib\contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 170, in save_modules
    saved_exc.resume()
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 145, in resume
    six.reraise(type, exc, self._tb)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\_vendor\six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 158, in save_modules
    yield saved
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 199, in setup_context
    yield
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 254, in run_setup
    _execfile(setup_script, ns)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\sandbox.py", line 48, in _execfile
    exec(code, globals, locals)
  File "C:\Users\user\AppData\Local\Temp\easy_install-8dx52k_5\cffi-1.12.3\setup.py", line 248, in <module>
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\user\AppData\Local\Temp\pip-install-7p_gse2o\python-librtmp\setup.py", line 39, in <module>
    "Programming Language :: Python :: 3.4",
  File "c:\users\user\appdata\local\programs\python\python35\lib\distutils\core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\dist.py", line 320, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\dist.py", line 377, in fetch_build_eggs
    replace_conflicting=True,
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 852, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 1124, in best_match
    return self.obtain(req, installer)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\pkg_resources\__init__.py", line 1136, in obtain
    return installer(requirement)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\dist.py", line 445, in fetch_build_egg
    return cmd.easy_install(req)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\easy_install.py", line 673, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\easy_install.py", line 699, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\easy_install.py", line 880, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\easy_install.py", line 1119, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "c:\users\user\appdata\local\programs\python\python35\lib\site-packages\setuptools\command\easy_install.py", line 1107, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------

ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-install-7p_gse2o\python-librtmp`

rtmpdump's --resume on VOD streams using python-librtmp?

I wonder if it's possible to introduce such functionality? It's quite easy to use in rtmpdump, but I need something like that in automatic python script. I see librtmp has --start arg, but I'm not sure how rtmpdump automatically finds how much time needs to be skipped (just uses timer?). If it's complicated I'll try to use timer or some mediainfo-type library and --start arg.

AMF decoder issue

When python-librtmp is compiled against librtmp dated 2012-10-29 or earlier the AMF decoder will not be able to decode arrays properly.

On these versions of librtmp the AMFProp_GetType function returns the wrong value for arrays which causes a incorrect type to be used when decoding AMF.

Does remote_method() work correctly?

It's more than likely that I'm doing something terribly wrong, but is remote_method() working fine?

channel = "yourchannel"
ip = socket.gethostbyname( "x" + channel + "x.e.channel.livestream.com" )
conn = librtmp.RTMP( "rtmp://" + ip + ":80" )
conn.connect()
# conn.connected returns True
func = conn.remote_method( "getCluster3", block=True )
response = func()

I get: librtmp.exceptions.RTMPError: Failed to read packet

I must be making wrong connection, but there are no problems with it, judging by conn.connected property.

Detect end of stream

I was wondering what's the supposed way for detecting whether a stream ends (single song or movie stream). Waiting for a read timeout not feels the right way.

Sending an empty play command

conn.connect()
conn.process_packets(invoked_method='UpdateSession')

if conn.connected:

    stream = conn.remote_method('createStream')
    stream()

play('') causing the flash server to disconnect before i can request the actual stream.

Windows, python27 cannot compile example code

I've downloaded a clean version of python27 32bit inorder to make sure that it wasn't anything in my previous installation.

When I'm trying to compile the example given on the front page it gives me the following errors.
import librtmp
File "C:\Python27\lib\site-packages\librtmp__init__.py", line 8, in
from ._librtmp import ffi, lib as librtmp
ImportError: DLL load failed: The specified module could not be found.

Installed using pip 7.1.2, pip install python-librtmp
Collecting python-librtmp
Using cached python_librtmp-0.3.0-cp27-none-win32.whl
Collecting cffi>=1.0.1 (from python-librtmp)
Using cached cffi-1.3.1-cp27-none-win32.whl
Collecting singledispatch (from python-librtmp)
Using cached singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.0.1->python-librtmp)
Using cached pycparser-2.14.tar.gz
Collecting six (from singledispatch->python-librtmp)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: pycparser, cffi, six, singledispatch, python-librtmp
Running setup.py install for pycparser
Successfully installed cffi-1.3.1 pycparser-2.14 python-librtmp-0.3.0 singledispatch-3.4.0.3 six-1.10.0

Thanks in advance.

Timeout before end

Hi there, i've been trying to download an RTMP stream using librtmp, but it seems to only download the first ~5MB then pauses for a bit and returns success.
The same command using rtmpdump works just fine.

Reproduce: https://gist.github.com/mic159/b71a8efdad7f67916ff0
The rtmpdump command will be printed to test with.

OS: Ubuntu 14.10 24bit

Could you tell me if I'm doing something wrong?

Cross compile python-librtmp

Hello,

Is there any guide how to crosscompile python-librtmp?

The most interesting architechures is mipsel (and arm).

Thanks

error installing (solved)

I'm installing on a fresh Debian 8, livestreamer installed. Having trouble with python-librtmp.

EDIT: I should have read issue #10 , installed librtmp-dev and all is fine.

Cant uninstall/remove

I am having some issues uninstalling python-librtmp.

I keep getting the error message No files were found to uninstall. when using pip to attempt to uninstall it.

To reproduce:

$ mkvirtualenv test --system-site-packages
Running virtualenv with interpreter /usr/bin/python2
New python executable in test/bin/python2
Also creating executable in test/bin/python
Installing setuptools, pip...done.

$ workon test

(test)$ pip install python-librtmp
Downloading/unpacking python-librtmp
  Downloading python-librtmp-0.2.2.tar.gz
  Running setup.py (path:~/.virtualenvs/test/build/python-librtmp/setup.py) egg_info for package python-librtmp

Requirement already satisfied (use --upgrade to upgrade): cffi>=0.6,<1.0 in /usr/lib/python2.7/dist-packages (from python-librtmp)
Downloading/unpacking singledispatch (from python-librtmp)
  Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/dist-packages (from cffi>=0.6,<1.0->python-librtmp)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from singledispatch->python-librtmp)
Installing collected packages: python-librtmp, singledispatch
  Running setup.py install for python-librtmp
    building '_binding' extension
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c librtmp_ffi/__pycache__/_binding.c -o build/temp.linux-x86_64-2.7/librtmp_ffi/__pycache__/_binding.o
    librtmp_ffi/__pycache__/_binding.c: In function ‘_cffi_f_RTMP_LogSetCallback’:
    librtmp_ffi/__pycache__/_binding.c:1807:25: warning: passing argument 1 of ‘RTMP_LogSetCallback’ from incompatible pointer type
       { RTMP_LogSetCallback(x0); }
                             ^
    In file included from librtmp_ffi/__pycache__/_binding.c:187:0:
    /usr/include/librtmp/log.h:49:6: note: expected ‘void (*)(int,  const char *, struct __va_list_tag *)’ but argument is of type ‘void (*)(int,  const char *, void *)’
     void RTMP_LogSetCallback(RTMP_LogCallback *cb);
          ^
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/librtmp/amf.c -o build/temp.linux-x86_64-2.7/src/librtmp/amf.o
    x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/librtmp_ffi/__pycache__/_binding.o build/temp.linux-x86_64-2.7/src/librtmp/amf.o -lrtmp -o build/lib.linux-x86_64-2.7/librtmp_ffi/_binding.so

Successfully installed python-librtmp singledispatch
Cleaning up...

(test)$ pip uninstall python-librtmp
Can't uninstall 'python-librtmp'. No files were found to uninstall.

Let me know if you need more info (like installed-files.txt)

"fatal error: 'librtmp/rtmp.h' file not found", multiple installs failed, Mac OS X 10.9,

"fatal error: 'librtmp/rtmp.h' file not found"

Hi, another one having troubles installing python-librtmp to Mac OS X, I tried a few different calls/methods for the install (pip, easy_install, etc) but always get the same error:
librtmp_ffi/__pycache__/_binding.c:186:14: fatal error: 'librtmp/rtmp.h' file not found

I'm using Mac OS X, Mavericks 10.9.4, and am needing to install python-librtmp as requested by 'livestreamer' when trying to access UStream:
[cli][info] Found matching plugin ustreamtv for URL http://www.ustream.tv/channel/11655601 [plugin.ustreamtv][warning] python-librtmp is not installed, but is needed to access the desktop streams [cli][info] Available streams: mobile_240p (worst), mobile_360p, mobile_480p (best)
...then it only offers the 'mobile' streams, which work well enough, I'm just not allowed to access the 'desktop' streams/resolutions..

cffi installed fine, but python-librtmp does not.

I've read somewhere to try to install it to Mac OS X with homebrew, but so far I've not been successful with that method either.. (total n00b to Homebrew), still looking into that method.

Any help would be amazing, I'm only new to all of this, I've only ever done ultra basic terminal etc coding before. Already so damn happy to get livestreamer sending live video streams to VLC, and being able to record live events that are on at like 2am here in Sydney, Australia, so I can sleep and watch later.

PS- Massive props to all of you guys who put so much effort in to these communities for the greater good and to help us all out!!

Error with types

Hello!
I have next issue.

while(1):
chunk = f.read(64)
if not chunk: break
data = stream.write(chunk)

./rtmp.py
111
!--------Write--------!
Traceback (most recent call last):
File "./rtmp.py", line 26, in
data = stream.write(chunk)
File "/usr/local/lib/python2.7/dist-packages/librtmp/stream.py", line 50, in write
raise ValueError("A bytes argument is required")
ValueError: A bytes argument is required
Press any key to continue...

Hang forever in RTMP_write

Hi chrippa,
Thanks for your work on developing this great project. I am a developer from China.
Recently, I am using python-flashmedia to read flv file and push the stream to RTMP server using python-librtmp. The work could be done with these two.
While in some cases, the RTMP_write is hanging forever. I try to debug the reason why the issue happened. I found the tcp state is close_wait. And the RTMP is still writing to the socket without any error. Do you have any idea to solve this kind of issue?

Thanks in advance.

RTMP Streaming Usage

This module is working excellently using the streaming example, to connect to a server, and print out the first 1024 bytes.

However, there is no explanation as to how this should be used in an application.
The docs say a "file-like object" is available, but how do you use it?

My aim is to have a python application (probably using tkinter) and display an RTMP stream as a video, but the things I have tried haven't worked.

I am totally unsure how to use this - even though I can connect to an RTMP stream, and view the FLV headers.

Any examples or advice ?

Thanks

OSX Build Instructions

Any chance of getting a bit more info on how to build for OSX?

Specifically, is there a preferred way of installing librtmp-dev and libffi-dev?

not plaintext

Before switching to python-librtmp i used rtmp-python (https://github.com/prekageo/rtmp-python).
There i could do something like client.reader.next() to get packets in dicts, without no unexpected "weird" signs (as demonstrated below).

I get these signs (or whatever it's called) in every packet,
imgur-2014_10_31-00 43 56

and i'm not sure why.

Is this expected? If so, is there an easy way to get rid of the weird signs or another solution?

AMF3

I would like to encode/decode AMF3. I am trying to use librtmp.amf.decode_amf, but it seems it defaults to AMF0 without argument to affect it. What is suggested way to do it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.