[streaming] RTP streaming noise when transcoding to Ulaw

Beñat Urteaga burteaga at traintic.com
Mon Dec 3 09:19:01 CET 2012


Hi all,

I'm trying to get a mp3 audio file streamed with RTP in PCMU. So I'm trying to transcode the file to Ulaw (transcode{acodec=ulaw,samplerate=8000,channels=1,ab=64}).
The whole sout string I'm using is:    :#sout=transcode{vcodec=none,acodec=ulaw,ab=64,channels=1,samplerate=8000}:rtp{dst=1.2.3.4,port=5004}.

Which does create an RTP stream, however, the audio sent has a periodic noise which makes the song uncrompehensible...

If I use already converted files to stream via RTP, the song is ok at reception, but unfortunately, this can't be done with VLC since when trying to convert it, the file created has that periodic noise.

For this purpose I've used ffmpeg with the command: #ffmpeg -i <input_file> -ac 1 -ar 8000 -ab 64 -acodec pcm_mulaw <output_file> -f mulaw and I even got an RTP stream with ffmpeg:

#ffmpeg -re -i <input_file> -ac 1 -ar 8000 -ab 64 -acodec pcm_mulaw <output_file> -f mulaw -f rtp rtp://1.2.3.4:5004.

However, I must be able to play/pause/resume create playlists and so on, and I'm very interested in VLCs features for doing so.

I already have posted this questions at the videolan forums but even if I was helped a little bit (I was told the problem must be when downsampling or remixing), I wasn't able to find a solution, so maybe I could find it here...

Thanks a lot,

Ben.

P.S: I'm using vlc 1.1.9 The Luggage on an Ubuntu 11.04 virtual machine.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/streaming/attachments/20121203/dc1b87f0/attachment.html>


More information about the streaming mailing list