Files
mpv-joc/fork/mpv.conf.example
T
TheM14 66359ff089 Add native ad-joc-pcm takeover with libswresample
- Add ad-joc-pcm (default no). With it disabled, non-E-AC-3 audio is handed
  directly to ad_lavc and the native component does not take PCM over.
- With ad-joc-pcm=yes, decode registered PCM/compressed codecs with
  libavcodec, convert to 48 kHz interleaved float32 through libswresample,
  and feed joc_core's JOC_STREAM_IN_PCM_LAYOUT path.
- Register common codecs (FLAC, MP3, AAC, AC3, TrueHD, DTS, ALAC, Vorbis,
  Opus, WavPack, APE, TTA, MPC and PCM variants) so ad=joc can select the
  native path for them.
- Keep the existing E-AC-3 JOC path unchanged; ad-joc-pcm only affects
  non-E-AC-3 inputs.
- Document the option in fork/mpv.conf.example and fork/README.md.
2026-11-13 14:23:35 +08:00

42 lines
1.6 KiB
Plaintext

# ad_joc: E-AC-3 JOC through the JustOneCacophony renderer.
# Copy the lines you need into mpv.conf; all of them are ordinary mpv options.
ad = joc
# Binaural (stereo) output. On by default; "no" renders the speaker layout below.
ad-joc-binaural = yes
# Take over ordinary PCM and non-JOC audio too. Off by default: with no, only
# E-AC-3 JOC reaches ad_joc and other codecs use mpv's normal decoder.
ad-joc-pcm = no
# HRTF input: SOFA, a Rosella .personalized_headphone, or a compiled .jochrtf.
# The kind is detected from the file, so do not name it here.
# Leave empty to search <mpv.exe>/HRTF/binaural.personalized_headphone, then the same name under
# the mpv config dir.
ad-joc-hrtf =
# Speaker layout, used when ad-joc-binaural=no (and as the fallback when no
# HRTF can be found; mpv then downmixes it to whatever the device wants).
# 2.0 3.1 4.0 5.1 7.1 5.1.2 5.1.4 7.1.2 7.1.4 9.1.4 9.1.6
ad-joc-layout = 7.1
# Binaural rendering mode: near | mid | far.
ad-joc-mode = mid
# Rosella input only: which filterbank the renderer uses. 1 = the public bank
# (13 taps / 6 slots, the default), 2 = the captured bank (11 taps / 3 slots)
# that matches the reference renderer. Ignored for SOFA and .jochrtf input.
ad-joc-rosella-filterbank = 1
# Extra gain in dB (-60 .. 12).
ad-joc-gain-db = 0
# Quantise the output to the renderer's 24-bit rule (the same truncation
# the renderer's own frontends deliver in int24 mode). Off = plain float32.
ad-joc-int24 = no
# Android: there is no executable directory to search, so ad-joc-hrtf must be
# a full path the app can read.
# ad-joc-hrtf = /sdcard/Download/binaural.personalized_headphone