# Video is choppy

**URL:** <https://community.wowza.com/t/video-is-choppy/55583>\
**Category:** Wowza GoCoder SDK\
**Created:** [July 17, 2020, 3:02pm UTC](https://community.wowza.com/t/video-is-choppy/55583 "2020-07-17T15:02:20Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [July 17, 2020, 3:02pm UTC](https://community.wowza.com/t/video-is-choppy/55583/1 "2020-07-17T15:02:20Z")

</div>

The use case we are developing is a one-to-many live streaming using GoCoder sdk. For streaming we are using FRAME\_SIZE\_960x540.

We are having issues with video quality on the receiving end, playing back through android app videoview. The video is choppy. For my use case, this choppiness will fail user acceptance. I was aspiring for the smooth, high quality playback of services

How can improve the quality of the viewer video? I can accept worst latency. I want to get to that Twitch-level quality.

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [July 20, 2020, 1:52am UTC](https://community.wowza.com/t/video-is-choppy/55583/2 "2020-07-20T01:52:49Z")

</div>

The issue appears to be in with the wowza streaming engine’s transcoding, as the main mp4 file is smooth, but all transcoded files are chopping bad. (from 160p-720p). Could it be misconfigured? Or a problem with server resources? What could cause wowza’s transcoding to consistently mess up?

[https://seemelivewasabi.b-cdn.net/0001595207179597\_480p.mp4](https://seemelivewasabi.b-cdn.net/0001595207179597.mp4)

[https://seemelivewasabi.b-cdn.net/0001595207179597.mp4](https://seemelivewasabi.b-cdn.net/0001595207179597.mp4)

---

<div class="post-metadata">

**Author:** ![video\_streaming](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@video\_streaming](https://community.wowza.com/u/video_streaming)\
**Post date:** [July 17, 2020, 7:34pm UTC](https://community.wowza.com/t/video-is-choppy/55583/3 "2020-07-17T19:34:08Z")

</div>

Are you doing adaptive bitrate streaming? If so the keyframes need to aligned on all versions or else the switching at the player results in a choppy video. Choppiness is usually a bitrate/bandwidth problem as well. Can you get away with lower audio bitrate but keep the video bitrate high?

You can can also consider SRT as a stream target where it would be GoCoderSDK\>Engine\>SRTStream Target. That’s what SRT is intended to do- stabilize the video in the case of packet loss.

For all GoCoder questions: to receive direct debugging and assistance we are requiring a support ticket since we are discontinuing it as you know already @Scott Hooten.

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [July 20, 2020, 2:59pm UTC](https://community.wowza.com/t/video-is-choppy/55583/4 "2020-07-20T14:59:59Z")

</div>

We are not using any stream target so SRT is also not used. Please check our screenshot of wowza stream engine.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [July 20, 2020, 3:24pm UTC](https://community.wowza.com/t/video-is-choppy/55583/5 "2020-07-20T15:24:05Z")

</div>

Hey Scott, thanks for the additional info You’ll need to submit a support ticket per tech support. There is no way to debug in forums or identify the issue with the transcoded versions without full access to your files and logs.

This requires an official ticket where you can upload that info. I did check the status report for our transcoder and we have no reports of issues with mp4s and different resolutions or bitrates. We’ll need to take a closer look and run some tests on your setup.

As a reminder the biggest reason we see this happen with transcoded versions, is the keyframes are not aligned on all versions so there is a choppy transition… But, I have no way of knowing if that is what is going on here.

I also wrote a short article in Nov on some best mobile best practices that may be part of the issue for you as well since you’re seeing the problem on playback:

_For mobile streaming, it’s best to encode streams using a low bitrate, frame rate, and low encoding complexity. A total bitrate of between 64Kbps and 250Kbps is best._

_Many mobile devices may not be able to handle a full 30 frames per second (fps). A frame rate between 15fps and 24fps may be best for mobile. It’s best to encode to a lower H.264 complexity. Most mobile devices only support H.264 Baseline profile._

[https://www.wowza.com/community/articles/53563/tip-of-the-week-best-encoding-practices-for-mobile.html](https://www.wowza.com/community/articles/53563/tip-of-the-week-best-encoding-practices-for-mobile.html)

But, again these are all guesses without us seeing your files. Sorry we can’t diagnose without that- I know you’d like this resolved asap.

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [July 21, 2020, 8:54am UTC](https://community.wowza.com/t/video-is-choppy/55583/6 "2020-07-21T08:54:04Z")

</div>

This log file does contain “updateBehindFilter” messages and I see that your server has 2 CPU cores which are not enough for transcoding.

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [July 21, 2020, 3:14pm UTC](https://community.wowza.com/t/video-is-choppy/55583/7 "2020-07-21T15:14:11Z")

</div>

How many cpu cores are needed to transcode each 360p and 720p video? I was originally told that one wowza streaming server instance running on a decent server could handle 100-200 simultaneous inbound streams. Shouldnt 2 cores be sufficient to transcode multiple streams? I’ve only been using 2 cores for the last year, and this is the first time we’ve noticed this issue. The server is virtual, so i can turn on more cores, but i need to know how many cores i need for each inbound session so that i can turn on more cores when other people try to broadcast at the same time. Thanks.

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [July 21, 2020, 3:38pm UTC](https://community.wowza.com/t/video-is-choppy/55583/8 "2020-07-21T15:38:39Z")

</div>

Please see the following article showing the benchmarks as a guide.  
[https://www.wowza.com/docs/wowza-transcoder-performance-benchmark](https://www.wowza.com/docs/wowza-transcoder-performance-benchmark)

To accurately test your own server, please see this article.  
[https://www.wowza.com/docs/how-to-capture-wowza-transcoder-benchmark-statistics](https://www.wowza.com/docs/how-to-capture-wowza-transcoder-benchmark-statistics)

The number of cores required will depend on the source quality, the encode quality and the number of encodes you’re wanting to create. For example, if the source is 60 FPS, this will be more work than a source of the same resolution and bitrate that’s encoded at 30 FPS.

Regards,  
Jason

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [July 21, 2020, 8:51am UTC](https://community.wowza.com/t/video-is-choppy/55583/9 "2020-07-21T08:51:35Z")

</div>

Hi Scott,

If the issue is due to transcoding then it’s possible that your server doesn’t have the CPU (or GPU) resources to create the encodes that you have configured. Transcoding is a very CPU intensive process so my recommendation would be to check the log files to see if you’re seeing any messages containing “updateBehindFilter”, this indicates a lack of CPU resources for the transcoding process.

If so, edit the transcoding template so that you’re only creating a single transcode to (160p) and see if you can replicate the problem and/or if the above messages continue to get printed to the log file.

Regards,  
Jason Hilton  
Technical Support Engineer  
Wowza Media Systems

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [July 21, 2020, 7:43am UTC](https://community.wowza.com/t/video-is-choppy/55583/10 "2020-07-21T07:43:15Z")

</div>

According to your suggestion we are using _bitrate 250Kbps and frame rate 24 fps but we are facing same issue. For reference_ I give you the video url and attach the log what you want your last feedback.

video url: [https://seemelivewasabi.b-cdn.net/0001595315696599\_360p.mp4](https://seemelivewasabi.b-cdn.net/0001595315696599_360p.mp4) wowzastreamingengine\_access.log.zip

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [July 23, 2020, 3:35am UTC](https://community.wowza.com/t/video-is-choppy/55583/11 "2020-07-23T03:35:00Z")

</div>

wowza-log-20200722.txtI doubled the cpu count on the virtual server, and now a stream doesnt take more than 30% of the cpu and usually averages around 10%. The source quality of my last test was 720p @ 30fps on the test. However, the mp4 files were still messed up. I captured the log file from when the stream was broadcast and this time it doesnt have any "updateBehindFilter " entries. Any ideas why the the mp4 files are still skipping/freezing?

---

<div class="post-metadata">

**Author:** ![Scott\_Hooten1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/scott_hooten1/32/524_2.png) [@Scott\_Hooten1](https://community.wowza.com/u/Scott_Hooten1)\
**Post date:** [July 23, 2020, 3:35am UTC](https://community.wowza.com/t/video-is-choppy/55583/12 "2020-07-23T03:35:05Z")

</div>

Here are some video transcode links from this stream: [https://seemelivewasabi.b-cdn.net/0001595453201473.mp4](https://seemelivewasabi.b-cdn.net/0001595453201473.mp4)  
[https://seemelivewasabi.b-cdn.net/0001595453201473\_360p.mp4](https://seemelivewasabi.b-cdn.net/0001595453201473_360p.mp4)  
[https://seemelivewasabi.b-cdn.net/0001595453201473\_720p.mp4](https://seemelivewasabi.b-cdn.net/0001595453201473_720p.mp4)
