Mehmet Avcioglu
2013-Feb-18 00:59 UTC
[asterisk-users] ControlPlayback unable to play MixMonitor files, Premature EOF
I have a strange problem with MixMonitor and ControlPlayback,
I am recording wav files
MixMonitor(/path/filename.wav,b)
When I try to play them back, I get no audio, dialplan continues to the next
line as if the sound file is 0 seconds long
ControlPlayback(/path/filename)
I can play the file in other programs and verify there is sound there
If I touch the file with sox, it will start working
sox /path/filename.wav /path/filename-trim.wav trim 1
ControlPlayback(/path/filename-trim) ; Works
Both files look the same
/path/filename.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16
bit, mono 8000 Hz
/path/filename-trim.wav: RIFF (little-endian) data, WAVE audio, Microsoft
PCM, 16 bit, mono 8000 Hz
However the sox command above gives a "Premature EOF" warning message
for the input wav file. I suspect this is the problem. Why would I be creating
files using MixMonitor that have a premature end of file and what can I do to
avoid this?
Using Asterisk 1.8.19.
Thanks
--
Mehmet Avcioglu
mehmet at activecom.net
Christopher Harrington
2013-Feb-18 15:38 UTC
[asterisk-users] ControlPlayback unable to play MixMonitor files, Premature EOF
On Sun, Feb 17, 2013 at 6:59 PM, Mehmet Avcioglu <mehmet at activecom.net>wrote:> > I am recording wav files > MixMonitor(/path/filename.wav,b) > When I try to play them back, I get no audio, dialplan continues to the > next line as if the sound file is 0 seconds long >Using Asterisk 1.8.19.>I've encountered the same problem recently with Asterisk 11. You might try using StopMixMonitor prior to playback. -- -Chris Harrington ACSDi Office: 763.559.5800 Mobile Phone: 612.326.4248 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130218/7933528c/attachment.htm>