hooke007 / MPV_lazy

🔄 mpv player 播放器折腾记录 windows conf ; 中文注释配置 快速帮助入门 ; mpv-lazy 懒人包 win10 x64 config
https://hooke007.github.io
Other
4.28k stars 156 forks source link

关于音频重采样的问题 #389

Closed hkiceflow closed 1 year ago

hkiceflow commented 1 year ago

对于一些不常见的音频想进行重采样,重采样至48000Hz,是使用“format=srate:48000”这个吗?但我使用多种语法进行添加都没有反应。包括单独设到vs文件夹,先获取后再重采样都没有反应

hooke007 commented 1 year ago

不清楚你是不是误解了什么。不做特意设置,默认重采样至音频输出的频率。检查你的音频接口输出采样是否是4.8k即可

hooke007 commented 1 year ago

我的设备上看不出有什么问题,一切按预期src匹配输出接口

[   0.585][v][af] [in] 44100Hz stereo 2ch floatp
[   0.585][v][af] [userspeed] 44100Hz stereo 2ch floatp
[   0.585][v][af] [userspeed] (disabled)
[   0.585][v][af] [convert] 44100Hz stereo 2ch floatp
[   0.585][v][auto_profiles] Re-evaluating auto profile save_props_auto 
[   0.585][v][ao] Trying audio driver 'wasapi'
[   0.585][v][auto_profiles] Re-evaluating auto profile deband_bitrate 
[   0.585][v][ao/wasapi] requested format: 44100 Hz, stereo channels, floatp
[   0.585][d][ao/wasapi] Init wasapi
[   0.585][d][ao/wasapi] Find device ''
[   0.587][v][ao/wasapi] No device specified. Selecting default.
[   0.589][v][ao/wasapi] Selecting device '{b50807ee-7f3a-4f04-b173-4901f3552c4a}' (耳机 (Meizu HiFi DAC Headphone Amplifier))
[   0.589][v][ao/wasapi] Monitoring changes in device {0.0.0.00000000}.{b50807ee-7f3a-4f04-b173-4901f3552c4a}
[   0.591][d][ao/wasapi] Init wasapi thread
[   0.591][d][ao/wasapi] Activating pAudioClient interface
[   0.593][d][ao/wasapi] Probing formats
[   0.593][v][ao/wasapi] Trying stereo float (32/32 bits) @ 48000hz (shared) -> ok
[   0.594][v][ao/wasapi] Accepted as stereo float @ 48000hz -> stereo float (32/32 bits) @ 48000hz (shared)
[   0.594][d][ao/wasapi] Fixing format
[   0.594][d][ao/wasapi] IAudioClient::GetDevicePeriod
[   0.594][v][ao/wasapi] Device period: 10 ms
[   0.594][d][ao/wasapi] IAudioClient::Initialize
[   0.644][d][ao/wasapi] IAudioClient::Initialize pRenderClient
[   0.644][d][ao/wasapi] IAudioClient::Initialize IAudioClient_SetEventHandle
[   0.644][d][ao/wasapi] IAudioClient::Initialize IAudioClient_GetBufferSize
[   0.644][v][ao/wasapi] Buffer frame count: 2400 (50 ms)
[   0.644][v][ao/wasapi] IAudioClock::GetFrequency gave a frequency of 384000.
[   0.644][d][ao/wasapi] IAudioClient::Initialize pAudioVolume
[   0.644][d][ao/wasapi] Entering dispatch loop
[   0.644][d][ao/wasapi] Init wasapi done
[   0.644][v][ao/wasapi] device buffer: 2400 samples.
[   0.644][v][ao/wasapi] using soft-buffer of 9600 samples.
[   0.644][i][cplayer] AO: [wasapi] 48000Hz stereo 2ch float
[   0.644][v][cplayer] AO: Description: Windows WASAPI audio output (event mode)
[   0.645][v][autoconvert] inserting resampler
[   0.645][v][swresample] format change, reinitializing resampler
[   0.645][v][swresample] 44100Hz stereo floatp -> 48000Hz stereo float
[   0.645][v][af] [out] 48000Hz stereo 2ch float