lihaosky / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Audio out of sync on live smooth streams #203

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start the following live smooth stream in the default Chromecast receiver:
http://hls.akamai.tv2.no/wzlive3/_definst_/smil:chromecast_live_001.smil.ism/Man
ifest
2. The stream should start playing. Wait for talking heads to show up, so you 
can observe lip sync. Other content with visual cues matching the audio might 
illustrate the problem as well.

What is the expected output? What do you see instead?
The audio is out of sync, perhaps by around two seconds. With this delay, the 
stream is unusable for watching.

In comparison, a Silverlight player plays the smooth stream in sync. Also an 
HLS wrapped version of the same stream does play in sync on the Chromecast:
http://hls.akamai.tv2.no/wzlive3/_definst_/smil:chromecast_live_001.smil.ism/pla
ylist.m3u8

This happens also on other live streams produced by our encoder rig, and also 
on on demand streams "recorded" from live streams. Unfortunately, due to 
missing CORS header setup, we don't have more examples for you to test at the 
moment.

Original issue reported on code.google.com by tore...@vimond.com on 19 Mar 2014 at 4:16

GoogleCodeExporter commented 9 years ago
Thank you for your report!  If you could please keep the live smooth streaming 
stream up while we investigate, it will be helpful.

Please note that to improve live smooth streaming support, a future media 
player library update will be able to extract future segment information from 
the mp4 tfrf box in the segments as opposed to refreshing the manifest.

Original comment by vadi...@google.com on 19 Mar 2014 at 9:00

GoogleCodeExporter commented 9 years ago
Thank you for looking into this. The stream will be up and running as long as 
you need.

Original comment by tore...@vimond.com on 19 Mar 2014 at 9:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This looks (and sounds) a lot better, and solves the issue in all examples I 
have tried.

Can we expect the fix to be available for production use in the near future?

Original comment by tore...@vimond.com on 20 Mar 2014 at 9:42

GoogleCodeExporter commented 9 years ago
There is a new problem with your fixed media library version, which can be 
reproduced with the following steps:

1. Load the stream 
http://tv2-stream-od.online.no/vod3/_definst_/smil:chromecast_001.smil.ism/Manif
est in a receiver using your updated media library as provided above.

2. After playback has started, change playback position through a SeekRequest 
at the sender. Different currentTime values work, for instance 10.

3. The receiver seeks and starts playing at the new position. However, around 
15 seconds later, the playback freezes, and never starts again. No errors show 
up in the receiver console. Last state reported in player is "buffering".

This problem does not occur with the published library version at 
http://www.gstatic.com/cast/sdk/libs/mediaplayer/0.3.0/media_player.js.

Original comment by tore...@vimond.com on 20 Mar 2014 at 1:58

GoogleCodeExporter commented 9 years ago
Thank you for bringing it to my attention!  I was able to reproduce it and will 
investigate.

By the way, 0.4.0 is the current official version:

https://developers.google.com/cast/docs/release-notes

The new fixes related to live smooth streaming should tentatively be pushed to 
production SDK location middle next week.  It will likely be under a new 
version number.

Original comment by vadi...@google.com on 20 Mar 2014 at 3:53

GoogleCodeExporter commented 9 years ago
Could you please try the same private location and see if the seeking issue is 
resolved?

Original comment by vadi...@google.com on 20 Mar 2014 at 5:31

GoogleCodeExporter commented 9 years ago
Thanks, the seeking issue looks like it is resolved.

Original comment by tore...@vimond.com on 20 Mar 2014 at 9:19

GoogleCodeExporter commented 9 years ago
Great! Thank you for testing the changes. We should be able to publish these 
changes to the official Cast SDK location in the middle of next week. You can 
continue using the private link in the meantime.

Original comment by vadi...@google.com on 20 Mar 2014 at 10:03

GoogleCodeExporter commented 9 years ago
Issue seems to have been identified and the next official release will have the 
fix.

Original comment by anad...@google.com on 21 Mar 2014 at 6:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Since I can't see that you have published the fix last week, I would like to 
ask if you have a new estimated release time for the media player library.

Original comment by tore...@vimond.com on 1 Apr 2014 at 9:08

GoogleCodeExporter commented 9 years ago
0.5.0 update was just published

www.gstatic.com/cast/sdk/libs/mediaplayer/0.5.0/media_player.js

Original comment by vadi...@google.com on 1 Apr 2014 at 5:57