# Recording to MP4 container

**URL:** <https://community.wowza.com/t/recording-to-mp4-container/485>\
**Category:** Wowza Streaming Engine\
**Created:** [January 25, 2015, 6:38pm UTC](https://community.wowza.com/t/recording-to-mp4-container/485 "2015-01-25T18:38:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [January 25, 2015, 6:38pm UTC](https://community.wowza.com/t/recording-to-mp4-container/485/1 "2015-01-25T18:38:17Z")

</div>

I tried recording a live stream directly from flash applet camera and microphone to MP4 container, it did recorded the video but even JWPlayer, VLC and Quicktime player was unable to playback the mp4 video, I see this in the error log:

WARN server comment 2015-01-26 01:17:36 - - - - - 854.813 - - - - - - - - []LiveStreamRecorderMP4: Unsupported video format for MP4 container: CODEC\_VIDEO\_SPARK

WARN server comment 2015-01-26 01:17:36 - - - - - 854.814 - - - - - - - - []LiveStreamRecorderMP4: Unsupported audio format for MP4 container: CODEC\_AUDIO\_NELLYMOSER

Any suggestions how to be able to record a playable MP4 from standard flash live stream at least on JW Player? Thanks…

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [January 26, 2015, 9:17am UTC](https://community.wowza.com/t/recording-to-mp4-container/485/2 "2015-01-26T09:17:08Z")

</div>

Hi,

if recording a Flash stream it is likely to be recorded within an FLV container. Try prefixing the filename with flv, e.g. http://[wowza-ip]:1935/vod/flv:recording.flv. Otherwise Wowza may assume it is an MP4 container. You can change the default stream prefix from MP4 to FLV within Wowza Streaming Engine Manager via Server settings if you are always going to be playing or recording in FLV format.

Paul

---

<div class="post-metadata">

**Author:** ![Wolf\_Gang](https://avatars.discourse-cdn.com/v4/letter/w/b5ac83/32.png) [@Wolf\_Gang](https://community.wowza.com/u/Wolf_Gang)\
**Post date:** [January 26, 2015, 7:47pm UTC](https://community.wowza.com/t/recording-to-mp4-container/485/3 "2015-01-26T19:47:03Z")

</div>

yes, I know about recording defaults to FLV, but what I want to have is a playable MP4 format recorded from a flash live stream, any suggestions on how to achieve this?

---

<div class="post-metadata">

**Author:** ![Wolf\_Gang](https://avatars.discourse-cdn.com/v4/letter/w/b5ac83/32.png) [@Wolf\_Gang](https://community.wowza.com/u/Wolf_Gang)\
**Post date:** [February 26, 2015, 8:09pm UTC](https://community.wowza.com/t/recording-to-mp4-container/485/4 "2015-02-26T20:09:14Z")

</div>

any other ideas?

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [February 27, 2015, 11:54pm UTC](https://community.wowza.com/t/recording-to-mp4-container/485/5 "2015-02-27T23:54:12Z")

</div>

Hi,

The best that the flash player can do is record video as H.264 and Audio as Speex. That later is not compatible with the NP4 container, so will require converting to MP3 or AAC.

You can either do that in the Transcoder as Paul directed above, or record to .FLV and then post process that file to an MP4. There are some example FFMPEG commands in [this article.](https://www.wowza.com/docs/how-to-encode-video-on-demand-content)

Daren

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [January 28, 2015, 11:22pm UTC](https://community.wowza.com/t/recording-to-mp4-container/485/6 "2015-01-28T23:22:02Z")

</div>

Hi,

You may find [the following article](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) of interest. It explains how to set up a Flash application that can push H.264 and Speex audio into the Wowza Transcoder. This will generate a playable MP4 output with compatible video and audio. It does require the Transcoder AddOn, but removes any intermediate processing.

Paul
