[Mp4-tech] RE: regarding H.264 [RTP]
Luca
lukinus gmail.com
Wed Feb 27 19:02:41 EST 2008
> I am student and need to get RTP info from JM 13.2 reference encoder.
> This info might be somethig like this:
>
> Seq. no, Frame #, Slice #, Slice type, Slice size, Slice time stamp
>
> The idea is to put one slice in one NALU/RTP packet. I am using
> configuration file encoder1.cfg, in which the following 6 lines are
> changed as following (as compared to the encoder.cfg provided in the
> JM package):
>
> FramesToBeEncoded = 10 # Number of frames to be coded
> OutFileMode = 1 # Output file mode, 0:Annex B, 1:RTP
> SliceMode = 2 # Slice mode (0=off 1=fixed #mb in
> slice 2=fixed #bytes in slice 3=use callback)
> SliceArgument = 1000 # Slice argument (Arguments to modes 1
> and 2 above)
> RateControlEnable = 1 # 0 Disable, 1 Enable
> Bitrate = 64000 # Bitrate(bps)
>
> I am not sure of many aspects of this config, e.g. if one slice is
> really being placed in each NALU and RTP packet. Also using the
> rtpdump tool, I generate an info file which has info about RTP
> packets, does not contain a priority field of NALU (2 bits in NALU
> header, called NRI), which I am looking forward to.
>
> Could somebody help me in this stuff. I am a newbie to work in this domain.
>
> thanks many.
> regards
> basim
Dear Basim,
If you want a 264 file in RTP format, with 1000 Bytes per slice fixing
the bitrate to 64000 bps, your configuration file seems to be ok.
NAL Header + [Slice Header + Slice] = NALU. RTP Header + NALU = RTP Packet
In RTP format, the 264 file (for each RTP packet) looks like
| length of the packet (fixed 4 Bytes) | Intime word (fixed 4 Bytes) |
RTP Header (fixed 12 Bytes) | NAL Header (fixed 1 Byte) | NAL Payload
(variable < 1000 Bytes in your case) |
Hope this helps. If not, just ask.
Luca.
More information about the Mp4-tech
mailing list