YouTube是否支持5.1环绕声?
在Chrome(和Firefox)中播放YouTubevideoHTML5时,只有立体声输出。 我能够在VLC中播放5.1环绕声,因此硬件和Ubuntu设置是正确的。
Windows用户可以选择启动Chrome:
--disable-audio-output-resampler
但我甚至无法--disable-audio-output-resampler
在我的Windows机器上运行。
有没有办法在Youtube上的Ubuntu或Vimeo等其他网站上使用html5环绕5.1和Chrome?
使用Ubuntu 14.04和Chrome 54.0.2840.59
编辑 :
执行killall pulseaudio
我小心地备份了/.config/pulse/
目录的内容,然后手动删除了dir,用pulseaudio -k
重新启动了脉冲引擎,然后重新启动了Chrome。 使用Youtube在Chrome中仍然没有环绕声。
显然,YouTube不支持真正的5.1
5.1支持仅表示Youtube从额外通道收集音频,然后将它们转换为2.0输出,以便将声音发送到所有扬声器。
这是我读到的Stack Exchnagepost
您仍然可以使用启动参数在Ubuntu中启动Chrome
– 禁用音频输出重采样器
–try支持的信道的布局
打开Chrome配置文件:
sudo nano /usr/share/applications/google-chrome.desktop
找到包含Chrome路径的行:
Exec=/usr/bin/google-chrome-stable %U
并将其更改为:
Exec=/usr/bin/google-chrome-stable --disable-audio-output-resampler --try-supported-channel-layouts %U
注意:文件google-chrome.desktop
也可能在~/.local/share/applications/google-chrome.desktop
使用你知道支持5.1的东西,比如HTML5 AAC音频播放测试 – 多频道 。 如果该测试不起作用,并且Chrome使用脉冲比你知道脉冲音频的问题,你必须深入研究。
接下来在Chrome中玩一些东西,比如这款长In Infected Mushroom专辑,100%好 。 让它播放,当它正在播放时运行pacmd list-sink-inputs
。 它应该向你展示这样的东西
1 sink input(s) available. index: 381 driver: flags: START_CORKED state: RUNNING sink: 1 volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 muted: no current latency: 56.23 ms requested latency: 23.22 ms sample spec: s16le 2ch 44100Hz channel map: front-left,front-right Stereo resample method: (null) module: 14 client: 410 properties: application.icon_name = "chromium-browser" media.name = "Playback" application.name = "Chromium" native-protocol.peer = "UNIX socket client" native-protocol.version = "31" application.process.id = "2148" application.process.user = "ecarroll" application.process.host = "x230" application.process.binary = "chromium-browser" window.x11.display = ":0.0" application.language = "en_US.UTF-8" application.process.machine_id = "0275a7cffa4379527ee564ba552469a2" application.process.session_id = "c2" module-stream-restore.id = "sink-input-by-application-name:Chromium"
经历这一点,这是sink
的索引 ,
sink: 1
而且,这是接收器输入当前正在接收的数据,如果这不正确,那么您正在播放的源不正确,这不是您的问题。
channel map: front-left,front-right Stereo
如果音乐是5.1,它应该是这样的
channel map: front-left,front-right,front-center,lfe,rear-left,rear-right Surround 5.1
现在运行它。
pacmd list-sinks | grep -i "channel\|index"
这应该显示所有可以接受声音的接收器(通道)。 注意具有相应索引的那个,如果它显示你这样的东西。
channel map: front-left,front-right
然后你/知道/那个脉冲将把通道缩混为立体声。 否则,我们需要更多信息。