Comments (7)
+1 I am also experiencing the same issue. Only on Chrome.
from hls.js.
your playlist does not reference CODECS :
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=400000
480x270.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=600000
640x360.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=800000
854x480.m3u8
as a consequence hls.js tries to guess audio codec type by parsing audio metadata.
https://github.com/dailymotion/hls.js/blob/master/src/demux/tsdemuxer.js#L537-L555
if sampling rate is less than 24kHz, it tries to use HE-AAC. (mp4a.40.5)
in your case, sampling rate is 8kHz, but it looks like you were using AAC codec... (mp4a.40.2)
=> wrong guess => Chrome fires an error
as you can see, Chrome is quite pedantic about codec definition...
I tried
if you define CODECS in your main manifest, you should be able to playback your stream.
from hls.js.
and as you can see, it does not affect Chrome/Android ... different audio/video pipeline
from hls.js.
Awesome!!
Thank you for the insight.. I'm now explicitly setting codecs and the streams are working in chrome.
Thank you!!!
:-)
from hls.js.
Hi there, question. Is there a way to set the codecs in JavaScript code rather than the manifest?
from hls.js.
No. Cant you fix your manifest ?
from hls.js.
Unfortunately I can't, the stream is being provided by a sports stream provider. If I were to ask them to change it what would I ask them to change? thanks.
from hls.js.
Related Issues (20)
- fragParsingError on Ionic/FireTV when using Native HTTP plugin HOT 2
- image stuck in hls HOT 3
- Please suggest me how to fix Buffer Stalled Error HOT 2
- How to fix Hls.ErrorTypes.MEDIA_ERROR HOT 2
- SSR broken in HLS 1.4.12 and Next 13 HOT 4
- gg
- How can I show word by word captions/subtitles? HOT 2
- link can play in HLS extension, but can not work with hls.js HOT 3
- Decode video Using WebCodecs API
- Issue with HLS.js PIPELINE_ERROR_DECODE and MEDIA_ELEMENT_ERROR HOT 3
- DRM Video decoding failed HOT 1
- ipone Xr and iPonh 12 mini issues HOT 2
- Can I play videos of the hlsll protocol? HOT 1
- Improving initial video quality based on previous sessions HOT 4
- Long 608 Captions are are not displayed properly, and sometimes not at all. HOT 3
- Can i swap SSD writing of files with writing to memory? HOT 1
- Can hls.js play HLS streams from Amazon IVS and Tencent live streams? HOT 1
- Issue where CMAF DRM videos cannot be played HOT 1
- "Discontinuity sliding from playlist, take drift into account" log meaning HOT 6
- The EWMA algorithm used to estimate the current bandwidth used for the abr controller seems to be wrong HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hls.js.