Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Issue 1297653002: Tool to convert RtcEventLog files to RtpDump format. (Closed)

Created:
5 years, 4 months ago by ivoc
Modified:
5 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, stefan-webrtc, tterriberry_mozilla.com, qiang.lu, niklas.enbom, andresp, perkj_webrtc, mflodman
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Tool to convert RtcEventLog files to RtpDump format. This is a small utility that reads RtcEventLog files, and converts the RTP headers within it to RtpDump format. All other types of events are ignored. Three command-line flags are supported, --audio-only, --video-only and --data-only. When one of these flags is supplied, only RTP packets that match the requested type are converted. BUG=webrtc:4741 R=henrik.lundin@webrtc.org, kjellander@webrtc.org, stefan@webrtc.org, terelius@webrtc.org Committed: https://crrev.com/35624c2c3686a2ad40daffe073aa78507b0ef88e Cr-Commit-Position: refs/heads/master@{#9980}

Patch Set 1 : Initial version #

Total comments: 13

Patch Set 2 : Added flag for SSRC-based filtering. #

Total comments: 4

Patch Set 3 : Addressed review comments from hlundin. #

Patch Set 4 : Added missing include. #

Total comments: 5

Patch Set 5 : Changed the meaning of the command-line flags, based on Stefan's feedback. #

Patch Set 6 : Added support for logging RTCP packets. #

Total comments: 5

Patch Set 7 : Inverted the command line flags and fixed bug when converting RTCP packets. #

Total comments: 2

Patch Set 8 : Rewrote SSRC parsing function to use stringstream instead of strtoul #

Patch Set 9 : Fixed order of includes. #

Patch Set 10 : Rebase. #

Patch Set 11 : Changed CHECK to RTC_CHECK. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -1 line) Patch
M webrtc/test/rtp_file_writer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 3 comments Download
A webrtc/video/rtc_event_log2rtp_dump.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +207 lines, -0 lines 0 comments Download
M webrtc/webrtc.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (9 generated)
ivoc
Please have a look at this conversion tool. Once terelius@' CL for parsing convenience functions ...
5 years, 4 months ago (2015-08-14 13:51:27 UTC) #2
terelius
lgtm Maybe we should consider making a separate folder for the event log? I think ...
5 years, 4 months ago (2015-08-17 08:19:49 UTC) #3
hlundin-webrtc
https://codereview.webrtc.org/1297653002/diff/1/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/1/webrtc/video/rtc_event_log2rtp_dump.cc#newcode26 webrtc/video/rtc_event_log2rtp_dump.cc:26: DEFINE_bool(audio_only, Feature request: Can you add a flag to ...
5 years, 4 months ago (2015-08-17 11:14:34 UTC) #4
terelius
https://codereview.webrtc.org/1297653002/diff/1/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/1/webrtc/video/rtc_event_log2rtp_dump.cc#newcode81 webrtc/video/rtc_event_log2rtp_dump.cc:81: const webrtc::rtclog::Event& event = event_stream.stream(i); On 2015/08/17 11:14:34, hlundin-webrtc ...
5 years, 4 months ago (2015-08-17 11:39:06 UTC) #5
ivoc
https://codereview.webrtc.org/1297653002/diff/1/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/1/webrtc/video/rtc_event_log2rtp_dump.cc#newcode26 webrtc/video/rtc_event_log2rtp_dump.cc:26: DEFINE_bool(audio_only, On 2015/08/17 11:14:34, hlundin-webrtc wrote: > Feature request: ...
5 years, 4 months ago (2015-08-21 14:30:58 UTC) #6
hlundin-webrtc
LGTM with two nits. https://codereview.webrtc.org/1297653002/diff/1/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/1/webrtc/video/rtc_event_log2rtp_dump.cc#newcode81 webrtc/video/rtc_event_log2rtp_dump.cc:81: const webrtc::rtclog::Event& event = event_stream.stream(i); ...
5 years, 3 months ago (2015-08-26 09:24:37 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297653002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297653002/40001
5 years, 3 months ago (2015-08-26 09:39:53 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/501)
5 years, 3 months ago (2015-08-26 09:44:16 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297653002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297653002/60001
5 years, 3 months ago (2015-08-26 13:54:57 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/506)
5 years, 3 months ago (2015-08-26 13:58:56 UTC) #15
stefan-webrtc
https://codereview.webrtc.org/1297653002/diff/60001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/60001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode44 webrtc/video/rtc_event_log2rtp_dump.cc:44: "RTPdump file."); Maybe these flags should be: --video (includes ...
5 years, 3 months ago (2015-09-07 11:12:21 UTC) #16
stefan-webrtc
https://codereview.webrtc.org/1297653002/diff/60001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/60001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode44 webrtc/video/rtc_event_log2rtp_dump.cc:44: "RTPdump file."); On 2015/09/07 11:12:20, stefan-webrtc (holmer) wrote: > ...
5 years, 3 months ago (2015-09-07 11:13:20 UTC) #17
ivoc
Thanks for the feedback. See my replies below. https://codereview.webrtc.org/1297653002/diff/20001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/20001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode21 webrtc/video/rtc_event_log2rtp_dump.cc:21: #include ...
5 years, 3 months ago (2015-09-09 09:18:56 UTC) #18
stefan-webrtc
https://codereview.webrtc.org/1297653002/diff/60001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/60001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode44 webrtc/video/rtc_event_log2rtp_dump.cc:44: "RTPdump file."); On 2015/09/09 09:18:56, ivoc wrote: > On ...
5 years, 3 months ago (2015-09-09 09:27:16 UTC) #19
ivoc
Added support for RTCP packets, and two additional command-line flags. The --rtp flag indicates that ...
5 years, 3 months ago (2015-09-09 13:23:24 UTC) #20
ivoc
https://codereview.webrtc.org/1297653002/diff/60001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/60001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode44 webrtc/video/rtc_event_log2rtp_dump.cc:44: "RTPdump file."); On 2015/09/09 09:27:16, stefan-webrtc (holmer) wrote: > ...
5 years, 3 months ago (2015-09-11 08:05:24 UTC) #21
hlundin-webrtc
https://codereview.webrtc.org/1297653002/diff/100001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/100001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode34 webrtc/video/rtc_event_log2rtp_dump.cc:34: false, Shouldn't they all be default true? https://codereview.webrtc.org/1297653002/diff/100001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode188 webrtc/video/rtc_event_log2rtp_dump.cc:188: ...
5 years, 3 months ago (2015-09-11 10:31:47 UTC) #22
ivoc
https://codereview.webrtc.org/1297653002/diff/100001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/100001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode34 webrtc/video/rtc_event_log2rtp_dump.cc:34: false, On 2015/09/11 10:31:47, hlundin-webrtc wrote: > Shouldn't they ...
5 years, 3 months ago (2015-09-11 12:34:40 UTC) #23
hlundin-webrtc
lgtm again. https://codereview.webrtc.org/1297653002/diff/100001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/100001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode188 webrtc/video/rtc_event_log2rtp_dump.cc:188: if (FLAGS_rtcp && event.has_type() && event.type() == ...
5 years, 3 months ago (2015-09-11 13:04:11 UTC) #24
stefan-webrtc
LG, but what do you think of my last suggestion? https://codereview.webrtc.org/1297653002/diff/120001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/120001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode56 ...
5 years, 3 months ago (2015-09-11 14:10:29 UTC) #25
ivoc
https://codereview.webrtc.org/1297653002/diff/120001/webrtc/video/rtc_event_log2rtp_dump.cc File webrtc/video/rtc_event_log2rtp_dump.cc (right): https://codereview.webrtc.org/1297653002/diff/120001/webrtc/video/rtc_event_log2rtp_dump.cc#newcode56 webrtc/video/rtc_event_log2rtp_dump.cc:56: bool ParseSsrc(const std::string& str, uint32_t* ssrc) { On 2015/09/11 ...
5 years, 3 months ago (2015-09-17 08:38:45 UTC) #26
stefan-webrtc
lgtm
5 years, 3 months ago (2015-09-17 10:36:47 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1297653002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1297653002/200001
5 years, 3 months ago (2015-09-17 11:23:52 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android on tryserver.webrtc (JOB_TIMED_OUT, no build URL) ...
5 years, 3 months ago (2015-09-17 13:24:10 UTC) #31
kjellander_webrtc
https://codereview.webrtc.org/1297653002/diff/200001/webrtc/test/rtp_file_writer.cc File webrtc/test/rtp_file_writer.cc (left): https://codereview.webrtc.org/1297653002/diff/200001/webrtc/test/rtp_file_writer.cc#oldcode43 webrtc/test/rtp_file_writer.cc:43: RTC_CHECK_GE(packet->original_length, packet->length); Can you explain why this check needs ...
5 years, 3 months ago (2015-09-17 14:49:36 UTC) #33
ivoc
https://codereview.chromium.org/1297653002/diff/200001/webrtc/test/rtp_file_writer.cc File webrtc/test/rtp_file_writer.cc (left): https://codereview.chromium.org/1297653002/diff/200001/webrtc/test/rtp_file_writer.cc#oldcode43 webrtc/test/rtp_file_writer.cc:43: RTC_CHECK_GE(packet->original_length, packet->length); On 2015/09/17 14:49:36, kjellander (webrtc) wrote: > ...
5 years, 3 months ago (2015-09-17 14:53:29 UTC) #34
kjellander_webrtc
lgtm https://codereview.webrtc.org/1297653002/diff/200001/webrtc/test/rtp_file_writer.cc File webrtc/test/rtp_file_writer.cc (left): https://codereview.webrtc.org/1297653002/diff/200001/webrtc/test/rtp_file_writer.cc#oldcode43 webrtc/test/rtp_file_writer.cc:43: RTC_CHECK_GE(packet->original_length, packet->length); On 2015/09/17 14:53:29, ivoc wrote: > ...
5 years, 3 months ago (2015-09-18 05:41:18 UTC) #35
ivoc
Committed patchset #11 (id:200001) manually as 35624c2c3686a2ad40daffe073aa78507b0ef88e (presubmit successful).
5 years, 3 months ago (2015-09-18 07:47:12 UTC) #36
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/35624c2c3686a2ad40daffe073aa78507b0ef88e Cr-Commit-Position: refs/heads/master@{#9980}
5 years, 3 months ago (2015-09-18 07:47:15 UTC) #37
kjellander (google.com)
This breaks the bots in https://build.chromium.org/p/chromium.webrtc.fyi because all our test code should be inside "include_tests==1" ...
5 years, 3 months ago (2015-09-18 10:40:10 UTC) #39
grunell (dont use)
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.webrtc.org/1353123002/ by grunell@google.com. ...
5 years, 3 months ago (2015-09-18 10:48:02 UTC) #40
Henrik Grunell WebRTC
5 years, 3 months ago (2015-09-18 10:49:54 UTC) #41
Message was sent while issue was closed.
A revert of this CL (patchset #11 id:200001) has been created in
https://codereview.webrtc.org/1345983009/ by henrikg@webrtc.org.

The reason for reverting is: Breaks Chromium WebRTC FYI bots.

Updating projects from gyp files...
gyp: /b/build/slave/linux/build/src/third_party/gflags/gflags.gyp not found
(cwd: /b/build/slave/linux/build)
Error: Command '/usr/bin/python src/build/gyp_chromium' returned non-zero exit
status 1 in /b/build/slave/linux/build
.

Powered by Google App Engine
This is Rietveld 408576698