bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
120 stars 18 forks source link

Support FLAC audio #86

Closed bp2008 closed 2 years ago

bp2008 commented 2 years ago

&audio=2 for FLAC compression, which can be stereo.

https://howlerjs.com/ or https://www.javascripting.com/view/flac-js

bp2008 commented 2 years ago

Done in UI3-161. It turns out the Web Audio API can easily decode the necessary audio buffers, which is good because the third-party libraries I found were huge and were NOT designed to decode data buffers.

bp2008 commented 2 years ago

UI3 needs to detect when FLAC decoding is failing and automatically change the audio codec to µ-law. Unfortunately the same shortcomings apply as when Blue Iris automatically turns off hardware accelerated decoding. Temporary failures will eventually yield larger numbers of users with µ-law as their default audio codec for no good reason.

bp2008 commented 2 years ago

Resolved in commit ffbf191. Will be released in UI3-169.