# Wrong encoding of audio in RTSP stream from camera

**URL:** https://community.wowza.com/t/wrong-encoding-of-audio-in-rtsp-stream-from-camera/35200
**Category:** Wowza Streaming Engine
**Created:** [June 16, 2012, 9:35pm UTC](https://community.wowza.com/t/wrong-encoding-of-audio-in-rtsp-stream-from-camera/35200 "2012-06-16T21:35:25Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Eyal\_Hasson](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Hasson](https://community.wowza.com/u/Eyal_Hasson)
#### Post date: [June 16, 2012, 9:35pm UTC](https://community.wowza.com/t/wrong-encoding-of-audio-in-rtsp-stream-from-camera/35200/1 "2012-06-16T21:35:25Z")

</div>

Hello,

I have an RTSP stream from a camera in this URL: rtsp://81.218.63.130:88/live/h264\_ulaw This streams the video in h.264 encoder and the audio as mu law 8000 Hz PCM. If I use VLC I can see and hear well. Also, while watching the stream when Wowza restream it to a flash client everything seems fine. However, I use an rtp-record type of stream, and the result recorded file has bad Audio track. Video is fine, but it seems to get the audio as APDCM with 54000 Hz.

Thanks,

Eyal.

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [June 16, 2012, 8:55pm UTC](https://community.wowza.com/t/wrong-encoding-of-audio-in-rtsp-stream-from-camera/35200/2 "2012-06-16T20:55:51Z")

</div>

Probably it doesn’t work because mulaw is not supported by the Flash file container.

You will have to transcode with the Wowza Transcoder, or a 3rd party program like FFMPEG, mencoder, VLC, etc…

---

<div class="post-metadata">

### Author: ![Eyal\_Hasson](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Hasson](https://community.wowza.com/u/Eyal_Hasson)
#### Post date: [June 17, 2012, 5:14pm UTC](https://community.wowza.com/t/wrong-encoding-of-audio-in-rtsp-stream-from-camera/35200/3 "2012-06-17T17:14:10Z")

</div>

I am not sure I understand - The stream is using RTSP and is recorded in mp4 format buy Wowza. Why should the Flash file container limitations have any connection?

Thanks,

Eyal.

---

<div class="post-metadata">

### Author: ![Eyal\_Hasson](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Hasson](https://community.wowza.com/u/Eyal_Hasson)
#### Post date: [June 17, 2012, 6:45pm UTC](https://community.wowza.com/t/wrong-encoding-of-audio-in-rtsp-stream-from-camera/35200/4 "2012-06-17T18:45:47Z")

</div>

No, you are right - the file is being recorded in flv format. Can I make Wowza record it in mp4?

---

<div class="post-metadata">

### Author: ![Eyal\_Hasson](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Hasson](https://community.wowza.com/u/Eyal_Hasson)
#### Post date: [June 17, 2012, 6:59pm UTC](https://community.wowza.com/t/wrong-encoding-of-audio-in-rtsp-stream-from-camera/35200/5 "2012-06-17T18:59:20Z")

</div>

Sorry for the back and forth - I change the start command to have mp4: prefix and indeed the stream is recorded in mp4 format. However, now the recorded file doe not have any audio track at all!

---

<div class="post-metadata">

### Author: ![Eyal\_Hasson](https://avatars.discourse-cdn.com/v4/letter/e/9f8e36/32.png) [@Eyal\_Hasson](https://community.wowza.com/u/Eyal_Hasson)
#### Post date: [June 26, 2012, 5:37pm UTC](https://community.wowza.com/t/wrong-encoding-of-audio-in-rtsp-stream-from-camera/35200/6 "2012-06-26T17:37:50Z")

</div>

Hi, I am still looking for a camera that will give me supported audio track. Do you know if G.726 ADPCM 16-40kbps codec will be supported by my cenario (distributing the stream by Wowza to flash clients)?
