Home | History | Annotate | Download | only in tools

Lines Matching refs:rtp

45 DEFINE_int32(pcmu, 0, "RTP payload type for PCM-u");
48 DEFINE_int32(pcma, 8, "RTP payload type for PCM-a");
51 DEFINE_int32(ilbc, 102, "RTP payload type for iLBC");
54 DEFINE_int32(isac, 103, "RTP payload type for iSAC");
57 DEFINE_int32(isac_swb, 104, "RTP payload type for iSAC-swb (32 kHz)");
60 DEFINE_int32(pcm16b, 93, "RTP payload type for PCM16b-nb (8 kHz)");
63 DEFINE_int32(pcm16b_wb, 94, "RTP payload type for PCM16b-wb (16 kHz)");
66 DEFINE_int32(pcm16b_swb32, 95, "RTP payload type for PCM16b-swb32 (32 kHz)");
69 DEFINE_int32(pcm16b_swb48, 96, "RTP payload type for PCM16b-swb48 (48 kHz)");
72 DEFINE_int32(g722, 9, "RTP payload type for G.722");
75 DEFINE_int32(avt, 106, "RTP payload type for AVT/DTMF");
78 DEFINE_int32(red, 117, "RTP payload type for redundant audio (RED)");
81 DEFINE_int32(cn_nb, 13, "RTP payload type for comfort noise (8 kHz)");
84 DEFINE_int32(cn_wb, 98, "RTP payload type for comfort noise (16 kHz)");
87 DEFINE_int32(cn_swb32, 99, "RTP payload type for comfort noise (32 kHz)");
90 DEFINE_int32(cn_swb48, 100, "RTP payload type for comfort noise (48 kHz)");
93 DEFINE_bool(codec_map, false, "Prints the mapping between RTP payload type and "
95 DEFINE_bool(dummy_rtp, false, "The input file contains ""dummy"" RTP data, "
98 "A PCM file that will be used to populate ""dummy"" RTP packets");
121 std::string usage = "Tool for decoding an RTP dump file using NetEq.\n"
124 " input.rtp output.pcm\n";
165 // Read RTP file header.
167 std::cerr << "Wrong format in RTP file" << std::endl;
185 NETEQTEST_RTPpacket* rtp;
188 rtp = new NETEQTEST_RTPpacket();
193 rtp = new NETEQTEST_DummyRTPpacket();
198 rtp->readFromFile(in_file);
199 if (rtp->dataLen() < 0) {
200 std::cout << "Warning: RTP file is empty" << std::endl;
221 int time_now_ms = rtp->time(); // Start immediately with the first packet.
222 int next_input_time_ms = rtp->time();
230 while (rtp->dataLen() >= 0) {
232 while (time_now_ms >= next_input_time_ms && rtp->dataLen() >= 0) {
233 if (rtp->dataLen() > 0) {
234 // Parse RTP header.
236 rtp->parseHeader(&rtp_header);
237 uint8_t* payload_ptr = rtp->payload();
238 size_t payload_len = rtp->payloadLen();
251 rtp->time() * sample_rate_hz / 1000);
258 rtp->readFromFile(in_file);
260 // At this point |rtp| contains the packet *after* |next_rtp|.
261 // Swap RTP packet objects between |rtp| and |next_rtp|.
262 NETEQTEST_RTPpacket* temp_rtp = rtp;
263 rtp = next_rtp;
266 next_input_time_ms = rtp->time();
305 delete rtp;