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 06-30-2009, 07:44 PM
Sam123 Sam123 is offline
Junior Member
 
Join Date: Jun 2009
Posts: 4
Sam123 is on a distinguished road
Default

RTMPDump - how do I compile source code in Linux like Ubuntu?


Ok, I got the source code for rtmpdump but what do I do with it? What do I use to compile it into a program?

Last edited by Sam123 : 07-01-2009 at 12:56 PM.
Reply With Quote
  #2  
Old 07-01-2009, 03:10 AM
Stream Recorder
 
Posts: n/a
Default

Re: RTMPDump - how do I compile source code?


Related threads:
How do you compile rtmpdump in Mac OS X 10.6?
RTMPDump - how do I compile source code in Windows?
Reply With Quote
  #3  
Old 01-04-2011, 03:37 AM
Stream Recorder
 
Posts: n/a
Default

Re: RTMPDump - how do I compile source code in Linux like Ubuntu?


Code:
streamrecorder@ripmachine:~$ sudo apt-get install build-essential gcc make subversion libssl0.9.8 libssl-dev libssl0.9.8
[sudo] password for streamrecorder: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
gcc is already the newest version.
make is already the newest version.
libssl-dev is already the newest version.
libssl0.9.8 is already the newest version.
subversion is already the newest version.
The following package was automatically installed and is no longer required:
  libtextcat-data-utf8
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
streamrecorder@ripmachine:~$ svn co svn://svn.mplayerhq.hu/rtmpdump rtmpdump
U    rtmpdump/trunk/librtmp/librtmp.pc.in
U    rtmpdump/trunk/librtmp/rtmp.c
U    rtmpdump/trunk/librtmp/handshake.h
U    rtmpdump/trunk/librtmp/Makefile
U    rtmpdump/trunk/rtmpsrv.c
U    rtmpdump/web/index.html
Checked out revision 565.
streamrecorder@ripmachine:~$ cd rtmpdump/trunk
streamrecorder@ripmachine:~/rtmpdump/trunk$ make
make[1]: Entering directory `/home/streamrecorder/rtmpdump/trunk/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o rtmp.o rtmp.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o log.o log.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o amf.o amf.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o hashswf.o hashswf.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\" -DUSE_OPENSSL  -O2 -fPIC   -c -o parseurl.o parseurl.c
ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
gcc -shared -Wl,-soname,librtmp.so.0  -o librtmp.so.0 rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz 
ln -sf librtmp.so.0 librtmp.so
make[1]: Leaving directory `/home/streamrecorder/rtmpdump/trunk/librtmp'
gcc -Wall  -o rtmpdump rtmpdump.o -Llibrtmp -lrtmp -lssl -lcrypto -lz  
gcc -Wall  -o rtmpgw rtmpgw.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz  
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.3\"   -O2   -c -o rtmpsrv.o rtmpsrv.c
gcc -Wall  -o rtmpsrv rtmpsrv.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz  
gcc -Wall  -o rtmpsuck rtmpsuck.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz  
streamrecorder@ripmachine:~/rtmpdump/trunk$ sudo make install
make[1]: Entering directory `/home/streamrecorder/rtmpdump/trunk/librtmp'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/streamrecorder/rtmpdump/trunk/librtmp'
mkdir -p /usr/local/bin /usr/local/sbin /usr/local/man/man1 /usr/local/man/man8
cp rtmpdump /usr/local/bin
cp rtmpgw rtmpsrv rtmpsuck /usr/local/sbin
cp rtmpdump.1 /usr/local/man/man1
cp rtmpgw.8 /usr/local/man/man8
make[1]: Entering directory `/home/streamrecorder/rtmpdump/trunk/librtmp'
sed -e "s;@prefix@;/usr/local;" -e "s;@libdir@;/usr/local/lib;" \
		-e "s;@VERSION@;v2.3;" \
		-e "s;@CRYPTO_REQ@;libssl,libcrypto;" \
		-e "s;@PRIVATE_LIBS@;;" librtmp.pc.in > librtmp.pc
mkdir -p /usr/local/include/librtmp /usr/local/lib/pkgconfig /usr/local/man/man3
cp amf.h http.h log.h rtmp.h /usr/local/include/librtmp
cp librtmp.a /usr/local/lib
cp librtmp.pc /usr/local/lib/pkgconfig
cp librtmp.3 /usr/local/man/man3
cp librtmp.so.0 /usr/local/lib
cd /usr/local/lib; ln -sf librtmp.so.0 librtmp.so
make[1]: Leaving directory `/home/streamrecorder/rtmpdump/trunk/librtmp'
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:57 AM.


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