The HEVC decoder of https://openedfile.com/tools/hevc/ — source code
====================================================================

On computers without a hardware HEVC decoder, the page decodes HEVC (H.265) video with
libav-hevc 0.1.1 (npm @suemor/libav-hevc, https://github.com/suemor233/libav.js), a build of
libav.js 6.10.9 (Yahweasel, https://github.com/Yahweasel/libav.js) that holds only FFmpeg 9.0's
HEVC decoder, compiled to WebAssembly with Emscripten 6.0.5. FFmpeg and libav.js are licensed
under the GNU Lesser General Public License 2.1 (or later); the license texts are at
https://openedfile.com/licenses/libav-hevc.txt

The site serves the one-thread build unmodified, under its own file names:
  /libav-hevc/0.1.1/libav-6.10.9.0-decoder-hevc.mjs
  /libav-hevc/0.1.1/libav-6.10.9.0-decoder-hevc.wasm.mjs
  /libav-hevc/0.1.1/libav-6.10.9.0-decoder-hevc.wasm.wasm
(sha256 in manifest.json in this archive; the page loads them by name in a Web Worker, so you
can replace them with your own build of the same names).

This archive holds the complete source those files are built from, as the npm package ships it:

  sources/libav-source.tar.gz        the libav.js fork (commit 1b4c2d032d509861ac85e75cf77ec17c6705d16f,
                                     upstream libav.js c05a676d16c1068cce6115594858c50a7ecad4b8):
                                     build scripts, the decoder-hevc configuration, FFmpeg patches
  sources/ffmpeg-9.0.tar.xz          FFmpeg 9.0, unmodified upstream source
  sources/emfiberthreads-1.3.tar.gz  emfiberthreads 1.3 (0BSD; only for the threaded build, which
                                     this site does not serve)
  sources/README.md                  the package's own note on rebuilding
  manifest.json                      versions, build options and the sha256 of every built file

To rebuild: unpack sources/libav-source.tar.gz, put the other two tarballs into its build/
folder, install Emscripten 6.0.5, and run  npm ci  then  npm run build:hevc  (sources/README.md).
