# H264 live stream recording

**URL:** https://community.wowza.com/t/h264-live-stream-recording/35954
**Category:** Wowza Streaming Engine
**Created:** [November 25, 2011, 8:07pm UTC](https://community.wowza.com/t/h264-live-stream-recording/35954 "2011-11-25T20:07:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Victor\_Sheyanov](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@Victor\_Sheyanov](https://community.wowza.com/u/Victor_Sheyanov)
#### Post date: [November 25, 2011, 8:07pm UTC](https://community.wowza.com/t/h264-live-stream-recording/35954/1 "2011-11-25T20:07:12Z")

</div>

I’m trying to record live video stream using server side module, that you provide.

Also I’m using a new flash player feature to encode stream in H264, baseline profile, level 2. I’m streaming audio and video.

On server side I have 2 modules: LiveStreamRecorderMP4 and LiveStreamRecorderFLV.

I need to record video 960x720, that my webcam support. If i use LiveStreamRecorderFLV - video quality is really bad.

When I use LiveStreamRecorderMP4 video quality is great! BUT the problem is that i can’t record audio, because it’s encoded with Speex audio codec, that’s not supported by LiveStreamRecorderMP4.

This is an example, that was recorded with LiveStreamRecorderMP4 without audio.

[http://www.youtube.com/watch?v=ET33TVehoQk](http://www.youtube.com/watch?v=ET33TVehoQk) - no audio

Here is AS3 code:

```auto
outgoingStream_video.attachCamera(interviewModel.camera);
var h264options:H264VideoStreamSettings = new H264VideoStreamSettings();
h264options.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_2);
outgoingStream_video.videoStreamSettings = h264options;
outgoingStream_video.publish(streamName);

```

To record audio I created a new NetStream and I do server side recording with LiveStreamRecorderFLV. So AS3 code is:

```auto
outgoingStream_video.attachCamera(interviewModel.camera);
var h264options:H264VideoStreamSettings = new H264VideoStreamSettings();
h264options.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_2);
outgoingStream_video.videoStreamSettings = h264options;
outgoingStream_video.publish(streamName);
outgoingStream_audio.attachAudio(interviewModel.mic);
outgoingStream_audio.publish(streamName + "_audio");

```

But in this case video quality became really bad, just look:

[http://www.youtube.com/watch?v=1\_RQiCR\_5dc](http://www.youtube.com/watch?v=1_RQiCR_5dc)

FPS is about 10!!!

What’s the problem? Why when I publish another stream from flash, video quality reduces?

Can you suggest me a solution?

Thanks!

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [November 25, 2011, 5:11pm UTC](https://community.wowza.com/t/h264-live-stream-recording/35954/2 "2011-11-25T17:11:11Z")

</div>

You will have to set the audio to Speex in the Flash, then transcode to AAC to record to quicktime container:

[https://www.wowza.com/docs/how-to-convert-flash-player-11-output-from-h-264-speex-audio-to-h-264-aac-audio-using-wowza-transcoder](https://www.wowza.com/docs/how-to-convert-flash-player-11-output-from-h-264-speex-audio-to-h-264-aac-audio-using-wowza-transcoder)

Richard

---

<div class="post-metadata">

### Author: ![Victor\_Sheyanov](https://avatars.discourse-cdn.com/v4/letter/v/47e85d/32.png) [@Victor\_Sheyanov](https://community.wowza.com/u/Victor_Sheyanov)
#### Post date: [January 25, 2012, 1:12pm UTC](https://community.wowza.com/t/h264-live-stream-recording/35954/3 "2012-01-25T13:12:59Z")

</div>

Richard, thanks for your answer.

I’ve tried some other options, but none of them produced good results, so we wanna try Wowza transcoder.

What the easiest way for us developers to try this option? May be there is trial version of transcoder or limited version? We already have developer edition of Wowza 3.

---

<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: [January 25, 2012, 3:09am UTC](https://community.wowza.com/t/h264-live-stream-recording/35954/4 "2012-01-25T03:09:41Z")

</div>

The dev license includes all the Addons. Note that the transcoder requires a 64-bit OS.
