Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-14-2015, 01:54 PM
snuky snuky is offline
Junior Member
 
Join Date: Oct 2014
Posts: 12
snuky is on a distinguished road
Default

rtmpdump+ilive fails on openwrt router


Hi, i got rtmpdump 2.4 + KSV .diff file but i am still unable to watch ilive streams with my compiled rtmpgw. They play just fine on SimpleTV for Windows.

Where should i get a working rtmpdump source code for ilive?

Connecting ... port: 1935, app: iguide
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!

Last edited by snuky : 03-15-2015 at 04:59 AM.
Reply With Quote
  #2  
Old 03-14-2015, 02:29 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Sources for a working rtmpdump+ilive?


Quote:
Originally Posted by snuky View Post
Hi, i got rtmpdump 2.4 + KSV .diff file but i am still unable to watch ilive streams with my compiled rtmpgw. They play just fine on SimpleTV for Windows.

Where should i get a working rtmpdump source code for ilive?

Connecting ... port: 1935, app: iguide
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!
i'm on debian
can you post a link to try with my compiled rtmpsrv
thanks
Reply With Quote
  #3  
Old 03-15-2015, 04:58 AM
snuky snuky is offline
Junior Member
 
Join Date: Oct 2014
Posts: 12
snuky is on a distinguished road
Default

Re: Sources for a working rtmpdump+ilive?


for debian x64 compiled rtmpdump works
Quote:
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
INFO: rtmp server sent redirect
INFO: trying to connect with redirected url
Starting download at: 0.000 kB
INFO: Metadata:
INFO: presetname vMix
INFO: creationdate Fri Mar 13 08:45:11 2015
INFO: videodevice vMix Video
INFO: framerate 25.00
INFO: width 720.00
INFO: height 404.00
INFO: videocodecid avc1
INFO: videodatarate 1000.00
INFO: avclevel 41.00
INFO: avcprofile 77.00
INFO: videokeyframe_frequency 5.00
INFO: audiodevice vMix Audio
INFO: audiosamplerate 44100.00
INFO: audiochannels 2.00
INFO: audioinputvolume 100.00
INFO: audiocodecid .mp3
INFO: audiodatarate 96.00
395.675 kB / 3.18 sec^C
Caught signal: 2, cleaning up, just a second...
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 8214
473.006 kB / 3.89 sec
for ar71xx router it crashes
Quote:
Connecting ... port: 1935, app: iguide
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!
Reply With Quote
  #4  
Old 03-15-2015, 05:03 AM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Sources for a working rtmpdump+ilive?


Quote:
Originally Posted by snuky View Post
for debian x64 compiled rtmpdump works

for ar71xx router it crashes
maybe with -V option you can learn more why it crashes
Reply With Quote
  #5  
Old 03-15-2015, 07:38 AM
snuky snuky is offline
Junior Member
 
Join Date: Oct 2014
Posts: 12
snuky is on a distinguished road
Default

Re: Sources for a working rtmpdump+ilive?


Quote:
Originally Posted by biezom View Post
maybe with -V option you can learn more why it crashes
My output to make V=s
Code:
make[1]: Entering directory `/home/user/wrt/trunk'

make[2]: Entering directory `/home/user/wrt/trunk/package/libs/toolchain'
if [ -f /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install
if [ -f /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/toolchain.default.install
make[2]: Leaving directory `/home/user/wrt/trunk/package/libs/toolchain'
make[2]: Entering directory `/home/user/wrt/trunk/package/libs/ocf-crypto-headers'
make[2]: Leaving directory `/home/user/wrt/trunk/package/libs/ocf-crypto-headers'
make[2]: Entering directory `/home/user/wrt/trunk/package/libs/zlib'
if [ -f /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/zlib.default.install.clean ]; then rm -f /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/zlib.default.install /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/zlib.default.install.clean; fi; echo "zlib" >> /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/zlib.default.install
make[2]: Leaving directory `/home/user/wrt/trunk/package/libs/zlib'
make[2]: Entering directory `/home/user/wrt/trunk/package/libs/openssl'
if [ -f /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/openssl.default.install.clean ]; then rm -f /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/openssl.default.install /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/openssl.default.install.clean; fi; echo "libopenssl" >> /home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/openssl.default.install
make[2]: Leaving directory `/home/user/wrt/trunk/package/libs/openssl'
make[2]: Entering directory `/home/user/wrt/trunk/feeds/mediawrt/utils/rtmpdump'
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16  -I/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16  -I/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib " make -j1 -C /home/user/wrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/rtmpdump-2.3/. AR="mips-openwrt-linux-uclibc-gcc-ar" AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM="mips-openwrt-linux-uclibc-gcc-nm" CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB="mips-openwrt-linux-uclibc-gcc-ranlib" STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" ARCH="mips" INC="-I/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include" XLDFLAGS="-L/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib" ;
make[3]: Entering directory `/home/user/wrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/rtmpdump-2.3'
make[4]: Entering directory `/home/user/wrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/rtmpdump-2.3/librtmp'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/user/wrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/rtmpdump-2.3/librtmp'
mips-openwrt-linux-uclibc-gcc -Wall  -I/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpdump.o rtmpdump.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
mips-openwrt-linux-uclibc-gcc -Wall -L/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/user/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib -o rtmpdump rtmpdump.o -Llibrtmp -lrtmp -lssl -lcrypto -lz -lm 
/home/user/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/librtmp.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
rtmpdump.o: In function `main':
rtmpdump.c:(.text.startup+0xf38): undefined reference to `AVcopy'
collect2: error: ld returned 1 exit status
make[3]: *** [rtmpdump] Error 1
make[3]: Leaving directory `/home/user/wrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/rtmpdump-2.3'
make[2]: *** [/home/user/wrt/trunk/build_dir/target-mips_34kc_uClibc-0.9.33.2/rtmpdump-2.3/.built] Error 2
make[2]: Leaving directory `/home/user/wrt/trunk/feeds/mediawrt/utils/rtmpdump'
make[1]: *** [package/feeds/mediawrt/rtmpdump/compile] Error 2
make[1]: Leaving directory `/home/user/wrt/trunk
rtmpdump.c line 1050
Code:
if (playpath.av_len == 0 && parsedPlaypath.av_len)
		  {
                    playpath = AVcopy(parsedPlaypath);
		  }
AVcopy function is not defined at all so I skipped rtmpdump and i got a librtmp.so.1 and rtmpgw but

http://192.168.1.133:8080/?r=rtmp:%2...jsda6523 lDGD

i get
Code:
Connecting ... port: 1935, app: redirect
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!

Connecting ... port: 1935, app: redirect
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Closing connection... done!
Reply With Quote
  #6  
Old 03-15-2015, 05:19 PM
snuky snuky is offline
Junior Member
 
Join Date: Oct 2014
Posts: 12
snuky is on a distinguished road
Default

Re: rtmpdump+ilive fails on openwrt router


Okay I fixed it but when I do x64 compilation ilive works but with mips platform it fails just like rtmpdump without patches.
KSV fixes are ignored on mips platform
My build options
Code:
 CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16  -I/home/arufl/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/arufl/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include 
" CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16  -I/home/arufl/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/arufl/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/arufl/wrt/trun~/rtmp/rtmpdump $ k/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/arufl/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib "

make -j1 -C ./. AR="mips-openwrt-linux-uclibc-gcc-ar" AS="mips-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float" LD=mips-openwrt-linux-uclibc-ld NM="mips-openwrt-linux-uclibc-gcc-nm" CC="mips-openwrt-linux-uclibc-gcc" GCC="mips-openwrt-linux-uclibc-gcc" CXX="mips-openwrt-linux-uclibc-g++" RANLIB="mips-openwrt-linux-uclibc-gcc-ranlib" STRIP=mips-openwrt-linux-uclibc-strip OBJCOPY=mips-openwrt-linux-uclibc-objcopy OBJDUMP=mips-openwrt-linux-uclibc-objdump SIZE=mips-openwrt-linux-uclibc-size CROSS="mips-openwrt-linux-uclibc-" ARCH="mips" INC="-I/home/arufl/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/arufl/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include" XLDFLAGS="-L/home/arufl/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/arufl/wrt/trunk/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/arufl/wrt/trunk/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib"

Last edited by snuky : 03-16-2015 at 02:34 AM.
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 05:47 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons