# RTMP FLV streaming from FFMPEG to Wowza with low frame rate

**URL:** <https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730>\
**Category:** Wowza Streaming Engine\
**Created:** [December 3, 2011, 11:53pm UTC](https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730 "2011-12-03T23:53:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghu\_b](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@Raghu\_b](https://community.wowza.com/u/Raghu_b)\
**Post date:** [December 3, 2011, 11:53pm UTC](https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730/1 "2011-12-03T23:53:34Z")

</div>

Hello All,

I am trying to send a stream from FFMPEG to WOWZA with very low fps( 3 frames per second). The Wowza is able to receive the stream correctly but the problem is when I try to play the stream, the out put is not consistent. It is taking very long time to play the stream (I tried with live stream play application) and then some times it is playing faster and some times it get freeze. I checked at both FFMPEG end and Wowza end to see if it is a network issue(I am streaming in LAN), but Wowza able to receive the stream in correct Interval (I printed PTS and DTS at Wowza).

Then I recorded the stream into an FLV and played it in VLC and it worked well.

If I change the fps from 3 to 15 then the live playing is working fine.

I am not quite sure what is the issue. Can any one have Idea about this problem ?

Thanks In Advance

---

<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:** [December 4, 2011, 12:17am UTC](https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730/2 "2011-12-04T00:17:30Z")

</div>

Hello,

You could post your ffmpeg command so others can take a look at it.

Have you set your keyframe interval accordingly? For a keyframe interval of 2-4 seconds at 3fps you need to set it between 6-12 frames per keyframe.

---

<div class="post-metadata">

**Author:** ![Raghu\_Karm](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Raghu\_Karm](https://community.wowza.com/u/Raghu_Karm)\
**Post date:** [December 4, 2011, 2:23am UTC](https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730/3 "2011-12-04T02:23:54Z")

</div>

Thanks for the quick reply.

Actually I am not using direct FFMPEG command line but using static library on iOS. I am also not using x264. I am using iOS h264 encoder api and feeding the encoded frames into FFMPEG.

I set the key frames interval as 1 which means every frame is a key frame.

---

<div class="post-metadata">

**Author:** ![Raghu\_Karm](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Raghu\_Karm](https://community.wowza.com/u/Raghu_Karm)\
**Post date:** [December 4, 2011, 4:43am UTC](https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730/4 "2011-12-04T04:43:23Z")

</div>

Tried with key frame 10 but no luck ☹

---

<div class="post-metadata">

**Author:** ![Raghu\_Karm](https://avatars.discourse-cdn.com/v4/letter/r/ac8455/32.png) [@Raghu\_Karm](https://community.wowza.com/u/Raghu_Karm)\
**Post date:** [December 4, 2011, 6:32am UTC](https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730/5 "2011-12-04T06:32:13Z")

</div>

I just tried with RTSP play from VLC and it worked. It seems Input RTMP -\> WOWZA -\> Out put RTMP with low FPS is not working but Input RTMP -\> WOWZA -\> Out put RTSP is working fine.

But we really need RTMP output to be work. any thoughts ?

---

<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:** [December 4, 2011, 1:09am UTC](https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730/6 "2011-12-04T01:09:02Z")

</div>

That means a keyframe every .3 seconds, but the recommended is every 2-4 seconds.

---

<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:** [December 4, 2011, 2:55am UTC](https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730/7 "2011-12-04T02:55:47Z")

</div>

Try with a multiple of your fps. So: 6, 9 12.

---

<div class="post-metadata">

**Author:** ![Thomas\_Willo](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@Thomas\_Willo](https://community.wowza.com/u/Thomas_Willo)\
**Post date:** [December 4, 2011, 9:05pm UTC](https://community.wowza.com/t/rtmp-flv-streaming-from-ffmpeg-to-wowza-with-low-frame-rate/37730/8 "2011-12-04T21:05:15Z")

</div>

Ok - we solved the delay in the RTMP h.264 stream in the flash player by setting the bufferTime of the NetStream to zero

\_ns.bufferTime = 0.1
