You are not logged in.

#1 2009-05-24 01:08:59

mrbug
Member
Registered: 2007-07-17
Posts: 221

rtmpdump

I happened to grab the source tarball of rtmpdump before the sourceforge project was deleted. However, this is what I get when I try to compile it:

AMFObject.h:93: error: 'int16_t' does not name a type
AMFObject.cpp: In member function 'int RTMP_LIB::AMFObjectProperty::Decode(const char*, int, bool)':
AMFObject.cpp:493: error: 'm_nUTCOffset' was not declared in this scope
AMFObject.cpp: In member function 'void RTMP_LIB::AMFObjectProperty::Dump() const':
AMFObject.cpp:584: error: 'm_nUTCOffset' was not declared in this scope
make: *** [AMFObject.o] Error 1

Does anyone have any idea what that means or how to fix it?

Oh, and here's the Makefile: (not sure if it will help, though)

CC=gcc
CXX=g++
LD=ld

CFLAGS=-Wall
CXXFLAGS=-Wall
LDFLAGS=-Wall

all: rtmpdump

clean:
        rm -f *.o

streams: bytes.o log.o rtmp.o AMFObject.o rtmppacket.o streams.o parseurl.o dh.o
 handshake.o
        $(CXX) $(LDFLAGS) $^ -o $@_x86 -lpthread -lssl -lcrypto
rtmpdump: bytes.o log.o rtmp.o AMFObject.o rtmppacket.o rtmpdump.o parseurl.o dh
.o handshake.o
        $(CXX) $(LDFLAGS) $^ -o $@_x86 -lssl -lcrypto
bytes.o: bytes.cpp bytes.h Makefile
log.o: log.cpp log.h Makefile
rtmp.o: rtmp.cpp rtmp.h log.h AMFObject.h Makefile
AMFObject.o: AMFObject.cpp AMFObject.h log.h rtmp.h Makefile
rtmppacket.o: rtmppacket.cpp rtmppacket.h log.h Makefile
rtmpdump.o: rtmpdump.cpp rtmp.h log.h AMFObject.h Makefile
parseurl.o: parseurl.cpp parseurl.h log.h Makefile
streams.o: streams.cpp log.h Makefile
dh.o: dh.cpp dh.h log.h Makefile
handshake.o: handshake.cpp log.h Makefile

Last edited by mrbug (2009-05-24 01:12:21)


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#2 2009-05-24 17:56:36

ugkbunb
Member
Registered: 2009-02-26
Posts: 227

Re: rtmpdump

is there anyway I could get you to email me the source? I was able to grab a older copy but havent been able to find 1.6 hosted anywhere... email is ugkbunb AT gmail  DOT com

Offline

#3 2009-05-24 19:24:53

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: rtmpdump

It could be a problem with gcc being too new, see for instance http://gcc.gnu.org/gcc-4.4/porting_to.html

Offline

#4 2009-05-24 22:48:36

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: rtmpdump

bender02 wrote:

It could be a problem with gcc being too new, see for instance http://gcc.gnu.org/gcc-4.4/porting_to.html

Ah, I see what you mean... You could be right!

Now I just have to figure out how to "translate" the old code. Any hints? =-)

ugkbunb wrote:

is there anyway I could get you to email me the source?

A quick Google search showed that all of the major torrent sites have it now... There's also a new "clean room" implementation that has been developed and is hosted in the UK.


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

#5 2009-05-25 02:46:31

sruchris
Member
Registered: 2009-05-16
Posts: 3

Re: rtmpdump

Add #include <stdint.h> to both AMFObject.h and rtmppacket.h.

Offline

#6 2009-05-25 05:38:49

mrbug
Member
Registered: 2007-07-17
Posts: 221

Re: rtmpdump

That did it! Thanks!

I'm not familiar enough with the common C header files to have figured that out myself... I only know stuff like stdio and conio =-)


dvdtube - download all uploads from a YouTube user and then optionally create a DVD.
(Regular version AUR link / SVN version AUR link)

Offline

Board footer

Powered by FluxBB