# Wowza not recording live RTMP video incoming stream

**URL:** <https://community.wowza.com/t/wowza-not-recording-live-rtmp-video-incoming-stream/45410>\
**Category:** Wowza Streaming Engine\
**Created:** [October 29, 2015, 5:08pm UTC](https://community.wowza.com/t/wowza-not-recording-live-rtmp-video-incoming-stream/45410 "2015-10-29T17:08:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pooja\_k](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@Pooja\_k](https://community.wowza.com/u/Pooja_k)\
**Post date:** [October 29, 2015, 5:08pm UTC](https://community.wowza.com/t/wowza-not-recording-live-rtmp-video-incoming-stream/45410/1 "2015-10-29T17:08:35Z")

</div>

Hi

I am using ffmpeg to capture my desktop screen and stream it to wowza. Following is the command i give:

ffmpeg -f gdigrab -framerate 5 -i desktop -f flv rtmp://[wowza-ip]:1935/live/vstream

I can view the stream using vlcplayer live…

But wowza is not saving this to a file when I click “Record this stream”…It is creating 1kb file…

I havent kept any security or authentication on my live application in Wowza server.

Plz guide.

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [October 29, 2015, 7:30pm UTC](https://community.wowza.com/t/wowza-not-recording-live-rtmp-video-incoming-stream/45410/2 "2015-10-29T19:30:06Z")

</div>

Hi,

You should probably also try to encode the stream being published to Wowza using H264 video codec and AAC or MP3 audio codec.

You can also add the video and audio codec options as well: “-vcodec libx264 -vb 500000 -g 60 -vprofile main -acodec aac -ab 128000 -ar 48000 -ac 2 -vbsf h264\_mp4toannexb -strict experimental”

Zoran

---

<div class="post-metadata">

**Author:** ![Pooja\_k](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@Pooja\_k](https://community.wowza.com/u/Pooja_k)\
**Post date:** [October 30, 2015, 12:36pm UTC](https://community.wowza.com/t/wowza-not-recording-live-rtmp-video-incoming-stream/45410/3 "2015-10-30T12:36:00Z")

</div>

Yes I did with encoding also…Video is then saved properly

I am trying to mix live audio stream to this video stream, but the mixed stream is not synchronized

Audio is about 15 secs ahead of video…How should I sync this.
