- Add the joc-pcm script option and document it in the config example. - Add PcmEngine: ffmpeg decodes to 48 kHz float32, the kernel PCM_LAYOUT input maps 2.0/5.1/7.1 and renders binaural. - Fall back to the PCM path for non-JOC audio in MP4/Matroska/WebM, including TrueHD, while preserving JOC detection first. - Wire the PCM engine through audio_source, seeking and HTTP serving. - Sync the bundled kernel headers to 1.3.3.
34 lines
1.3 KiB
Plaintext
34 lines
1.3 KiB
Plaintext
# mpv-joc 配置示例:整段放进 mpv.conf 即可。
|
|
#
|
|
# 所有键都在 mpv 自己的 --script-opts 命名空间里,前缀 joc-。
|
|
# 只有一行也可以:
|
|
# script-opts=joc-output=binaural
|
|
#
|
|
script-opts=joc-output=binaural,joc-mode=mid,joc-gain-db=0
|
|
|
|
# 想让插件强制走 WASAPI(默认 auto:不动 mpv 的 ao 选择):
|
|
# script-opts-append=joc-wasapi=yes
|
|
# WASAPI 独占模式:
|
|
# script-opts-append=joc-exclusive=yes
|
|
#
|
|
# 扬声器布局示例(替换上面的 joc-output / joc-layout):
|
|
# script-opts-append=joc-output=speaker
|
|
# script-opts-append=joc-layout=7.1
|
|
#
|
|
# 指定 HRTF 模型文件(默认找 <mpv>\HRTF\binaural.personalized_headphone):
|
|
# script-opts-append=joc-hrtf=D:/hrtf/MyMeasurements.sofa
|
|
#
|
|
# Rosella 模型用捕获版滤波器组(与参考渲染器一致;默认 1 = 公开版):
|
|
# script-opts-append=joc-rosella-filterbank=2
|
|
#
|
|
# 接管普通 PCM 源(wav/flac/mp3/aac/ogg/opus/wma/aif/aiff):
|
|
# 此时 ffmpeg 是唯一解码器,插件把 48k float32 交给内核的 PCM layout 输入,
|
|
# 再走 binaural 渲染;不再经过 mpv 自己的音频解码器。
|
|
# script-opts-append=joc-pcm=yes
|
|
#
|
|
# 交付 24bit 定点:
|
|
# script-opts-append=joc-int24=yes
|
|
#
|
|
# 排错:把每个 HTTP 请求与跳转写进 joc_decoder.log
|
|
# script-opts-append=joc-verbose=yes
|