Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong codecs unless otherwise manifest specified #48

Closed
mrslain opened this issue Oct 31, 2015 · 1 comment
Closed

Wrong codecs unless otherwise manifest specified #48

mrslain opened this issue Oct 31, 2015 · 1 comment
Labels

Comments

@mrslain
Copy link

mrslain commented Oct 31, 2015

http://dailymotion.github.io/hls.js/demo/?src=http%3A%2F%2Fsolutions.brightcove.com%2Fjwhisenant%2Fhls%2Fapple%2Fbipbop%2Fbipbopall.m3u8

Actual codecs
avc1.66.30 (Constrained Baseline), mp4a.40.2 (AAC-LC)

@mangui
Copy link
Member

mangui commented Nov 2, 2015

@SlainTrue if codecs are not specified in main manifest, then hls.js tries to guess them, by parsing audio/video samples.

in your case, CODECS is not specified in the main manifest, and audio sampling rate is less than 24kHz => codec is guessed as HE-AAC : refer to logic here : https://github.com/dailymotion/hls.js/blob/master/src/demux/tsdemuxer.js#L536-L541

manifest codec:undefined,ADTS data:type:2,sampleingIndex:7[22050kHz],channelConfig:1
parsed codec:mp4a.40.5,rate:22050,nb channel:1

if you want to be able to playback your streams, you need to specify your codec is the main manifest (EXT-X-STREAM-INF tag)

@mangui mangui added the Question label Nov 2, 2015
@mangui mangui closed this as completed Feb 16, 2016
mangui pushed a commit that referenced this issue Feb 9, 2017
Fix subtitle syncing based on discontinuities
johnBartos pushed a commit that referenced this issue Jun 27, 2018
Fix subtitle syncing based on discontinuities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants