Play captured h263 RTP video

Source: Internet
Author: User

Play captured h263 RTP video

1. Use ethereal/Wireshark to capture RTP data packets and select the h263 filter condition to save
2. Statistics/RTP streams/streams Analysis
3. Save payload select to save raw data
4. Use ffplay to play ffplay-F h263 File

Play RTP audio
Http://www.ethereal.com/lists/ethereal-users/200401/msg00264.html

Save the RTP stream in rtpdump format
(Analyze/statistics/RTP streams/show all.../Save As...) and
Use e.g. rtpplay to send the RTP stream towards some program that supports
G.726-32 codec and can listen for RTP packets on
A certain port. QuickTime player can listen on a specific port (or specific
Ports) by using an SDP-file (but this only works for the codecs that are
Suported in QuickTime ).

I don't know if QuickTime player supports g.726-32 K (and exactly what you
Wocould need to write in the SDP-file if g726 is supported)
This document says QuickTime supports ADPCM at least, but I don't know that
That cocould mean that g.721/G.726-32 is supported.
Http://www.isholf.is/klipklap/quicktime/

Below is a short summary how you can use QuickTime player together
Rtpplayer to Replay audio and video.
I have used this method for H.263-2000 video, H.261 video, PCMU audio, PCMA
Audio, Amr audio and some other codes.

You can experiment with the avican sample files if you want (H.261 video and
PCMU audio RTP packets in libpcap compatible files ):
Http://netgroup-serv.polito.it/avican/examples/index.htm

1) install QuickTime player

2) download rtptools http://www.cs.columbia.edu/IRT/software/rtptools/

3) Prepare an *. SDP file for the codecs/payloadtypes/ports you want to use
(The other information in the SDP-file seems not to be important ).
I have put in a sample below of the SDP-file I used when testing with
Avican sample files.

4) Prepare rtpdump files with Ethereal (analyze/statistics/RTP streams/show
All.../Save As...) for the two streams.
You'll have to use decode as .. to decode port 5000 and 6000 as RTP in
This specific case.

5) Start up QuickTime player and use file/Open movie in New player... and
Select the SDP-file you prepared
(Or it might be enough to double click on the SDP-file if SDP files are
Asociated with QuickTime player)

6) Use rtpplay to send the RTP packets (audio and/or video) towards your own
IP-address on the port numbers used in the SDP-file:
<Rtpplay-T-F audiopcmu_0.rtp 127.0.0.1/5000
You will need two shells in order to send both audio and video
<Rtpplay-T-F videoh261_31.rtp 127.0.0.1/5002

7) you'll have to close the QuickTime player window between each time you
Start again with sending media towards quick time player
(I guess this is because it expects the packets to come in sequence order ).

PS! It shoshould also be possible to use JMF jmstudio as an alternative
QuickTime player in this case since jmstudio also supports both H.261 and
PCMU.
You will not use a SDP file then (and thus it is not possible to use this
Method for Dynamic payload types ).
You use the menu alternative file/Open RTP session... and specify the port
To listen on (the easiest is to use the same port for both audio and video)
And
Send the RTP packets to that port with rtpplay.

-------------- Testfile. SDP ---------------------------------
V = 0

O = mhandley 2890844526 2890842807 in ip4 10.10.10.10

S = sdptest

I = SDP file for g711 audio on port 5000 and h261 video on port 5002

C = in ip4 10.10.10.10

T = 0

M = audio 5000 RTP/AVP 0 8

A = rtpmap: 0 PCMU/8000

A = rtpmap: 8pcma/8000

M = video 5002 RTP/AVP 31

A = rtpmap: 31 h261/90000

------------------------------------------------
From: "jffdsaklj dsjk"
>
> I 've followed the "Martin's tutorial ":
> Http://www.ethereal.com/lists/ethereal-users/200401/msg00264.html in
> Order to save the audio/video RTP streams and then replay with
> Rtpplay utility.
> I can replay the video stream in jmstudio but not the audio stream
> (Perhaps by some codec problem) But I can replay neither video nor
> Audio streams with QuickTime player.

JMF/jmstudio doesn't support siren codec, at least what I know.

Jmstudio supports H.263 video (RFC 2190 ).
Http://java.sun.com/products/java-media/jmf/2.1.1/formats.html

>
> I Have A H.263 video stream (payload code: 34) and a siren audio
> Stream (payload code: 111). I 've checked both payload codes in
> Ethereal, and the audio stream is considered unknown by ethereal.
>

> A = rtpmap: 34 h263/90000
> A = rtpmap: 31 h261/90000

> When I start the rtpplay utility with the stored RTP streams,
> QuickTime start playing (because the second counter is increasing)
> It doesn' t replay sound or music. I 've tested with different
> Mappings of the SDP file but with no positive result.
>
> What's the problem with QuickTime ?.
>

I think QuickTime player supports H.263-2000 (rfc2429) and/or H.263-1998 (rfc2429)
But it seems not to support the old H.263 (rfc2190 ).
H.263 (rfc2190) is the codec corresponding to payload type 34.

I don't think QuickTime player supports siren codec.

I'm not sure how you cocould replay siren codec right now.
I will try to find some more information about that.

Note: quick time only supports H263-1998 and H263-2000

1. Use ethereal/Wireshark to capture RTP data packets and select the h263 filter condition to save
2. Statistics/RTP streams/show all streams
3. Save As to rtpdump format
4. Use rtpplay to send RTP, rtpplay-T-F file IP/Port
5. Create an SDP File
6. Play with QuickTime

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.