librtmp - Help Thread

  Thread Rating:
  • 5 Votes - 4.2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Clus Offline
Junior Member
Posts: 6
Joined: Jan 2013
Reputation: 0
Post: #31
Hey!

I replaced my original librtmp.so.0 on a raspberry pi with the one from your repository, but I get this error when loading a stream. XBMC restarts afterwards.

Code:
23:37:09 T:2873316416  NOTICE: Creating InputStream
23:37:09 T:2873316416   ERROR: Unable to load /opt/xbmc-bcm/xbmc-bin/lib/xbmc/system/librtmp.so.0, reason: /opt/xbmc-bcm/xbmc-bin/lib/xbmc/system/librtmp.so.0: cannot open shared object file: No such file or directory

I tried both your newer and older version of the file - same result. I copied the file into the folder as root, but any user is allowed to read it. Do I have to do anything more?
find quote
RedPenguin Offline
Fan
Posts: 344
Joined: Jan 2012
Reputation: 15
Post: #32
Try setting "chmod 755 librtmp.so.0" and "chown pi librtmp.so.0" if you are running Raspbmc anyway.

My librtmp & rtmpdump files for Android-ARM (APKs also), ATV1, iOS (Apple TV 2, iPhone, iPod Touch, & iPad), Linux (32bit & 64bit), MacOS x86 (32bit & 64bit), RasPi, & Windows
http://www.mediafire.com/?x4cvp5hl4m9xr

My LiveStreams List:
http://goo.gl/jyyZB (Add as URL not file)
find quote
Clus Offline
Junior Member
Posts: 6
Joined: Jan 2013
Reputation: 0
Post: #33
Changes are done, but I still get the same error. Checked the filename, but I can see no reason why file or directory cannot be found.

There may be someone else having this problem, otherwise I will reinstall raspbmc.
find quote
RedPenguin Offline
Fan
Posts: 344
Joined: Jan 2012
Reputation: 15
Post: #34
(2013-04-17 11:10)Clus Wrote:  Changes are done, but I still get the same error. Checked the filename, but I can see no reason why file or directory cannot be found.

There may be someone else having this problem, otherwise I will reinstall raspbmc.

Please post the output of:

ls -lh /opt/xbmc-bcm/xbmc-bin/lib/xbmc/system

Also I doubt you will have to reinstall Raspbmc, not for an issue like this away. Just do whatever possible to never illegally shut it down, had it stuck a few times and it corrupts, so glad I make images Smile.

My librtmp & rtmpdump files for Android-ARM (APKs also), ATV1, iOS (Apple TV 2, iPhone, iPod Touch, & iPad), Linux (32bit & 64bit), MacOS x86 (32bit & 64bit), RasPi, & Windows
http://www.mediafire.com/?x4cvp5hl4m9xr

My LiveStreams List:
http://goo.gl/jyyZB (Add as URL not file)
(This post was last modified: 2013-04-17 11:23 by RedPenguin.)
find quote
Clus Offline
Junior Member
Posts: 6
Joined: Jan 2013
Reputation: 0
Post: #35
Code:
pi@raspbmc:/opt/xbmc-bcm/xbmc-bin/lib/xbmc/system$ ls -lh
total 8.9M
-rwxr-xr-x 1 root root 622K Mar 22 03:32 ImageLib-arm.so
-rwxr-xr-x 1 root root  65K Mar 22 03:32 hdhomerun-arm.so
-rw-r--r-- 1 root root 200K Mar 22 03:33 libEGL.so
-rw-r--r-- 1 root root 263K Mar 22 03:33 libEGL_static.a
-rw-r--r-- 1 root root 103K Mar 22 03:33 libGLESv1_CM.so
-rw-r--r-- 1 root root 103K Mar 22 03:33 libGLESv2.so
-rw-r--r-- 1 root root 101K Mar 22 03:33 libGLESv2_static.a
-rw-r--r-- 1 root root 101K Mar 22 03:33 libOpenVG.so
-rw-r--r-- 1 root root  77K Mar 22 03:33 libWFC.so
lrwxrwxrwx 1 root root   17 Mar 22 03:33 libafpclient.so -> libafpclient.so.0
lrwxrwxrwx 1 root root   21 Mar 22 03:33 libafpclient.so.0 -> libafpclient.so.0.0.0
-rw-r--r-- 1 root root 133K Mar 14 17:41 libafpclient.so.0.0.0
-rw-r--r-- 1 root root  76K Mar 22 03:33 libbcm_host.so
lrwxrwxrwx 1 root root   16 Mar 22 03:33 libbluray.so.1 -> libbluray.so.1.0
lrwxrwxrwx 1 root root   18 Mar 22 03:33 libbluray.so.1.0 -> libbluray.so.1.0.0
-rw-r--r-- 1 root root 595K Mar 14 17:41 libbluray.so.1.0.0
lrwxrwxrwx 1 root root   11 Mar 22 03:33 libcec.so -> libcec.so.2
lrwxrwxrwx 1 root root   15 Mar 22 03:33 libcec.so.2 -> libcec.so.2.0.1
-rw-r--r-- 1 root root 3.3M Mar 14 17:41 libcec.so.2.0.1
-rwxr-xr-x 1 root root 170K Mar 22 03:32 libcmyth-arm.so
-rwxr-xr-x 1 root root  84K Mar 22 03:32 libcpluff-arm.so
-rw-r--r-- 1 root root  15K Mar 22 03:33 libdebug_sym.so
lrwxrwxrwx 1 root root   17 Mar 22 03:33 libdshairport.so -> libshairport.so.0
-rwxr-xr-x 1 root root  28K Mar 22 03:32 libexif-arm.so
-rw-r--r-- 1 root root  14K Mar 22 03:33 libkhrn_client.a
-rw-r--r-- 1 root root 455K Mar 22 03:33 libkhrn_static.a
-rw-r--r-- 1 root root  54K Mar 22 03:33 libmmal.so
-rw-r--r-- 1 root root  43K Mar 22 03:33 libmmal_vc_client.so
lrwxrwxrwx 1 root root   17 Mar 22 03:33 libmp3lame.so.0 -> libmp3lame.so.0.0
lrwxrwxrwx 1 root root   19 Mar 22 03:33 libmp3lame.so.0.0 -> libmp3lame.so.0.0.0
-rw-r--r-- 1 root root 287K Mar 14 17:41 libmp3lame.so.0.0.0
lrwxrwxrwx 1 root root   11 Mar 22 03:33 libnfs.so -> libnfs.so.1
lrwxrwxrwx 1 root root   15 Mar 22 03:33 libnfs.so.1 -> libnfs.so.1.0.3
-rw-r--r-- 1 root root 135K Mar 14 17:41 libnfs.so.1.0.3
-rw-r--r-- 1 root root  31K Mar 22 03:33 libopenmaxil.so
lrwxrwxrwx 1 root root   12 Mar 22 03:33 librtmp.so -> librtmp.so.0
-rwxr-xr-x 1 pi   root 120K Apr 16 23:46 librtmp.so.0
lrwxrwxrwx 1 root root   21 Mar 22 03:33 libshairport.so.0 -> libshairport.so.0.0.0
-rw-r--r-- 1 root root  58K Mar 14 17:41 libshairport.so.0.0.0
lrwxrwxrwx 1 root root   13 Mar 22 03:33 libtag.so.1 -> libtag.so.1.0
lrwxrwxrwx 1 root root   16 Mar 22 03:33 libtag.so.1.0 -> libtag.so.1.12.0
-rw-r--r-- 1 root root 1.4M Mar 14 17:41 libtag.so.1.12.0
-rw-r--r-- 1 root root 3.0K Mar 22 03:33 libvcfiled_check.a
-rw-r--r-- 1 root root  30K Mar 22 03:33 libvchiq_arm.so
-rw-r--r-- 1 root root  93K Mar 22 03:33 libvchostif.a
-rw-r--r-- 1 root root 174K Mar 22 03:33 libvcos.so
-rw-r--r-- 1 root root  31K Mar 22 03:33 libvmcs_rpc_client.a
drwxr-xr-x 4 root root 4.0K Mar 17 13:27 players

I also tried setting the owner to root, as all the other files have - but it did not change anything.

I have not just powered the pi off for a long time, so I am pretty sure that is not an issue here, I always use halt or reboot.
find quote
RedPenguin Offline
Fan
Posts: 344
Joined: Jan 2012
Reputation: 15
Post: #36
(2013-04-17 12:23)Clus Wrote:  
Code:
pi@raspbmc:/opt/xbmc-bcm/xbmc-bin/lib/xbmc/system$ ls -lh
total 8.9M
-rwxr-xr-x 1 root root 622K Mar 22 03:32 ImageLib-arm.so
-rwxr-xr-x 1 root root  65K Mar 22 03:32 hdhomerun-arm.so
-rw-r--r-- 1 root root 200K Mar 22 03:33 libEGL.so
-rw-r--r-- 1 root root 263K Mar 22 03:33 libEGL_static.a
-rw-r--r-- 1 root root 103K Mar 22 03:33 libGLESv1_CM.so
-rw-r--r-- 1 root root 103K Mar 22 03:33 libGLESv2.so
-rw-r--r-- 1 root root 101K Mar 22 03:33 libGLESv2_static.a
-rw-r--r-- 1 root root 101K Mar 22 03:33 libOpenVG.so
-rw-r--r-- 1 root root  77K Mar 22 03:33 libWFC.so
lrwxrwxrwx 1 root root   17 Mar 22 03:33 libafpclient.so -> libafpclient.so.0
lrwxrwxrwx 1 root root   21 Mar 22 03:33 libafpclient.so.0 -> libafpclient.so.0.0.0
-rw-r--r-- 1 root root 133K Mar 14 17:41 libafpclient.so.0.0.0
-rw-r--r-- 1 root root  76K Mar 22 03:33 libbcm_host.so
lrwxrwxrwx 1 root root   16 Mar 22 03:33 libbluray.so.1 -> libbluray.so.1.0
lrwxrwxrwx 1 root root   18 Mar 22 03:33 libbluray.so.1.0 -> libbluray.so.1.0.0
-rw-r--r-- 1 root root 595K Mar 14 17:41 libbluray.so.1.0.0
lrwxrwxrwx 1 root root   11 Mar 22 03:33 libcec.so -> libcec.so.2
lrwxrwxrwx 1 root root   15 Mar 22 03:33 libcec.so.2 -> libcec.so.2.0.1
-rw-r--r-- 1 root root 3.3M Mar 14 17:41 libcec.so.2.0.1
-rwxr-xr-x 1 root root 170K Mar 22 03:32 libcmyth-arm.so
-rwxr-xr-x 1 root root  84K Mar 22 03:32 libcpluff-arm.so
-rw-r--r-- 1 root root  15K Mar 22 03:33 libdebug_sym.so
lrwxrwxrwx 1 root root   17 Mar 22 03:33 libdshairport.so -> libshairport.so.0
-rwxr-xr-x 1 root root  28K Mar 22 03:32 libexif-arm.so
-rw-r--r-- 1 root root  14K Mar 22 03:33 libkhrn_client.a
-rw-r--r-- 1 root root 455K Mar 22 03:33 libkhrn_static.a
-rw-r--r-- 1 root root  54K Mar 22 03:33 libmmal.so
-rw-r--r-- 1 root root  43K Mar 22 03:33 libmmal_vc_client.so
lrwxrwxrwx 1 root root   17 Mar 22 03:33 libmp3lame.so.0 -> libmp3lame.so.0.0
lrwxrwxrwx 1 root root   19 Mar 22 03:33 libmp3lame.so.0.0 -> libmp3lame.so.0.0.0
-rw-r--r-- 1 root root 287K Mar 14 17:41 libmp3lame.so.0.0.0
lrwxrwxrwx 1 root root   11 Mar 22 03:33 libnfs.so -> libnfs.so.1
lrwxrwxrwx 1 root root   15 Mar 22 03:33 libnfs.so.1 -> libnfs.so.1.0.3
-rw-r--r-- 1 root root 135K Mar 14 17:41 libnfs.so.1.0.3
-rw-r--r-- 1 root root  31K Mar 22 03:33 libopenmaxil.so
lrwxrwxrwx 1 root root   12 Mar 22 03:33 librtmp.so -> librtmp.so.0
-rwxr-xr-x 1 pi   root 120K Apr 16 23:46 librtmp.so.0
lrwxrwxrwx 1 root root   21 Mar 22 03:33 libshairport.so.0 -> libshairport.so.0.0.0
-rw-r--r-- 1 root root  58K Mar 14 17:41 libshairport.so.0.0.0
lrwxrwxrwx 1 root root   13 Mar 22 03:33 libtag.so.1 -> libtag.so.1.0
lrwxrwxrwx 1 root root   16 Mar 22 03:33 libtag.so.1.0 -> libtag.so.1.12.0
-rw-r--r-- 1 root root 1.4M Mar 14 17:41 libtag.so.1.12.0
-rw-r--r-- 1 root root 3.0K Mar 22 03:33 libvcfiled_check.a
-rw-r--r-- 1 root root  30K Mar 22 03:33 libvchiq_arm.so
-rw-r--r-- 1 root root  93K Mar 22 03:33 libvchostif.a
-rw-r--r-- 1 root root 174K Mar 22 03:33 libvcos.so
-rw-r--r-- 1 root root  31K Mar 22 03:33 libvmcs_rpc_client.a
drwxr-xr-x 4 root root 4.0K Mar 17 13:27 players

I also tried setting the owner to root, as all the other files have - but it did not change anything.

I have not just powered the pi off for a long time, so I am pretty sure that is not an issue here, I always use halt or reboot.

Yes root should be the other of the file then, I could have sworn it should have been pi.

Only thing I can possibly think of off hand is to try "chmod 777 librtmp.so.0" but like I said keep root as owner.

My librtmp & rtmpdump files for Android-ARM (APKs also), ATV1, iOS (Apple TV 2, iPhone, iPod Touch, & iPad), Linux (32bit & 64bit), MacOS x86 (32bit & 64bit), RasPi, & Windows
http://www.mediafire.com/?x4cvp5hl4m9xr

My LiveStreams List:
http://goo.gl/jyyZB (Add as URL not file)
find quote
Clus Offline
Junior Member
Posts: 6
Joined: Jan 2013
Reputation: 0
Post: #37
When I check dependencies using ldd, I get
Code:
not a dynamic executable

Is that correct?

I will go on googling and try to find what causes the problem...
find quote
RedPenguin Offline
Fan
Posts: 344
Joined: Jan 2012
Reputation: 15
Post: #38
Mine tells me:

libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb6d70000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb6cff000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6bd0000)
/lib/ld-linux-armhf.so.3 (0xb6f20000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6ba8000)

My librtmp & rtmpdump files for Android-ARM (APKs also), ATV1, iOS (Apple TV 2, iPhone, iPod Touch, & iPad), Linux (32bit & 64bit), MacOS x86 (32bit & 64bit), RasPi, & Windows
http://www.mediafire.com/?x4cvp5hl4m9xr

My LiveStreams List:
http://goo.gl/jyyZB (Add as URL not file)
find quote
agemineye Offline
Junior Member
Posts: 47
Joined: Apr 2012
Reputation: 0
Post: #39
Hello @RedPenguin,

Thank you for your good work.

I read through this thread and am not clear about something. Request your help with it.

I am running xbmc on ATV1 (stock, with NitoTV). Could you please tell me which one is the right librtmp for me (if any)?

Thanks
find quote
RedPenguin Offline
Fan
Posts: 344
Joined: Jan 2012
Reputation: 15
Post: #40
(2013-04-21 16:42)agemineye Wrote:  Hello @RedPenguin,

Thank you for your good work.

I read through this thread and am not clear about something. Request your help with it.

I am running xbmc on ATV1 (stock, with NitoTV). Could you please tell me which one is the right librtmp for me (if any)?

Thanks

Well so far everybody has just been just using Linux on the ATV1 and just using my RasPi file (which is why folder is called RasPi+ATV1).

Though since I've seen a fair amount of folks asking for it, not just here but on other threads, I will try and see if I can find a MacOS Cross-Compiler for Cygwin/Windows or Linux.

Though just be aware for anyone reading this, XBMC has stated the stock OS on the ATV1 is limited to XBMC Eden (11), so you will always be 2 versions behind as of today.

My librtmp & rtmpdump files for Android-ARM (APKs also), ATV1, iOS (Apple TV 2, iPhone, iPod Touch, & iPad), Linux (32bit & 64bit), MacOS x86 (32bit & 64bit), RasPi, & Windows
http://www.mediafire.com/?x4cvp5hl4m9xr

My LiveStreams List:
http://goo.gl/jyyZB (Add as URL not file)
(This post was last modified: 2013-04-21 22:49 by RedPenguin.)
find quote
mwahal Offline
Member
Posts: 54
Joined: Dec 2010
Reputation: 0
Post: #41
Hi

Anyone has the librtmp.so.dylib for Mac OSX Mountain Lion ?

Thanks
Mudit
find quote
RedPenguin Offline
Fan
Posts: 344
Joined: Jan 2012
Reputation: 15
Post: #42
I will be soon once I get cross-compiler working soon as I don't have a Mac and will be making it x86-Mac for now do it can also work on ATV1.

My librtmp & rtmpdump files for Android-ARM (APKs also), ATV1, iOS (Apple TV 2, iPhone, iPod Touch, & iPad), Linux (32bit & 64bit), MacOS x86 (32bit & 64bit), RasPi, & Windows
http://www.mediafire.com/?x4cvp5hl4m9xr

My LiveStreams List:
http://goo.gl/jyyZB (Add as URL not file)
find quote
mwahal Offline
Member
Posts: 54
Joined: Dec 2010
Reputation: 0
Post: #43
Thanks RedPenguin !
find quote
agemineye Offline
Junior Member
Posts: 47
Joined: Apr 2012
Reputation: 0
Post: #44
Thanks @Redpenguin. Looking forward to it.

(2013-04-21 22:48)RedPenguin Wrote:  
(2013-04-21 16:42)agemineye Wrote:  Hello @RedPenguin,

Thank you for your good work.

I read through this thread and am not clear about something. Request your help with it.

I am running xbmc on ATV1 (stock, with NitoTV). Could you please tell me which one is the right librtmp for me (if any)?

Thanks

Well so far everybody has just been just using Linux on the ATV1 and just using my RasPi file (which is why folder is called RasPi+ATV1).

Though since I've seen a fair amount of folks asking for it, not just here but on other threads, I will try and see if I can find a MacOS Cross-Compiler for Cygwin/Windows or Linux.

Though just be aware for anyone reading this, XBMC has stated the stock OS on the ATV1 is limited to XBMC Eden (11), so you will always be 2 versions behind as of today.
find quote
mwahal Offline
Member
Posts: 54
Joined: Dec 2010
Reputation: 0
Post: #45
Ok - I managed to get the source for rtmpdump 2.4 from git, downloaded the 2.4 zip file which has the Patch file, patched the source.
Installed Xcode on my MBP ML 10.8.2, build the binaries and the library. I copied the librtmp.so.0 to /Applications/XBMC.app/Contents/Frameworks/librtmp.0.dylib

Now when I launch the XBMC, it crashes

Code:
/Applications/XBMC.app/Contents/MacOS/XBMC
objc[21130]: Object 0x3eac560 of class NSUserDefaults autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[21130]: Object 0x4c9ed40 of class __NSCFString autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[21130]: Object 0x95fafb0 of class __NSWindowData autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
objc[21130]: Object 0x95f7da0 of class SDL_QuartzWindow autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
Bus error: 10


rtmpdump works fine

Code:
./rtmpdump
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playpath") containing a hostname

Am I running a very old version of XBMC for this to work ??
Code:
16:09:26 T:2889484840  NOTICE: Starting XBMC (12.0-ALPHA2 Git:20120512-694a759), Platform: Darwin OSX (12.3.0 x86_64, Version 10.8.3 (Build 12D78)). Built on May 12 2012

Code:
file /Applications/XBMC.app/Contents/Frameworks/librtmp.0.dylib
/Applications/XBMC.app/Contents/Frameworks/librtmp.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64
(This post was last modified: 2013-04-22 01:15 by mwahal.)
find quote
Post Reply