# VOD mp4 buffering display problems

**URL:** <https://community.wowza.com/t/vod-mp4-buffering-display-problems/35933>\
**Category:** Wowza Streaming Engine\
**Created:** [February 14, 2012, 2:07am UTC](https://community.wowza.com/t/vod-mp4-buffering-display-problems/35933 "2012-02-14T02:07:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Casadevall\_Pi](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Daniel\_Casadevall\_Pi](https://community.wowza.com/u/Daniel_Casadevall_Pi)\
**Post date:** [February 14, 2012, 2:07am UTC](https://community.wowza.com/t/vod-mp4-buffering-display-problems/35933/1 "2012-02-14T02:07:07Z")

</div>

Greetings,

We are transitioning to html5 support and we are having problems with mp4 playback.

We have reencoded our flv files to mp4 using ffmpeg.

The files play correctly on a local machine, but when played from Wowza the buffering events seem odd.

The “buffered” bar will sometimes not go all the way to the end of the video playback bar (i.e the bar is half full and it never fills to the end).

We can however seek past to that bar, so we know that the content IS being buffered. Seems more like buffering information is not correctly displayed.

In safari, we also see “Live Broadcast” on the controls even though this is VOD.

Any ideas?

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:** [February 15, 2012, 3:09pm UTC](https://community.wowza.com/t/vod-mp4-buffering-display-problems/35933/2 "2012-02-15T15:09:42Z")

</div>

What do you mean, “transitioning to html5”? HTML5 video tag is only useful in Wowza with Cupertino streams to iOS devices or Safari on Mac OSX. I’m not sure how or if you can alter “Live Broadcast” label.

Richard

---

<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:** [February 15, 2012, 7:21pm UTC](https://community.wowza.com/t/vod-mp4-buffering-display-problems/35933/3 "2012-02-15T19:21:58Z")

</div>

Compare playback with the Wowza sample.mp4 file.

Try encoding with a 2 second key frame frequency. See suggestions here:

[https://www.wowza.com/docs/how-to-encode-video-on-demand-content](https://www.wowza.com/docs/how-to-encode-video-on-demand-content)

Richard

---

<div class="post-metadata">

**Author:** ![Daniel\_Casadevall\_Pi](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Daniel\_Casadevall\_Pi](https://community.wowza.com/u/Daniel_Casadevall_Pi)\
**Post date:** [February 15, 2012, 10:31am UTC](https://community.wowza.com/t/vod-mp4-buffering-display-problems/35933/4 "2012-02-15T10:31:11Z")

</div>

> What do you mean, “transitioning to html5”? HTML5 video tag is only useful in Wowza with Cupertino streams to iOS devices or Safari on Mac OSX. I’m not sure how or if you can alter “Live Broadcast” label.
> 
> Richard

I meant the process of encoding our videos to mp4, and creating an html5 player to be used when the user is using Safari or iOS.

The problem happens in both these platforms, but it looks worse under Mac OS.

(can barely seek using the controls, and the html5 methods buffered.end() and buffered.start() always return wrong results.

---

<div class="post-metadata">

**Author:** ![Daniel\_Casadevall\_Pi](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Daniel\_Casadevall\_Pi](https://community.wowza.com/u/Daniel_Casadevall_Pi)\
**Post date:** [February 15, 2012, 12:03pm UTC](https://community.wowza.com/t/vod-mp4-buffering-display-problems/35933/5 "2012-02-15T12:03:50Z")

</div>

> Compare playback with the Wowza sample.mp4 file.
> 
> Try encoding with a 2 second key frame frequency. See suggestions here:
> 
> [Encode VOD with FFmpeg](https://www.wowza.com/docs/how-to-encode-video-on-demand-content)
> 
> Richard

Same happens with sample.mp4. Here’s a screenshot of what I’m talking about:

![](https://sea2.discourse-cdn.com/flex002/images/transparent.png)

You can see how buffered.end() displays 4.4 seconds… and that is after 2 minutes of the video being played.

This information remains the same throughout the whole playback (i.e the buffering bar does not move at all).

Also , we are playing way past that point so that would not be possible.

Even more curiously, when refreshing the video src, the buffered.end() and buffered.start() methods return the following at all times.

$(“#mainVideo”)[0].buffered.end(): DOMException

$(“#mainVideo”)[0].buffered.start(): DOMException

Our videos have a keyframe interval of 2-5 seconds, but I honestly don’t think this is what’s causing the problem since it happens as well with the sample video.
