lihaosky / google-cast-sdk

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

Audio-only HLS stream does not play #485

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- Generate (normal) stream `ffmpeg -i test.mp4  -map 0:a -map 0:v -strict 
experimental testlist.m3u8` and playback works.
- Generate audio-only stream `ffmpeg -i test.mp4  -map 0:a -strict experimental 
testlist.m3u8` and playback fails.

What is the expected output? What do you see instead?
I expect that the audio is played.
Instead an InvalidStateError is raised (see attached log).

What version of the product are you using? On what operating system?
chromecast build 22062
casting to the CastMediaPlayerStreamingDRM player
ffmpeg 2.5.3

Please provide any additional information below.
Both streams work with VLC.

you can download the streams from here:
working: 
https://drive.google.com/file/d/0Byc20NNwPbAQX01VemxGOGhXUUE/view?usp=sharing
non-working: 
https://drive.google.com/file/d/0Byc20NNwPbAQU0gwTTJXVjQyWkk/view?usp=sharing

Original issue reported on code.google.com by saemy.ze...@gmail.com on 12 Jan 2015 at 5:39

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jonathan...@google.com on 12 Jan 2015 at 11:27

GoogleCodeExporter commented 9 years ago
By default, MPL assumes a muxed video and audio transport stream. Could you 
please try adding CODECS="mp4a.40.2" to the #EXT-X-STREAM-INF tag in the master 
playlist.

Original comment by vadi...@google.com on 13 Jan 2015 at 12:53

GoogleCodeExporter commented 9 years ago
No, unfortunately this does not help.

Moreover, [1] says: "Currently, it is not required to specify that a stream is 
audio-only, so use of the CODECS attribute is optional.". So it would be nice 
if this was not required on chromecast as well.

[1] 
https://developer.apple.com/library/ios/documentation/NetworkingInternet/Concept
ual/StreamingMediaGuide/FrequentlyAskedQuestions/FrequentlyAskedQuestions.html

Original comment by saemy.ze...@gmail.com on 13 Jan 2015 at 12:31

GoogleCodeExporter commented 9 years ago
Audio only TS support should be fixed in the next MPL update. MPL does require 
specifying a codec in the manifest for an audio only stream.  Since it is using 
HTML5 Media Source Extensions, it needs to provide a codecs string when it 
creates the source buffer.  If the codec is not specified in the manifest, it 
defaults to video and audio and if the transport stream appended into the 
source buffer does not contain both, it results in an error.

Original comment by vadi...@google.com on 13 Jan 2015 at 5:23

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by jonathan...@google.com on 20 Jan 2015 at 11:14

GoogleCodeExporter commented 9 years ago
This should be fixed in the latest MPL update.  Let us know if the issue still 
occurs.

Original comment by jonathan...@google.com on 4 Feb 2015 at 11:25