Quote:
Originally Posted by troller12
Hi,
greetz
|
Ok, I think the compilation is the problem, im not an advanced user on linux. this is what i got:
Code:
-@debian:~$ cd /home/trivium/rtmpdump/
trivium@debian:~/rtmpdump$ patch -p0 -i Patch.diff
patching file Makefile
patching file librtmp/Makefile
patching file librtmp/amf.c
patching file librtmp/handshake.h
patching file librtmp/hashswf.c
patching file librtmp/log.c
patching file librtmp/parseurl.c
patching file librtmp/rtmp.c
patching file librtmp/rtmp.h
patching file librtmp/rtmp_sys.h
patching file rtmpdump.c
patching file rtmpgw.c
patching file rtmpsrv.c
patching file rtmpsuck.c
patching file thread.c
-@debian:~/rtmpdump$ make
make[1]: Entering directory '/home/trivium/rtmpdump/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
rtmp.c: In function ‘RTMP_ReadPacket’:
rtmp.c:4084:7: warning: variable ‘didAlloc’ set but not used [-Wunused-but-set-variable]
int didAlloc = FALSE;
^
rtmp.c: At top level:
rtmp.c:5828:1: warning: ‘SendGetStreamConnectionCount’ defined but not used [-Wunused-function]
SendGetStreamConnectionCount(RTMP *r)
^
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o log.o log.c
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o amf.o amf.c
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o hashswf.o hashswf.c
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o parseurl.o parseurl.c
ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
ar: creando librtmp.a
gcc -shared -Wl,-soname,librtmp.so.1 -o librtmp.so.1 rtmp.o log.o amf.o hashswf.o parseurl.o -lssl -lcrypto -lz -lm
ln -sf librtmp.so.1 librtmp.so
make[1]: Leaving directory '/home/trivium/rtmpdump/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -O2 -c -o rtmpdump.o rtmpdump.c
gcc -Wall -o rtmpdump rtmpdump.o -Llibrtmp -lrtmp -lssl -lcrypto -lz -lm
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -O2 -c -o rtmpgw.o rtmpgw.c
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -O2 -c -o thread.o thread.c
gcc -Wall -o rtmpgw rtmpgw.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz -lm
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -O2 -c -o rtmpsrv.o rtmpsrv.c
gcc -Wall -o rtmpsrv rtmpsrv.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz -lm
rtmpsrv.o: En la función `ServeInvoke':
rtmpsrv.c:(.text+0x205e): aviso: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -O2 -c -o rtmpsuck.o rtmpsuck.c
gcc -Wall -o rtmpsuck rtmpsuck.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz -lm
rtmpsuck.o: En la función `ServeInvoke':
rtmpsuck.c:(.text+0x1806): aviso: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
-@debian:~/rtmpdump$ sudo make install prefix=/usr
make[1]: Entering directory '/home/trivium/rtmpdump/librtmp'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/trivium/rtmpdump/librtmp'
mkdir -p /usr/bin /usr/sbin /usr/man/man1 /usr/man/man8
cp rtmpdump /usr/bin
cp rtmpgw rtmpsrv rtmpsuck /usr/sbin
cp rtmpdump.1 /usr/man/man1
cp rtmpgw.8 /usr/man/man8
make[1]: Entering directory '/home/trivium/rtmpdump/librtmp'
sed -e "s;@prefix@;/usr;" -e "s;@libdir@;/usr/lib;" \
-e "s;@VERSION@;v2.4;" \
-e "s;@CRYPTO_REQ@;libssl,libcrypto;" \
-e "s;@PUBLIC_LIBS@;;" \
-e "s;@PRIVATE_LIBS@;-lm;" librtmp.pc.in > librtmp.pc
mkdir -p /usr/include/librtmp /usr/lib/pkgconfig /usr/man/man3 /usr/lib
cp amf.h http.h log.h rtmp.h /usr/include/librtmp
cp librtmp.a /usr/lib
cp librtmp.pc /usr/lib/pkgconfig
cp librtmp.3 /usr/man/man3
cp librtmp.so.1 /usr/lib
cd /usr/lib; ln -sf librtmp.so.1 librtmp.so
make[1]: Leaving directory '/home/trivium/rtmpdump/librtmp'
After this, rtmpdump patched version trying to work but only for 1 second, the same issue with all the streaming links.
with the normal version without patch works but only 8 seconds and others streaming links work fine. sorry my English