• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Engine /
  • On-Demand Streaming /
avatar image
Question by richard chen · Oct 20, 2014 at 11:39 PM · on-demand streaming

mp4 vod lip sync issue on iOS after 2 hours of playing.

Hi experts,

I encounter an issue with Wowza when doing mp4 vod. I have a 4 hours mp4 movies, I put it on Wowza and play it with iPad(do vod), at the beginning, everything is ok, but 2 hours later, I encounter the lip sync issue on iPad, audio is lagged behand 2~3seconds, the longer it plays, the more serious the issue. Then I play the mp4 with VLC on Windows, everything is OK no matter how long it play. My Wowza is 4.1, can you pls help to address this?

Thank you,

Richard
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image

Answer by sal jefferson · Oct 21, 2014 at 08:04 AM

Hello there,

Can you please provide more detail about the source:

What are the audio and video codecs?

What is the bitrate and profile?

Frames per second and GOP(keyframe frequency)?

For iOS it is recommended that you use a profile of baseline 3, or main at the highest, as well as AAC audio. H264 video is required.

Try different FPS and keyframe frequency settings. Key frame frequency should be a multiple of 10, the default for chunkDurationTarget, or a multiple of whatever you have set that to if you changed it.

This article describes the properties that you can use to control how the Cupertino (iOS device) segmenter segments an incoming stream:

How to configure Apple HTTP Live Streaming packetization (cupertinostreaming)

You can also debug AAC or MP3 timecode issues with cupertino packetization with this guide:

How to debug AAC or MP3 timecode issues with cupertino packetization

And if necessary, you can encode the file following this guide:

How to encode video on demand content

Kind regards,

Salvadore
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image richard chen · Oct 21, 2014 at 10:41 PM 0
Share
Hi Salvadore,

Thank you for your useful information, I would like to provide more information about our mp4 file:

1. video codec: h264 base profile, level=31(720p); audio codec AAC-LC, 48khz

2. the file media bitrate is 2mbps.

3. key frame frequency is 4 seconds(We set the key frequency to 4s to reduce the live delay, it seems works normally except lip sync issue, is it 4s ok?)(Key frame frequency should be a multiple of 10? is it a must?)

4. we didn't change any Wowza setting, should we change Wowza setting to match our mp4?

We still stick on this issue, thank you very much for your help.

Best regards,

Richard.
avatar image

Answer by sal jefferson · Oct 22, 2014 at 07:28 AM

Hello Richard,

Chunks must start on a key frame, so it's best to use a key frame interval that is factor of the cupertinoChunkDurationTarget setting. For example, if cupertinoChunkDurationTarget is set to 10 seconds then use a key frame interval of either 2, 2.5, 5, or 10 seconds.

By default, cupertinoChunkDurationTarget is set to 10 seconds.

Kind regards,

Salvadore
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image richard chen · Oct 23, 2014 at 05:55 PM 0
Share
Hi Salvadore,

Since my mp4 key frame interval is 4 seconds(Comes from Polycom encoder), so I set cupertinoChunkDurationTarget to 4 and then 12 seconds, both of them seem don't solve the issue. Only on iOS we encounter such issue, is it possible that the issue came from encoder? what possible issue it will be? we analyse the file and everything seems ok, play it with vlc and wmp, they are ok too.

Best regards,

Richard
avatar image

Answer by sal jefferson · Oct 24, 2014 at 09:24 AM

Hello Richard,

Where are you adding this property in the Application.xml file?

For VOD it would be in the HTTPStreamer/Properties container:

<Property>
	<Name>cupertinoChunkDurationTarget</Name>
	<Value>12000</Value>
	<Type>Integer</Type>
</Property>


Kind regards,

Salvadore
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image richard chen · Oct 26, 2014 at 11:08 PM 0
Share
Hi Salvadore,

I did it in Application.xml, however, it doesn't solve the issue. I'm thinking if the issue comes from the mp4 file itself? but vlc plays it good, does iOS player has special requirement?

Best regards,

Richard
avatar image

Answer by sal jefferson · Oct 27, 2014 at 06:29 AM

Hello Richard,

There are two places in the Application.xml file that the cupertinoChunkDurationTarget property can go.

For live streams it would be in the LiveStreamPacketizer/Properties container.

For VOD it would be in the HTTPStreamer/Properties container:

<Property>
	<Name>cupertinoChunkDurationTarget</Name>
	<Value>12000</Value>
	<Type>Integer</Type>
</Property>


Make sure you have this property set in the HTTPStreamer/Properties container since you are doing VOD.

Kind regards,

Salvadore
Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Split recording every 10 min 5 Answers

VOD Format Types 3 Answers

Support for ISMV assets 2 Answers

Automatic VOD file conversion 3 Answers

HTTP VOD streaming configuration for MP4 mimetype playback 3 Answers

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges