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

UNIX-flavored systems setup failing

Open distributedlock opened this issue 10 years ago • 9 comments

distributedlock avatar May 03 '14 19:05 distributedlock

You need to install the librtmp-dev package via apt on Ubuntu. I think you can use homebrew to install librtmp/rtmpdump on OS X.

chrippa avatar May 04 '14 19:05 chrippa

No, this library is simply Python bindings to the C library librtmp which only supports AMF0 currently.

Edit: Actually, there is support to decode AMF3, but not encode.

chrippa avatar May 05 '14 09:05 chrippa

I can't seem to find the librtmp package available on OS X. So same issue for me

swarve avatar Jun 21 '14 09:06 swarve

Hi, I just spotted that this is similar to my problem too, I get the same error installing python-librtmp via different methods on Mac OS X: librtmp_ffi/__pycache__/_binding.c:186:14: fatal error: 'librtmp/rtmp.h' file not found

Would really love some help on this too!

Thanks all!

kendog77 avatar Jul 23 '14 04:07 kendog77

You either don't have librtmp installed or it's in a location that is not looked at by default.

If you grab the source tree instead of using pip you can specify it manually like this:

python setup.py build_ext -I <headers location> -L <dynamic library location> install

"headers location" is the path where there is a "librtmp" directory containing .h files. "dynamic library location" is the path where "librtmp.dylib" file is located.

chrippa avatar Jul 23 '14 10:07 chrippa

Thanks for the reply chrippa! Too busy to try it out so far, the above code seems to make sense once I know where librtmp is installed etc.

  1. How can I find out where librtmp is installed?

Also, I did set up PLEX (and Python) a while ago, but removed it as it seemed to be way too resource heavy when serving media to AppleTV etc (possibly something to do with SoundFlower(?) and kernel panics). Maybe some old bits weren't removed properly? 2. How can I 'Start Fresh' and clear my whole system of all non-factory/aftermarket terminal/GitHub/Python/Homebrew/etc scripts/programs etc?

MASSIVE THANKS in advance!

kendog77 avatar Jul 29 '14 03:07 kendog77

Also, I recently installed this through Homebrew, hoping to get librtmp installed on my system, in seemed to finish the installation without problem.. But didn't seem to help any of my my attempts to install python-librtmp.. http://stackoverflow.com/questions/10855499/how-to-compile-ffmpeg-with-librtmp-in-macos

kendog77 avatar Jul 29 '14 03:07 kendog77

How can I find out where librtmp is installed?

I'm not sure if this works on OS X but you might be able to run locate rtmp to search your filesystem. If that doesn't work, try looking around in /usr/local.

How can I 'Start Fresh' and clear my whole system of all non-factory/aftermarket terminal/GitHub/Python/Homebrew/etc scripts/programs etc?

I doubt there is a way to magically do this without erasing the rest of your OS.

Also, I recently installed this through Homebrew, hoping to get librtmp installed on my system, in seemed to finish the installation without problem.. But didn't seem to help any of my my attempts to install python-librtmp..

That installs ffmpeg, try installing rtmpdump/librtmp instead with brew install rtmpdump.

chrippa avatar Jul 29 '14 08:07 chrippa

FYI for Mac OS X users: To get librtmp, do brew install rtmpdump. Then do pip install python-librtmp. (Thanks to this StackOverflow answer for leading me to this solution.)

oxguy3 avatar Apr 25 '16 23:04 oxguy3