webrtc/modules/audio_coding/neteq/tools
Alessio Bazzica 5ad789ceff Reland "NetEQ RTP Play: Optionally write output audio file"
This reverts commit c4b391a257.

Reason for revert: issue fixed

Original change's description:
> Revert "NetEQ RTP Play: Optionally write output audio file"
>
> This reverts commit 6330818ec8.
>
> Reason for revert: This breaks api/test/neteq_simulator_factory.cc, which unfortunately was not caught by our bots.
>
> Original change's description:
> > NetEQ RTP Play: Optionally write output audio file
> >
> > This CL makes the output audio file optional to more
> > quickly run neteq_rtpplay when no audio output is needed.
> > The CL also includes necessary adaptations because of pre-existing
> > dependencies (e.g., the output audio file name is used to create
> > the plotting script file names).
> >
> > The command line arguments are retro-compatible - i.e., same behavior
> > when specifying the output audio file and the new flag
> > --output_files_base_name is not used.
> >
> > This CL also includes a test script with which the retro-compatibility
> > has been verified.
> >
> > Bug: webrtc:10337
> > Change-Id: Ie3f301b3b2ed0682fb74426d9cf452396f2b112b
> > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/126224
> > Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
> > Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#27067}
>
> TBR=henrik.lundin@webrtc.org,alessiob@webrtc.org,ivoc@webrtc.org
>
> Change-Id: I0c63a8ba9566ef567ee398f571f2a511916fa742
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: webrtc:10337
> Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127293
> Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
> Commit-Queue: Ivo Creusen <ivoc@webrtc.org>
> Cr-Commit-Position: refs/heads/master@{#27078}

TBR=henrik.lundin@webrtc.org,alessiob@webrtc.org,ivoc@webrtc.org

Change-Id: Ia7061f7c2d69db61638ad612e82cd429eb49d539
Bug: webrtc:10337
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127540
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Reviewed-by: Alessio Bazzica <alessiob@webrtc.org>
Commit-Queue: Alessio Bazzica <alessiob@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27106}
2019-03-13 15:33:29 +00:00
..
audio_checksum.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
audio_loop.cc Delete unused includes of assert.h 2018-10-04 14:01:44 +00:00
audio_loop.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
audio_sink.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_sink.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
constant_pcm_packet_source.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
constant_pcm_packet_source.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
DEPS Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
encode_neteq_input.cc Let NetEq use the PLC output from a decoder 2018-09-14 07:05:20 +00:00
encode_neteq_input.h Enable clang::find_bad_constructs for audio_coding (part 1/2). 2018-07-20 13:07:47 +00:00
fake_decode_from_file.cc Remove a legacy DCHEC in FakeDecodeFromFile. 2018-07-09 19:56:58 +00:00
fake_decode_from_file.h Implement PacketDuration() for FakeDecoderFromFile. 2018-06-29 08:32:36 +00:00
input_audio_file.cc 2nd reland of https://webrtc-review.googlesource.com/c/src/+/114883 2019-02-22 09:59:01 +00:00
input_audio_file.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
input_audio_file_unittest.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
neteq_delay_analyzer.cc Fix no_global_constructors/no_exit_time_destructors in Neteq. 2018-09-11 06:39:14 +00:00
neteq_delay_analyzer.h Delete root header file typedef.h. 2018-07-25 14:59:26 +00:00
neteq_event_log_input.cc RtcEventLogSource no longer uses deprecated parsing functions. 2018-10-11 16:13:17 +00:00
neteq_event_log_input.h RtcEventLogSource no longer uses deprecated parsing functions. 2018-10-11 16:13:17 +00:00
neteq_input.cc Make fewer copies when using StringBuilder. 2018-09-24 09:39:19 +00:00
neteq_input.h Remove unnecessary includes of common_types.h 2018-12-07 21:21:13 +00:00
neteq_packet_source_input.cc RtcEventLogSource no longer uses deprecated parsing functions. 2018-10-11 16:13:17 +00:00
neteq_packet_source_input.h RtcEventLogSource no longer uses deprecated parsing functions. 2018-10-11 16:13:17 +00:00
neteq_performance_test.cc (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
neteq_performance_test.h Delete root header file typedef.h. 2018-07-25 14:59:26 +00:00
neteq_quality_test.cc (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
neteq_quality_test.h Fix -Wextra-semi warnings. 2019-02-25 09:22:51 +00:00
neteq_replacement_input.cc Avoid wrong parsing of padding length and its use in NetEq simulation. 2018-09-12 11:23:03 +00:00
neteq_replacement_input.h Reformat the WebRTC code base 2018-06-19 14:00:39 +00:00
neteq_rtpplay.cc Reland "NetEQ RTP Play: Optionally write output audio file" 2019-03-13 15:33:29 +00:00
neteq_rtpplay_test.sh Reland "NetEQ RTP Play: Optionally write output audio file" 2019-03-13 15:33:29 +00:00
neteq_stats_getter.cc (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
neteq_stats_getter.h Adding NetEq lifetime stats to event log visualizer. 2018-06-26 11:27:09 +00:00
neteq_stats_plotter.cc Restructure neteq_rtpplay into a library with small executable wrapper. 2018-09-03 10:42:40 +00:00
neteq_stats_plotter.h Restructure neteq_rtpplay into a library with small executable wrapper. 2018-09-03 10:42:40 +00:00
neteq_test.cc Prevent updating state in the delay manager if the packet was reordered. 2019-02-06 15:30:54 +00:00
neteq_test.h Delete method DecoderDatabase::RegisterPayload(...NetEqDecoder...) 2019-01-11 07:39:45 +00:00
neteq_test_factory.cc Reland "NetEQ RTP Play: Optionally write output audio file" 2019-03-13 15:33:29 +00:00
neteq_test_factory.h Reland "NetEQ RTP Play: Optionally write output audio file" 2019-03-13 15:33:29 +00:00
output_audio_file.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
output_wav_file.h 2nd reland of https://webrtc-review.googlesource.com/c/src/+/114883 2019-02-22 09:59:01 +00:00
packet.cc RtcEventLogSource no longer uses deprecated parsing functions. 2018-10-11 16:13:17 +00:00
packet.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
packet_source.cc RtcEventLogSource no longer uses deprecated parsing functions. 2018-10-11 16:13:17 +00:00
packet_source.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
packet_unittest.cc Reformat the WebRTC code base 2018-06-19 14:00:39 +00:00
README.md Reland "NetEQ RTP Play: Optionally write output audio file" 2019-03-13 15:33:29 +00:00
resample_input_audio_file.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
resample_input_audio_file.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
rtc_event_log_source.cc Include absl/memory/memory.h if absl::make_unique is used 2019-01-08 20:08:32 +00:00
rtc_event_log_source.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
rtp_analyze.cc Reland "Prefix flag macros with WEBRTC_." 2018-10-19 15:06:43 +00:00
rtp_encode.cc Prepare for splitting FrameType into AudioFrameType and VideoFrameType 2019-03-07 10:12:57 +00:00
rtp_file_source.cc RtcEventLogSource no longer uses deprecated parsing functions. 2018-10-11 16:13:17 +00:00
rtp_file_source.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
rtp_generator.cc Reformat the WebRTC code base 2018-06-19 14:00:39 +00:00
rtp_generator.h (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
rtp_jitter.cc Reland "Prefix flag macros with WEBRTC_." 2018-10-19 15:06:43 +00:00
rtpcat.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00

NetEQ RTP Play tool

Testing of the command line arguments

The command line tool neteq_rtpplay can be tested by running neteq_rtpplay_test.sh, which is not use on try bots, but it can be used before submitting any CLs that may break the behavior of the command line arguments of neteq_rtpplay.

Run neteq_rtpplay_test.sh as follows from the src/ folder:

src$ ./modules/audio_coding/neteq/tools/neteq_rtpplay_test.sh  \
  out/Default/neteq_rtpplay  \
  resources/audio_coding/neteq_opus.rtp  \
  resources/short_mixed_mono_48.pcm

You can replace the RTP and PCM files with any other compatible files. If you get an error using the files indicated above, try running gclient sync.

Requirements: awk and md5sum.