Ubuntu安装VLC播放器

2023-02-18,,,

Ubuntu安装VLC官方介绍:http://www.videolan.org/vlc/download-ubuntu.html

sudo apt-get update
sudo apt-get install vlc browser-plugin-vlc

其他问题请查看官方wiki:https://wiki.videolan.org/Ubuntu/

Many vlc plugins can be installed afterwards (some of these may no longer be needed)

 vlc-plugin-alsa    - ALSA audio output plugin for VLC (install it if sound doesn't work)
vlc-plugin-arts - aRts audio output plugin for VLC (install it if sound still doesn't work and you're using KDE)
vlc-plugin-esd - Esound audio output plugin for VLC (install it if sound still doesn't work and you're using Gnome)
vlc-plugin-ggi - GGI video output plugin for VLC
vlc-plugin-glide - Glide video output plugin for VLC
vlc-plugin-pulse - PulseAudio audio output plugin for VLC
vlc-plugin-sdl - SDL video and audio output plugin for VLC
vlc-plugin-svgalib - SVGAlib video output plugin for VLC
mozilla-plugin-vlc - the VLC plugin for Mozilla based browsers
vlc-plugin-jack - the VLC plugin for Jack Audio Connection Kit

为homeassistant添加配置文件:

https://www.home-assistant.io/components/media_player.vlc/

# Example configuration.yaml entry
media_player:
- platform: vlc
name: speaker_1
arguments: '--alsa-audio-device=hw:1,0'

主要用于homeassistant中的TTS语音播报

VLC配置完成后,不能从蓝牙耳机发出声音,但是使用VLC音乐播放器播放本地mp3文件的时候是可以从蓝牙耳机发生的,VLC播放器有切换输出方式的选项;

arguments: '--alsa-audio-device=hw:1,0' 

上面这个yaml的配置参数貌似没有什么作用,改成其他的也不会影响声音播放。

有个很好的情况,就是连接蓝牙后播放器自动从蓝牙耳机发出声音,但是tts的语音依然从有线HDMI(转VGA和音频)耳机发出声音。

Ubuntu安装VLC播放器的相关教程结束。

《Ubuntu安装VLC播放器.doc》

下载本文的Word格式文档,以方便收藏与打印。