-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
No decoders for requested formats: video/mp2t #939
Comments
What browser are you using? |
i tested in desktop on chrome Version 59.0.3071.115 (Official Build) (64-bit) and firefox 54 didn't have opportunity to test on any mobile devices and mac. Any help.. |
Chrome doesn't support MPEG-2-TS, nor does Firefox. Shaka currently only supports TS content on browsers that have TS support built in. We have two changes coming which should help. Since the error UNPLAYABLE_PERIOD does not clearly explain the situation, we will be adding a new error code for cases like yours: CONTENT_NOT_SUPPORTED_BY_BROWSER. This work is being tracked in #868. We are also working on a solution to transmux TS to MP4 so that we can play TS independent of the browser's TS support. This is being tracked in #887, and will require an additional library called mux.js. Does this help? |
I think its not about browser support because i recently tested on "jwplayer" and it worked on chrome and firefox both on the same version i mentioned earlier. on the first comment i have added the code i used for playing the video. If possible can please the refer the code to find some clue of error occurring. |
It's definitely about browser support. Let me explain. Browsers only support certain media containers (such as mp4, webm, or ts) and certain codecs (such as h264, h265, vp8, vp9, aac, ec3, vorbis, or opus). For Shaka Player to play content today, it must be supported by the browser. Some other players do something called "transmuxing". When content is transmuxed in a web application, the container is parsed in JavaScript and a new container is constructed. For example, if TS is unsupported by the browser, TS segments can be parsed in JavaScript, the h264/aac codec data can be extracted, and that codec data can be put into a new MP4 container. After transmuxing to mp4, the player has content that the browser can play. All major desktop browsers today support MP4, but only Safari and Edge support TS. On all other browsers, TS content can only be played through transmuxing. Since your TS content plays on Chrome and Firefox in JWPlayer, it means that JWPlayer is transmuxing. Shaka Player will be able to transmux content in the near future. If you'd like to keep track of that work, you should subscribe to #887. In the mean time, you could always use another player that transmuxes. I'm sorry that Shaka Player can't solve your problem yet, but we are working on it and hope to be able to release transmuxing support soon. Please let me know if there's anything else we can do for you until then. |
@JyotirmoyGoswami, is there anything else we can do for you? Otherwise, I'd like to close this issue. Thanks! |
Closing due to inactivity. Let us know if you need anything else. |
Have you read the FAQ and checked for duplicate issues:
yes
What version of Shaka Player are you using:
2.1.5
Can you reproduce the issue with our latest release version:
yes
Can you reproduce the issue with the latest code from
master
:yes
Are you using the demo app or your own custom app:
yes
If custom app, can you reproduce the issue using our demo app:
yes
What browser and OS are you using:
linux
What are the manifest and license server URIs:
(you can send the URIs to [email protected] instead, but please use GitHub and the template for the rest)
What did you do?
What did you expect to happen?
expected to play as said fixed in version 2.1.2
#805
What actually happened?
Cannot play media. No decoders for requested formats: video/mp2t; codecs="mp4a.40.5", video/mp2t; codecs="avc1.42001e mp4a.40.2", video/mp2t; codecs="avc1.42001e mp4a.40.2", video/mp2t; codecs="avc1.4d001f mp4a.40.2", video/mp2t; codecs="avc1.4d001f mp4a.40.2", video/mp2t; codecs="avc1.4d001f mp4a.40.2"
The text was updated successfully, but these errors were encountered: