我正在尝试通过本地局域网将音频(x11 视频已在运行)从源 PC 转发到客户端 PC。两台机器都运行 ubuntu。我已关注这些说明但我遇到了一些错误。
pax11publish
以下是每个工作站上的命令的结果:
[me@source ~] $ pax11publish
Server: {fb...05}unix:/home/me/.pulse/fb...05-runtime/native tcp:client-pc:4713 tcp6:client-pc:4713
Cookie: ac22 ... d0
[me@client ~] $ pax11publish
Server: {fb...05}unix:/home/me/.pulse/fb...05-runtime/native tcp:client-pc:4713 tcp6:client-pc:4713
Cookie: ac22...d0
为了使这些设置正常工作,我paprefs
通过勾选以下框在客户端和源上进行了相同的配置:
network access tab > make discoverable pulseaudio network sound devices available locally
network server tab > enable network access to local sound devices
network server tab > allow other machines on the lan to discover local sound devices
simultaneous output tab > add virtual output device for simultaneous output on all local sound cards
我从客户端电脑继续ssh
到源电脑:
$ ssh -C -R 24713:localhost:4713 user@source_pc -X
然后在源电脑上:
$ export PULSE_SERVER="tcp:localhost:24713"
请注意,我localhost
在这里输入的是逐字逐句的内容 - 并没有将其更改为电脑的名称。我应该这样做吗?
无论如何...当我尝试通过启动 vlc 从远程服务器发送音频时,出现以下错误:
$ vlc
VLC media player 1.0.6 Goldeneye
[0x10dd888] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x15f6918] pulse audio output: No. of Audio Channels: 2
[0x15f6918] pulse audio output error: Failed to connect to server: Connection refused
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4154:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4633:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2211:(snd_pcm_open_noupdate) Unknown PCM default
[0x15f6918] oss audio output error: cannot open audio device (/dev/dsp)
帮助!
更新
当我在源终端发出哔声时:
echo -e "\a"
我确实听到了哔声,所以也许这只是 vlc 播放器配置的问题?