Discussion:
AAC RTP problem (crackling sound)
Sébastien HEUZE
2014-08-25 09:15:36 UTC
Permalink
Hello,

I'm using live555 in a swift (iOS) application, and I would like to stream
AAC through this phone using RTP.

I have done a lot of test using MP3 and it works fine. (I'm using VLC
and/or WireShark to capture the stream)

But I can't use AAC.

I tried to use ADTSAudioFileSource and MPEG4GenericRTPSink but I get a
crackling sound instead (Noise) when I try to capture it.

sessionStateAAC.source = ADTSAudioFileSource::createNew(*env, inputFileNameAAC);

sessionStateAAC.sink = MPEG4GenericRTPSink::createNew(*env,
sessionStateAAC.rtpGroupsock, 96, 44100, "audio",
"AAC-hbr",sessionStateAAC.source->configStr(),2);


How can I get rid of this problem ? Am I doing it wrong ?


Thanks, we are trying to get it work since 3 (working) days now
Ross Finlayson
2014-08-26 08:28:30 UTC
Permalink
Post by Sébastien HEUZE
But I can't use AAC.
I tried to use ADTSAudioFileSource and MPEG4GenericRTPSink but I get a crackling sound instead (Noise) when I try to capture it.
sessionStateAAC.source = ADTSAudioFileSource::createNew(*env, inputFileNameAAC);
Is "inputFileNameAAC" really an ADTS-format AAC file? To test this, copy it to a computer that's running the "LIVE555 Media Server" <http://www.live555.com/mediaServer/>, and rename it to have a ".aac" filename extension (e.g., "test.aac"). Then, try streaming it from the "LIVE555 Media Server". If this doesn't work, then your file is not an ADTS-format AAC file (and that's your problem).

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

Loading...