您尚未登录。

楼主 # 2024-09-01 11:20:43

memory
会员
注册时间: 2021-08-11
已发帖子: 487
积分: 464

mpv 切换声卡

mpv 列出所有声卡:

mpv --audio-device=help

A133 运行:

# mpv --audio-device=help
List of detected audio devices:
  'auto' (Autoselect device)
  'alsa' (Default (alsa))
  'alsa/sysdefault:CARD=sun50iw10codec' (sun50iw10-codec, /Default Audio Device)
  'alsa/sysdefault:CARD=snddaudio0' (snddaudio0, /Default Audio Device)
#
#
# mpv --no-video  --ao=alsa --audio-device='alsa/sysdefault:CARD=snddaudio0' --audio-format=s16 --audio-samplerate=48000 /tmp/今天.wav
Playing: /opt/05. Crossing The Ridg DSD64.dff
[ffmpeg/demuxer] iff: Estimating duration from bitrate, this may be inaccurate
 (+) Audio --aid=1 (dsd_msbf 2ch 352800Hz)
File tags:
 Artist: Dawada (ZHU Zheqin)
 Album: Sister-Drum
 Date: 2013-30-10
 Genre: Blues
 Tit[ 3508.093920] snddaudio snddaudio0: codec_dai set sysclk failed
le: Crossing The Ridge
[ 3508.103226] snddaudio snddaudio0: codec dai set fmt failed
 Track: 5
[ 3508.112150] snddaudio snddaudio0: codec_dai set clkdiv failed
AO: [alsa] 48000Hz stereo 2ch s16
A: 00:00:02 / 00:05:57
# mpv --no-video  --ao=alsa --audio-device='alsa/sysdefault:CARD=sun50iw10codec' --audio-format=s16 --audio-samplerate=48000 /tmp/今天.wav
Playing: /opt/05. Crossing The Ridg DSD64.dff
[ffmpeg/demuxer] iff: Estimating duration from bitrate, this may be inaccurate
 (+) Audio --aid=1 (dsd_msbf 2ch 352800Hz)
File tags:
 Artist: Dawada (ZHU Zheqin)
 Album: Sister-Drum
 Date: 2013-30-10
 Genre: Blues
 Tit[ 3508.093920] snddaudio snddaudio0: codec_dai set sysclk failed
le: Crossing The Ridge
[ 3508.103226] snddaudio snddaudio0: codec dai set fmt failed
 Track: 5
[ 3508.112150] snddaudio snddaudio0: codec_dai set clkdiv failed
AO: [alsa] 48000Hz stereo 2ch s16
A: 00:00:02 / 00:05:57

离线

楼主 #1 2024-09-29 20:54:53

memory
会员
注册时间: 2021-08-11
已发帖子: 487
积分: 464

Re: mpv 切换声卡

mpv --no-video  --ao=alsa --audio-device='alsa/sysdefault:CARD=snddaudio0' --audio-format=s16 --audio-samplerate=48000 /opt/今天.wav


mpv --no-video  --ao=alsa --audio-device='alsa/sysdefault:CARD=sndspdif' --audio-format=s16 --audio-samplerate=48000 /opt/今天.wav

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn