<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri, sans-serif" size="2">
<div>Hi,</div>
<div>I’d like to use the sample wis-streamer to encode the wav file into AAC and stream in TS over RTP.</div>
<div> </div>
<div>Does the following sequence makes sense:</div>
<div> </div>
<div style="text-indent: 36pt; "><font size="2">WavFileSrc* pcm = new WavFileSrc(*env, filename);</font></div>
<div> </div>
<div> <font size="2">//Create AAC encoder filter</font></div>
<div><font size="2"> audioSource = AACAudioEncoder::createNew(*env, pcm, 1, 8000, 0);</font></div>
<div><font size="2"> </font></div>
<div><font size="2"> tsSource = MPEG2TransportStreamFromESSource::createNew(*env);</font></div>
<div><font size="2"> tsSource->addNewAudioSource(audioSource, 2);</font></div>
<div><font size="2"> </font></div>
<div><font size="2"> MPEG2TransportStreamAccumulator* acc = MPEG2TransportStreamAccumulator::createNew(*env, tsSource);</font></div>
<div><font size="2"> </font></div>
<div><font size="2"> //Create sink</font></div>
<div><font size="2"> char const* encoderConfigStr = /*audioNumChannels == 2 ? "1210": */ "1208";</font></div>
<div><font size="2"> audioSink = MPEG4GenericRTPSink::createNew(*env, rtpGroupsock, 96, 8000, "audio", "AAC-hbr", encoderConfigStr, 1);</font></div>
<div><font size="2"> </font></div>
<div><font size="2"> Boolean b = audioSink->startPlaying(*acc, afterPlaying, audioSink);</font></div>
<div> <font size="2">env->taskScheduler().doEventLoop(&watch); </font></div>
<div> </div>
</font>
</body>
</html>