[Live-devel] AAC in TS streaming
Stas Desyatnlkov
stas at tech-mer.com
Wed Sep 30 07:15:36 PDT 2009
Hi,
I'd like to use the sample wis-streamer to encode the wav file into AAC and stream in TS over RTP.
Does the following sequence makes sense:
WavFileSrc* pcm = new WavFileSrc(*env, filename);
//Create AAC encoder filter
audioSource = AACAudioEncoder::createNew(*env, pcm, 1, 8000, 0);
tsSource = MPEG2TransportStreamFromESSource::createNew(*env);
tsSource->addNewAudioSource(audioSource, 2);
MPEG2TransportStreamAccumulator* acc = MPEG2TransportStreamAccumulator::createNew(*env, tsSource);
//Create sink
char const* encoderConfigStr = /*audioNumChannels == 2 ? "1210": */ "1208";
audioSink = MPEG4GenericRTPSink::createNew(*env, rtpGroupsock, 96, 8000, "audio", "AAC-hbr", encoderConfigStr, 1);
Boolean b = audioSink->startPlaying(*acc, afterPlaying, audioSink);
env->taskScheduler().doEventLoop(&watch);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090930/d6d13213/attachment.html>
More information about the live-devel
mailing list