131 / h264-live-player

A live h264 player for the browser (ideal for raspberrypi / raspicam )
MIT License
1.08k stars 251 forks source link

Unable to play H264 video stream of main profile #73

Open githubhanjunjun opened 5 years ago

githubhanjunjun commented 5 years ago

Unable to play H264 video stream of main profile

huangfe commented 4 years ago

@githubhanjunjun Is there a solution

x0a commented 4 years ago

h264-live-player is based on Broadway.js, which is based on Android's h264 decoder, which can only decode a baseline stream.

User shengbinmeng created an ffmpeg version which can decode main streams, available here as Decoder-ff.js: https://github.com/shengbinmeng/javascript-ts-player/tree/master/js

It uses the same API so you can just replace Decoder.js with this file and re-bundle with npm run dist inside the vendor directory. The new http-live-player.js will be able to decode main streams.


Or if you like, just replace http-live-player.js with my pre-compiled version.

jackkum commented 2 years ago

@x0a Thank you so much! You are saved my day!