- script.js: replace unsafe CSS selector interpolation from URL params
with dataset comparison via Array.from().find() to avoid DOMException
on values containing quotes, brackets or other special characters
- ffmpeg.ts: add explicit -c:a pcm_s16le to wav-3cx preset so the PCM
codec is always set regardless of FFMPEG_OUTPUT_ARGS
Signed-off-by: Radhakrishnan Pachyappan <gingeekrishna@gmail.com>
WAV preset for 3CX / telephony systems
---------------------------------------
Adds `wav-3cx` as a new FFmpeg output target that produces a WAV file
with the parameters required by 3CX and similar telephony platforms:
- Channel: mono (-ac 1)
- Sample rate: 8 kHz (-ar 8000)
- Bit depth: 16-bit PCM (-sample_fmt s16)
The target appears in the UI alongside the regular `wav` option under the
ffmpeg converter group. `normalizeOutputFiletype` maps `wav-3cx` → `wav`
so the downloaded file has the correct `.wav` extension.
URL query-param pre-selection
------------------------------
Adds support for `?to=<format>&converter=<name>` query parameters on the
root page. When a user lands on the page with these params set, the
format selector is automatically pre-populated as soon as conversion
options finish loading (after the first file is selected).
Example:
http://localhost:3000/?to=wav-3cx&converter=ffmpegCloses#559
Signed-off-by: Radhakrishnan Pachyappan <gingeekrishna@gmail.com>