python-librtmp: "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!!

About this issue

  • Original URL
  • State: open
  • Created 10 years ago
  • Comments: 23 (2 by maintainers)

Most upvoted comments

I used

sudo apt-get install librtmp-dev sudo pip install python-librtmp

Worked like a charm

i’ve installed rtmpdump via brew brew install rtmpdump

it works for me

pip install --global-option=build_ext --global-option="-I/usr/local/include" --global-option="-L/usr/local/lib" python-librtmp

This works for me!

@Akagi201 trick didn’t quite work for me. I suspect it might be I have an M1 MacBook. However, the following did:

pip install --global-option=build_ext --global-option="-I/opt/homebrew/opt/rtmpdump/include/" --global-option="-L/opt/homebrew/opt/rtmpdump/lib" python-librtmp

Note that the location of the library and includes are different.

I have the same problem。 It’s need install librtmp. Following this: git clone git://git.ffmpeg.org/rtmpdump cd rtmpdump/librtmp/ make && make install cp librtmp.so.1 /usr/lib64/