Ethereal-dev: Re: [Ethereal-dev] Ethereal addition for analysing RTP data

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Martin Regner" <martin.regner@xxxxxxxxx>
Date: Wed, 5 Mar 2003 20:28:54 +0100
Ronnie Sahlberg wrote:
>Very very cool,
>This would be very nice to have in 0.9.10
>
>
>I think you generated the diff in the reverse order.
>the diff looks like it wants to remove the tap from packet-rtp.c,
>that is no problem, patch is bright enough to detect this and do the right
>thing
>anyway.
>
>But there seems to be one patch missing,
>where is the _rtp_info struct defined?
>is it in a missing patch to packet-rtp.h ?
>

Miha didn't include a packet-rtp.h, but wrote:

Miha Jemec wrote:
<in packet-rtp.h added following structure at the end:
<
<struct _rtp_info {
<          gboolean    info_padding_set;
<          gboolean    info_marker_set;
<          unsigned int info_payload_type;
<          unsigned int info_padding_count;
<          guint16     info_seq_num;
<         guint32     info_timestamp;
<         guint32     info_sync_src;
<         guint       info_data_len;
<};

It should not be so difficult to add support to save files in rtpdump format as an alternative. 
It's a very simple  file format.
http://www.cs.columbia.edu/IRT/software/rtptools/
I can maybe help with implementing that sometime in the future. 

Then it would be possible to replay audio (G.711, G.723, GSM, ...) and video (H.261, H.263, H.263+, MPEG-4)  towards e.g. JMF (Java Media Framework) or QuickTime Player.

I'm not sure exactly what codecs/payload types are supported by JMF and QuickTime Player but I think that I have got PCMA, PCMU, G.723, GSM, H.261, H.263 and some other codecs to work with JM Studio (a sample application included with JMF). 

I think I got PCMA, PCMU, G.723, GSM, H.261, H.263+ and some other codecs to work with QuickTime Player.
Both JMF and QuickTime Player should have support for more codecs that I haven't tried yet.

JM Player, included with JMF http://java.sun.com/products/java-media/jmf/2.1.1/download.html, can
listen for RTP packets on a certain udp-port by using the menu item File/Open RTP Session ....
If you have a file in rtpdump format it's just to use rtpplay (or a similar program that uses the rtpdump format) to send RTP packets towards JMPlayer/JMF.

It is also possible to use QuickTime Player together with a simple session decription protocol file (*.sdp) to view/listen to RTP-media sent by rtpplay.