Files used by the Video to MP3 pages (/audio-tools/video-to-mp3/, /audio-tools/mp4-to-mp3/, /audio-tools/mov-to-mp3/) and the Noise remover page (/audio-tools/noise-remover/). They read the sound of a video or audio file on the visitor's own device and write it as an MP3 (the noise remover also writes WAV, after taking the background noise out). Nothing is uploaded. Do not delete this folder. The pages stop working without it. WHAT IS IN THIS FOLDER engine.js A tiny file that the three Video to MP3 pages load. It points to the chunk-*.js files below. chunk-*.js Three files that the Video to MP3 pages and the Noise remover share: our own converter code (mixing, resampling, progress, error handling; about 11 KB), Mediabunny, which reads MP4, MOV, MKV, WebM, Ogg, MP3, WAV, FLAC, AAC and TS files (the large one), and the small loader for the Dolby Digital decoder. lame-worker.js The MP3 encoder: LAME 3.100 compiled to WebAssembly, run in a Web Worker. ac3-worker.js The Dolby Digital (AC-3 and E-AC-3) decoder: FFmpeg's decoders compiled to WebAssembly, run in a Web Worker. It is downloaded only when a chosen file really contains Dolby Digital sound. denoise-engine.js The noise remover: our own code (reading the file, resampling to 48 kHz, handing the sound to the worker, writing the MP3 or WAV). denoise-worker.js The noise remover's signal path, run in a Web Worker: our own rumble and hum filters, mixing, and the calls into RNNoise. rnnoise.wasm RNNoise, the noise removal library, compiled to WebAssembly. It is fetched when the noise remover starts. source/ Our own source files (engine.js, dsp.js, lame_worker.js, ac3_loader.js, denoise_*.js, rnnoise_wasm.js), the script that builds the files above, and source/rnnoise/ with what is needed to rebuild rnnoise.wasm. LICENSE-MPL-2.0.txt, LICENSE-LGPL-2.1.txt, LICENSE-RNNoise-BSD-3.txt The licence texts. THIRD-PARTY SOFTWARE 1. Mediabunny 1.62.0. Copyright (c) 2026-present, Vanilagy and contributors. Licence: Mozilla Public License 2.0 (LICENSE-MPL-2.0.txt). Source code: https://github.com/Vanilagy/mediabunny at commit 03d524ffa1a1429616bcd4434f97714a77432bd7 (version 1.62.0). Website: https://mediabunny.dev/ The large chunk-*.js file is a minified bundle of the TypeScript in the src/ folder of that repository, joined by the other chunk-*.js files with our own files in source/. The Source Code Form of the Mediabunny part is the repository at the address above. 2. LAME 3.100, the MP3 encoder inside lame-worker.js. Copyright (c) Mark Taylor and the LAME developers. Licence: GNU Library (Lesser) General Public License, version 2 or, at your option, any later version. We use it under version 2.1 (LICENSE-LGPL-2.1.txt). Website and source: https://lame.sourceforge.io/ It was compiled to WebAssembly by the Mediabunny project (package @mediabunny/mp3-encoder, folder packages/mp3-encoder, MPL-2.0). The build instructions are in packages/mp3-encoder/README.md of the repository above. 3. FFmpeg's AC-3 and E-AC-3 decoders (libavcodec), inside ac3-worker.js. Licence: GNU Lesser General Public License, version 2.1 or later (LICENSE-LGPL-2.1.txt). Website and source: https://ffmpeg.org/ and https://github.com/FFmpeg/FFmpeg It was compiled to WebAssembly by the Mediabunny project (package @mediabunny/ac3, folder packages/ac3, MPL-2.0). The build instructions are in packages/ac3/README.md of the repository above. This software uses code of FFmpeg licensed under the LGPLv2.1. Its source can be downloaded from https://ffmpeg.org/download.html 4. RNNoise, the noise removal library inside rnnoise.wasm. Copyright (c) 2017 Mozilla, (c) 2007-2017 Jean-Marc Valin, (c) 2005-2017 Xiph.Org Foundation, (c) 2003-2004 Mark Borgerding. Licence: BSD 3-clause (LICENSE-RNNoise-BSD-3.txt). Website and source: https://github.com/xiph/rnnoise We use release v0.1.1 (commit 6cbfd53). Its source files are compiled to WebAssembly with clang, without any change to them. Only two things are our own: source/rnnoise/rn_glue.c (a few lines that hand sound to RNNoise and take it back, and a small fixed memory pool) and source/rnnoise/shim/ (four tiny headers that stand in for the C library). The neural network that RNNoise uses comes with that release (src/rnn_data.c) and is part of rnnoise.wasm. It is under the same licence. Neither the name of the Xiph.Org Foundation nor the names of its contributors are used to endorse this site. HOW TO REBUILD AND REPLACE THESE FILES (this also covers replacing LAME or the FFmpeg decoder with a modified build) 1. Clone https://github.com/Vanilagy/mediabunny and check out commit 03d524ffa1a1429616bcd4434f97714a77432bd7. To use a modified LAME or FFmpeg, rebuild packages/mp3-encoder/build/lame.js or packages/ac3/build/ac3.js there, following the READMEs of those packages. 2. In an empty folder, run: npm install esbuild (we used esbuild 0.28.2) and copy the files of source/ into it (keep the rnnoise folder). To rebuild rnnoise.wasm as well: clone https://github.com/xiph/rnnoise, check out tag v0.1.1, and run RN=/path/to/rnnoise OUT=./rnnoise/out bash rnnoise/build.sh (needs clang with the wasm32 target, and wasm-ld) 3. Run: MB=/path/to/mediabunny OUT=./out node build.mjs 4. Copy the files from ./out over the files in this folder. The names of the chunk-*.js files change with their content; engine.js and denoise-engine.js are rebuilt to match them. NOTES - The MP3 is made at a constant bit rate and has no ID3 tag. - No chosen file is sent to any server. The only things downloaded are the files in this folder.