Lee, John (Sydney)
2009-Aug-19 07:35 UTC
[asterisk-users] Newbie: How to copy track from CD for MOH without getting "Junk at beginning of frame ..."
I was copying tracks from CD into mp3 files so that I could use it in Asterisk 1.4.21.2 MOH. (BTW, I have already secured proper license to play MOH to callers.) I used MS Media Player version 11 and rip it at 128kbps (smallest) but whenever I listen to MOH, I saw the following message on the Asterisk console. WARNING[20829]: mp3/interface.c:215 decodeMP3: Junk at the beginning of frame 49443303 I tried it with different bit rate (320 kbps) and the same error message appeared. I used the following musiconhold.conf [classical] mode=files directory=/var/lib/asterisk/moh/classical random=yes Are there any Asterisk+Audio expert that can offer me some advice?
Steve Edwards
2009-Aug-19 13:30 UTC
[asterisk-users] Newbie: How to copy track from CD for MOH without getting "Junk at beginning of frame ..."
On Wed, 19 Aug 2009, Lee, John (Sydney) wrote:> I was copying tracks from CD into mp3 files so that I could use it in > Asterisk 1.4.21.2 MOH. > > Are there any Asterisk+Audio expert that can offer me some advice?Don't use MP3. Why would you want to burn CPU cycles decompressing the same stuff over and over? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Steve Edwards
2009-Aug-20 01:11 UTC
[asterisk-users] Newbie: How to copy track from CD for MOH without getting "Junk at beginning of frame ..."
On Thu, 20 Aug 2009, Lee, John (Sydney) wrote:>> Convert the file to the native codec(s) in which it will be played. >> > Alex, could you please elaborate on this? I am no audio guy. > On Media player, I can rip it into mp3 or wav or windows media audio. > Which one should I use?Neither. If your channels use gsm|ulaw|g729|whatever, encode your sound files (prompts, music on hold, everything) in that format. If you have your sound files encoded with the same codec as the codec your channels are using, Asterisk does not need to transcode so the "cost" is minimized. The "workflow" is to rip the cd to disk and then encode to the desired encodings. cdparanoia is a great ripper. cdda2wav is also common. sox is probably the most commonly used tool for encoding. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000