在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mbebenita/Broadway开源软件地址:https://github.com/mbebenita/Broadway开源编程语言:C 64.8%开源软件介绍:Broadway.jsA JavaScript H.264 decoder. View a Live Demo: The video player first needs to download the entire video before it can start playing, thus appearing to be a bit slow at first, so have patience. You can start the video by clicking on each player. The top left player runs on the main thread, the remaining players run in background worker threads. Use a example node app as template: Technical infoThe demo is Android's H.264 decoder compiled with Emscripten to JavaScript, then further optimized with Google's JavaScript closure compiler and further optimized by hand to use WebGL. Building the demo: Install and configure Emscripten (https://github.com/kripken/emscripten) The code for the demo is in the Decoder folder, to build it run the make.py python script. (Requires at least python 2.7) Encoding VideoThe decoder expects an .mp4 file and does not support weighted prediction for P-frames and CABAC entropy encoding. To create such bitstreams use ffmpeg and x264 with the following command line options:
APIPlayer.js, Decoder.js and YUVWebGLCanvas.js all have a unified module definition. Player.js:
options:useWorker true / false workerFile webgl true / "auto" / false size { width: , height: } properties:canvas refers to the canvas element. methods:decode () feed the decoder with h264 stream data. Decoder.js:
options:rgb true / false properties:onPictureDecoded callback function(, width, height) will be called for each frame. methods:decode () feed the decoder with h264 stream data. Real World Uses of Broadway.js |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论