> -----Original Message----- > From: listas iPfone [mailto:listas@ipfone.com.br] > > Somebody knows why asterisk gives me that error wile playing .mp3files?> > The files play well but the message aperas any way: > WARNING[131089]: File format_mp3.c, Line 120 (mp3_read): Short read (0of> 4 > bytes) (No such file or directory)!Listas, You might try down-sampling the MP3 files to 160Kb/sec, mono through LAME or some other MP3 encoder. Prior to converting some royalty-free music from 320Kbs joint-stereo, mpg123/asterisk would barf on the file. Assumeably due to the original encoding (EAC under Windows/LAME). HTH, --- Gavin
Thanks Gavin! It works now. Miklos ----- Original Message ----- From: "Adams, Gavin" <gadams@promisant.com> To: <asterisk-users@lists.digium.com> Sent: Tuesday, September 23, 2003 9:51 AM Subject: RE: [Asterisk-Users] error message playing .mp3> -----Original Message----- > From: listas iPfone [mailto:listas@ipfone.com.br] > > Somebody knows why asterisk gives me that error wile playing .mp3files?> > The files play well but the message aperas any way: > WARNING[131089]: File format_mp3.c, Line 120 (mp3_read): Short read (0of> 4 > bytes) (No such file or directory)!Listas, You might try down-sampling the MP3 files to 160Kb/sec, mono through LAME or some other MP3 encoder. Prior to converting some royalty-free music from 320Kbs joint-stereo, mpg123/asterisk would barf on the file. Assumeably due to the original encoding (EAC under Windows/LAME). HTH, --- Gavin _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users
> -----Original Message----- > From: Steven Critchfield [mailto:critch@basesys.com] > On Tue, 2003-09-23 at 07:31, listas iPfone wrote: > > Hi All > > > > Somebody knows why asterisk gives me that error wile playing .mp3files?> > > > The files play well but the message aperas any way:> Make sure the file is i the correct directory. The error message says > the file doesn't exist.How would * be able to play the file if it didn't exist? MP3 playing code is touchy on more... "robust" MP3 files. Gavin's helpful hints: 1) Capture or down-convert to <= 160Kbps data rate 2) Mono 3) Remove all ID3 tags 4) Remove extraneous information such as album art, etc. Basically, use sox and LAME to strip the MP3 file to bare minimum. Also, I've found that some of the auto-magic Music-on-Hold (MOH) playing code doesn't always work, or throws exceptions/core dumps in the mohmp3 directory. I use the following bits in my extensions.conf to insure proper playback: exten => s,1,Answer exten => s,2,SetMusicOnHold,random ; or whatever MOH defined in musiconhold.conf exten => s,3,Dial ; or other commands after that [snip - top-posting response deleted] Regards, --- Gavin