RTMP Message Header

240 views
Skip to first unread message

RapBoyX

unread,
May 26, 2010, 1:13:32 PM5/26/10
to C++ RTMP Server
Hi,

In RTMP Message Formats spec, there is a description of a message
header of 11 bytes.
Also in the Real Time Messaging Chunk Stream Protocol there is a
definition of another header - the chunk message header (which has 4
types - according to the fmt).

My question is what header should be used when sending the video ?

When I try the chunk basic header (type 0) I get no video played, also
when I try a combination of the chunk basic header with the message
header there's no video.
And if I use only the message header (11 bytes) - the browser
crashes...

Please advise me which header (or combination should be used).

And currently I'm sending the video packet from the flv tag - as the
video data, is that fine ? (I have set up a big chunk size for testing
purposes - 65536 bytes).


Thanks !

Tiago Katcipis

unread,
May 28, 2010, 6:51:14 AM5/28/10
to c-rtmp...@googlegroups.com
RTMP specification may help you:

http://www.adobe.com/devnet/rtmp/pdf/rtmp_specification_1.0.pdf

i remember seeing something about vídeo.

You received this message because you are subscribed to "C++ RTMP Server" mailing list.
To post to this group, send email to c-rtmp...@googlegroups.com
To unsubscribe from this group, send email to
c-rtmp-serve...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/c-rtmp-server?hl=en



--
http://www.getgnulinux.org/windows

Elias Khsheibun

unread,
May 28, 2010, 8:35:11 AM5/28/10
to c-rtmp...@googlegroups.com

Well “everything” is written there, but it’s not clearly written, and it doesn’t work according to the specification, I hope that someone could answer my questions.

Thanks.

C++ RTMP Server

unread,
May 28, 2010, 8:44:10 AM5/28/10
to c-rtmp...@googlegroups.com
Hi,

Again, you have several perfectly fine implementations of the RTMP protocol written in different programming languages plus the official docs from adobe: red5 (java), crtmpserver (C/C++), erlyvideo (erlang), rtmplite (python), etc

RTMP, by design, is quite complex and sensitive to almost all of its internal control messages. Understanding them is a trial-and-error task that you MUST do by yourself if you truly want to understand it down to its bones. I could try to explain you all it's internals, but I'm afraid I don't have time for that (remember, I don't have time to write the docs for this server, let alone doing general purpose RTMP howtos). I'm sincerely sorry for that. I barely manage to respond to bug reports and do further features development.

Cheers,
Andrei

------
Eugen-Andrei Gavriloaie
Web: http://www.rtmpd.com

Elias Khsheibun

unread,
May 28, 2010, 9:23:14 AM5/28/10
to c-rtmp...@googlegroups.com
Hi Andrei,

I really appreciate your work, and I'm also aware that you are very busy
with fixing bugs and working on new features.
Can you please guide me where in rtmpd is the format of video messages ?
(which file/module). Because I got lost with the code, its enormous.

Thanks,

Elias.

Gabriel Kihlman

unread,
May 28, 2010, 11:47:02 AM5/28/10
to c-rtmp...@googlegroups.com
On 2010-05-28 15.23, Elias Khsheibun wrote:
>
> I really appreciate your work, and I'm also aware that you are very busy
> with fixing bugs and working on new features.
> Can you please guide me where in rtmpd is the format of video messages ?
> (which file/module). Because I got lost with the code, its enormous.
>

Come on, do not expect people to spoon feed you..

Here is a very simple python RTMP server which might make it easier to
understand what is going on in the beginning:
http://code.google.com/p/rtmplite/source/browse/trunk/rtmp.py

I know it works with the 9.x flash player (long time since I tried it
though) and flv files.

/gabriel

Reply all
Reply to author
Forward
0 new messages