I'm using vlc 1.1.9 on an ubuntu 11.04 machine.
I'm trying to get an rtp stream and send it to stdout where it will be used by asterisk for a music on hold application.
Some time ago i got it working but now I started a new machine and I can't really remember what I did...
The command I'm running is:
Code: Select all
vlc-wrapper rtp://@:5004 --sout=#transcode{acodec=ulaw,ab=64,samplerate=8000,channels=1}:std{access=file,mux=raw,dst=-}
But when the audio is played on the softphones, there's a repeated noise while the song can be "recognized" in the background.
Here are the messages shown by VLC:
Code: Select all
...
rtp warning: too many RTP sessions
rtp debug: removing RTP source (86c13faf)
main debug: removing module "mpeg_audio"
main debug: killing decoder fourcc `mpga', 0 PES in FIFO
main debug: removing a sout input (sout_input:0x9857838)
main debug: TIMER encoding audio frame : 0.003 ms - Total 4.134 ms / 1449 intvls (Avg 0.003 ms)
main debug: removing module "mpeg_audio"
main debug: removing module "avcodec"
main debug: Filter 0x986708c removed from chain
main debug: removing module "mpgatofixed32"
main debug: Filter 0x9859214 removed from chain
main debug: removing module "ugly_resampler"
main debug: Filter 0x9b536a4 removed from chain
main debug: removing module "simple_channel_mixer"
main debug: Filter 0x98a26bc removed from chain
main debug: removing module "audio_format"
mux_dummy debug: removing input
main warning: no more input streams for this mux
main debug: Program doesn't contain anymore ES
main debug: looking for packetizer module: 21 candidates
main debug: using packetizer module "mpeg_audio"
main debug: TIMER module_need() : 0.153 ms - Total 0.153 ms / 1 intvls (Avg 0.153 ms)
main debug: thread (decoder) created at priority 5 (input/decoder.c:301)
rtp debug: added RTP source (a80ac5e2)
main debug: thread started
mpeg_audio debug: MPGA channels:2 samplerate:44100 bitrate:128
main debug: adding a new sout input (sout_input:0x9867410)
stream_out_transcode debug: creating audio transcoding from fcc=`mpga' to fcc=`ulaw'
main debug: looking for decoder module: 30 candidates
main debug: using decoder module "mpeg_audio"
main debug: TIMER module_need() : 0.360 ms - Total 0.360 ms / 1 intvls (Avg 0.360 ms)
main debug: looking for encoder module: 12 candidates
avcodec debug: libavcodec already initialized
avcodec debug: found encoder PCM MU-LAW
main debug: using encoder module "avcodec"
main debug: TIMER module_need() : 0.735 ms - Total 0.735 ms / 1 intvls (Avg 0.735 ms)
stream_out_transcode debug: Looking for filter (mpga->s16l, channels 2->1, rate 44100->8000)
main debug: looking for audio filter module: 13 candidates
mpgatofixed32 debug: mpga->f32l, bits per sample: 0
main debug: using audio filter module "mpgatofixed32"
main debug: TIMER module_need() : 0.080 ms - Total 0.080 ms / 1 intvls (Avg 0.080 ms)
main debug: Filter 'mpgatofixed32' (0x986708c) appended to chain
main debug: looking for audio filter module: 13 candidates
main debug: using audio filter module "ugly_resampler"
main debug: TIMER module_need() : 0.073 ms - Total 0.073 ms / 1 intvls (Avg 0.073 ms)
main debug: Filter 'ugly_resampler' (0x9859214) appended to chain
main debug: looking for audio filter module: 13 candidates
main debug: using audio filter module "simple_channel_mixer"
main debug: TIMER module_need() : 0.061 ms - Total 0.061 ms / 1 intvls (Avg 0.061 ms)
main debug: Filter 'simple_channel_mixer' (0x98755fc) appended to chain
main debug: looking for audio filter module: 13 candidates
audio_format debug: f32l->s16l, bits per sample: 32->16
main debug: using audio filter module "audio_format"
main debug: TIMER module_need() : 0.063 ms - Total 0.063 ms / 1 intvls (Avg 0.063 ms)
main debug: Filter 'audio_format' (0x983f244) appended to chain
stream_out_transcode debug: Got complete audio filter chain
main debug: adding a new input
mux_dummy debug: adding input
mpeg_audio debug: MPGA channels:2 samplerate:44100 bitrate:128
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
mpgatofixed32 debug: libmad error: bad main_data_begin pointer
rtp warning: 4 packet(s) lost
main warning: trying to send non-dated packet to stream output!
mpgatofixed32 debug: libmad error: Huffman data overrun
rtp warning: 10 packet(s) lost
rtp warning: 9 packet(s) lost
main warning: trying to send non-dated packet to stream output!
rtp warning: 10 packet(s) lost
main warning: trying to send non-dated packet to stream output!
main warning: trying to send non-dated packet to stream output!
mpgatofixed32 debug: libmad error: Huffman data overrun
...
Could anybody tell me how to fix this?
Thank you!!
Ben.